@RequestMapping(value = "getAreaByTypeName.html", method = RequestMethod.GET) @ResponseBody public Map<String, Object> getAreaByTypeName(HttpServletRequest request) {
Map<String, Object> map = new HashMap<>();
String name = request.getParameter("name");
String xmb = request.getParameter("xmb");
List<TAreaEntity> entityList = tAreaService.queryAllAreaByPCodeApp(name,xmb);
map.put("code",0);
map.put("msg","查询成功");
map.put("data",entityList);
return map;
}
@Transactional(readOnly = true) public List<TAreaEntity> queryAllAreaByPCodeApp(String name,String xmb) {
/* String pcode = ""; switch (name) { case "车行道": case "人行道(广场)": case "人行道": pcode = "B01"; break; case "桥梁": pcode = "B02"; break; case "泵站": pcode = "B09"; break; case "路灯": pcode = "B03"; break; case "排水": pcode = "B04"; break; case "绿化": case "园林绿化": pcode = "B07"; break; default: pcode = ""; break; } if (!StringFacs.isEmpty(pcode)) { return tAreaDao.queryAllAreaByPcode(pcode); }*/
return tAreaDao.queryAllAreaByPcodeApp(xmb);
}
相关sql
public List<TAreaEntity> queryAllAreaByPcodeApp(String xmb) {
String hql = "from login.bean.TAreaEntity where isDelete='0' and operationStatue=0 ";
if (!StringFacs.isEmpty(xmb)) {
hql+="and ProDepartment='"+xmb+"'"; }
hql+="order by sortnot";
return jdbcTemplate.getCurrentSession().createQuery(hql).list();
}
今天的文章通过xmb关联sspq分享到此就结束了,感谢您的阅读。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:https://bianchenghao.cn/63142.html