From 1689120b48fa2e99865c8fae20b7cf83dd6909b7 Mon Sep 17 00:00:00 2001 From: lidongdong <1459917685@qq.com> Date: 星期六, 08 四月 2023 19:36:09 +0800 Subject: [PATCH] 修改 微服务新增报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java | 110 +++++++++++++++++++++++++++--------------------------- 1 files changed, 55 insertions(+), 55 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java index bb44fcd..b8e9059 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngPopulationDAO.java @@ -93,61 +93,61 @@ + " LEFT JOIN com_mng_population cmp ON cmphu.popul_id = cmp.id " + " WHERE cmphu.popul_id = #{populId}") List<ComHouseMemberVo> listHouseMermberByPopuId(@Param("populId") Long populId); - @Select("<script> " + "SELECT " + "cmp.`name`, " + "cmp.id, " + "cmp.street_id, " + "cmp.act_id, " - + "cmp.village_id, " + "cmp.sex, " + "cmp.card_no, " + "cmp.road, " + "cmp.door_no, " + "cmp.floor, " - + "cmp.unit_no, " + "cmp.house_no, " + "cmp.political_outlook, " + "cmp.work_company, " - + "cmp.special_situation, " + "cmp.phone, " + "cmp.remark, " + "cmp.native_place, " + "cmp.nation, " - + "cmpct.label, " + "cmp.marriage, " + "cmp.culture_level, " + "cmp.profession, " + "cmp.out_or_local, " - + "cmp.census_register, " + "cmp.healthy, " + "cmp.birthday, " + "cmp.update_at, " + "cmp.address, " - + "cmp.is_rent,cmp.death " + "FROM " + "com_mng_population AS cmp " - + " LEFT JOIN com_mng_population_community_tags AS cmpct ON cmp.id = cmpct.population_id " + "<where>" - + "<if test='comMngPopulationVO.name != null and comMngPopulationVO.name != ""'>" - + "AND cmp.`name` LIKE concat(#{comMngPopulationVO.name},'%') " + " </if> " - + "<if test='comMngPopulationVO.label != null and comMngPopulationVO.label != ""'>" - + "AND cmpct.label LIKE concat('%',#{comMngPopulationVO.label},'%') " + " </if> " - + "<if test='comMngPopulationVO.actId != null'>" + " and cmpct.community_id = ${comMngPopulationVO.actId} " - + " </if> " + "<if test='comMngPopulationVO.outOrLocal != null'>" - + " and cmp.out_or_local = #{comMngPopulationVO.outOrLocal} " + " </if> " - + "<if test='comMngPopulationVO.villageId != null and comMngPopulationVO.villageId != ""'>" - + " and cmp.village_id = #{comMngPopulationVO.villageId} " + " </if> " - + "<if test='comMngPopulationVO.road != null and comMngPopulationVO.road != ""'>" - + "AND cmp.road = #{comMngPopulationVO.road} " + " </if> " - + "<if test='comMngPopulationVO.doorNo != null and comMngPopulationVO.doorNo != ""'>" - + "AND cmp.door_no = #{comMngPopulationVO.doorNo} " + " </if> " - + "<if test='comMngPopulationVO.floor != null and comMngPopulationVO.floor != ""'>" - + "AND cmp.floor = #{comMngPopulationVO.floor} " + " </if> " - + "<if test='comMngPopulationVO.unitNo != null and comMngPopulationVO.unitNo != ""'>" - + "AND cmp.unit_no = #{comMngPopulationVO.unitNo} " + " </if> " - + "<if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'>" - + "AND cmp.house_no = #{comMngPopulationVO.houseNo} " + " </if> " - + "<if test='comMngPopulationVO.isDeath != null'>" - + "AND cmp.death = #{comMngPopulationVO.isDeath} " + " </if> " - + "<if test='comMngPopulationVO.sex != null and comMngPopulationVO.sex != ""'>" - + "AND cmp.sex = #{comMngPopulationVO.sex} " + " </if> " - + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageStartTime != "" and comMngPopulationVO.ageEndTime == null'>" - + "AND date_format(cmp.birthday,'%Y-%m-%d') <![CDATA[ <= ]]> #{comMngPopulationVO.ageStartTime} " + " </if> " - + "<if test='comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageEndTime != "" and comMngPopulationVO.ageStartTime == null'>" - + "AND date_format(cmp.birthday,'%Y-%m-%d') <![CDATA[ >= ]]> #{comMngPopulationVO.ageEndTime} " + " </if> " - + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime == comMngPopulationVO.ageEndTime'>" - + "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageStartTimeEnd} and #{comMngPopulationVO.ageEndTime}" - + " </if> " - + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime != comMngPopulationVO.ageEndTime'>" - + "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageEndTimeEnd} and #{comMngPopulationVO.ageStartTime}" - + " </if> " - + "<if test='comMngPopulationVO.searchKey != null and comMngPopulationVO.searchKey != "" '>" - + "AND (cmp.name like concat('%',#{comMngPopulationVO.searchKey},'%') or cmp.card_no_str like concat('%',#{comMngPopulationVO.searchKey},'%') or cmp.phone like concat('%',#{comMngPopulationVO.searchKey},'%') " - + " </if> " - + "<if test='comMngPopulationVO.nativePlace != null and comMngPopulationVO.nativePlace != ""'>" - + "AND cmp.native_place LIKE concat(#{comMngPopulationVO.nativePlace},'%') " + " </if> " - + "<if test='comMngPopulationVO.nation != null and comMngPopulationVO.nation != ""'>" - + "AND cmp.nation = #{comMngPopulationVO.nation} " + " </if> " - + "<if test='comMngPopulationVO.politicalOutlook != null and comMngPopulationVO.politicalOutlook != ""'>" - + "AND cmp.political_outlook = #{comMngPopulationVO.politicalOutlook} " + " </if> " - + "<if test='comMngPopulationVO.cardNo != null and comMngPopulationVO.cardNo != ""'>" - + "AND cmp.card_no = #{comMngPopulationVO.cardNo} " + " </if> " - + "<if test='comMngPopulationVO.remark != null and comMngPopulationVO.remark != ""'>" - + "AND cmp.remark = #{comMngPopulationVO.remark} " + " </if> " + " </where>" + " order by cmp.create_at desc" - + "</script>") +// @Select("<script> " + "SELECT " + "cmp.`name`, " + "cmp.id, " + "cmp.street_id, " + "cmp.act_id, " +// + "cmp.village_id, " + "cmp.sex, " + "cmp.card_no, " + "cmp.road, " + "cmp.door_no, " + "cmp.floor, " +// + "cmp.unit_no, " + "cmp.house_no, " + "cmp.political_outlook, " + "cmp.work_company, " +// + "cmp.special_situation, " + "cmp.phone, " + "cmp.remark, " + "cmp.native_place, " + "cmp.nation, " +// + "cmpct.label, " + "cmp.marriage, " + "cmp.culture_level, " + "cmp.profession, " + "cmp.out_or_local, " +// + "cmp.census_register, " + "cmp.healthy, " + "cmp.birthday, " + "cmp.update_at, " + "cmp.address, " +// + "cmp.is_rent,cmp.death " + "FROM " + "com_mng_population AS cmp " +// + " LEFT JOIN com_mng_population_community_tags AS cmpct ON cmp.id = cmpct.population_id " + "<where>" +// + "<if test='comMngPopulationVO.name != null and comMngPopulationVO.name != ""'>" +// + "AND cmp.`name` LIKE concat(#{comMngPopulationVO.name},'%') " + " </if> " +// + "<if test='comMngPopulationVO.label != null and comMngPopulationVO.label != ""'>" +// + "AND cmpct.label LIKE concat('%',#{comMngPopulationVO.label},'%') " + " </if> " +// + "<if test='comMngPopulationVO.actId != null'>" + " and cmpct.community_id = ${comMngPopulationVO.actId} " +// + " </if> " + "<if test='comMngPopulationVO.outOrLocal != null'>" +// + " and cmp.out_or_local = #{comMngPopulationVO.outOrLocal} " + " </if> " +// + "<if test='comMngPopulationVO.villageId != null and comMngPopulationVO.villageId != ""'>" +// + " and cmp.village_id = #{comMngPopulationVO.villageId} " + " </if> " +// + "<if test='comMngPopulationVO.road != null and comMngPopulationVO.road != ""'>" +// + "AND cmp.road = #{comMngPopulationVO.road} " + " </if> " +// + "<if test='comMngPopulationVO.doorNo != null and comMngPopulationVO.doorNo != ""'>" +// + "AND cmp.door_no = #{comMngPopulationVO.doorNo} " + " </if> " +// + "<if test='comMngPopulationVO.floor != null and comMngPopulationVO.floor != ""'>" +// + "AND cmp.floor = #{comMngPopulationVO.floor} " + " </if> " +// + "<if test='comMngPopulationVO.unitNo != null and comMngPopulationVO.unitNo != ""'>" +// + "AND cmp.unit_no = #{comMngPopulationVO.unitNo} " + " </if> " +// + "<if test='comMngPopulationVO.houseNo != null and comMngPopulationVO.houseNo != ""'>" +// + "AND cmp.house_no = #{comMngPopulationVO.houseNo} " + " </if> " +// + "<if test='comMngPopulationVO.isDeath != null'>" +// + "AND cmp.death = #{comMngPopulationVO.isDeath} " + " </if> " +// + "<if test='comMngPopulationVO.sex != null and comMngPopulationVO.sex != ""'>" +// + "AND cmp.sex = #{comMngPopulationVO.sex} " + " </if> " +// + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageStartTime != "" and comMngPopulationVO.ageEndTime == null'>" +// + "AND date_format(cmp.birthday,'%Y-%m-%d') <![CDATA[ <= ]]> #{comMngPopulationVO.ageStartTime} " + " </if> " +// + "<if test='comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageEndTime != "" and comMngPopulationVO.ageStartTime == null'>" +// + "AND date_format(cmp.birthday,'%Y-%m-%d') <![CDATA[ >= ]]> #{comMngPopulationVO.ageEndTime} " + " </if> " +// + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime == comMngPopulationVO.ageEndTime'>" +// + "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageStartTimeEnd} and #{comMngPopulationVO.ageEndTime}" +// + " </if> " +// + "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime != comMngPopulationVO.ageEndTime'>" +// + "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageEndTimeEnd} and #{comMngPopulationVO.ageStartTime}" +// + " </if> " +// + "<if test='comMngPopulationVO.searchKey != null and comMngPopulationVO.searchKey != "" '>" +// + "AND (cmp.name like concat('%',#{comMngPopulationVO.searchKey},'%') or cmp.card_no_str like concat('%',#{comMngPopulationVO.searchKey},'%') or cmp.phone like concat('%',#{comMngPopulationVO.searchKey},'%') " +// + " </if> " +// + "<if test='comMngPopulationVO.nativePlace != null and comMngPopulationVO.nativePlace != ""'>" +// + "AND cmp.native_place LIKE concat(#{comMngPopulationVO.nativePlace},'%') " + " </if> " +// + "<if test='comMngPopulationVO.nation != null and comMngPopulationVO.nation != ""'>" +// + "AND cmp.nation = #{comMngPopulationVO.nation} " + " </if> " +// + "<if test='comMngPopulationVO.politicalOutlook != null and comMngPopulationVO.politicalOutlook != ""'>" +// + "AND cmp.political_outlook = #{comMngPopulationVO.politicalOutlook} " + " </if> " +// + "<if test='comMngPopulationVO.cardNo != null and comMngPopulationVO.cardNo != ""'>" +// + "AND cmp.card_no = #{comMngPopulationVO.cardNo} " + " </if> " +// + "<if test='comMngPopulationVO.remark != null and comMngPopulationVO.remark != ""'>" +// + "AND cmp.remark = #{comMngPopulationVO.remark} " + " </if> " + " </where>" + " order by cmp.create_at desc" +// + "</script>") IPage<ComMngPopulationVO> pagePopulation(Page page, @Param("comMngPopulationVO") ComMngPopulationDTO comMngPopulationVO); -- Gitblit v1.7.1