| | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 分页查询表单 |
| | | * |
| | |
| | | @ApiModelProperty(value = "关键词") |
| | | private String keyWord; |
| | | |
| | | @ApiModelProperty(value = "已选中实有人口id集合") |
| | | private List<Long> populationIds; |
| | | |
| | | } |
| | |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long housePopulationId; |
| | | |
| | | @ApiModelProperty(value = "经度") |
| | | private String lng; |
| | | |
| | | @ApiModelProperty(value = "纬度") |
| | | private String lat; |
| | | |
| | | } |
| | |
| | | |
| | | @ExcelProperty(value = "身份证号码",index = 3) |
| | | @ApiModelProperty(value = "身份证号码") |
| | | @EncryptDecryptField |
| | | private String cardNoStr; |
| | | |
| | | @ExcelProperty(value = "走访地址",index = 4) |
| | |
| | | @ApiModelProperty(value = "民族") |
| | | private String nation; |
| | | |
| | | @ApiModelProperty(value = "政治面貌(1.中共党员2.中共预备党员3.共青团员4.民革党员5.民盟盟员6.民建会员7.8.农工党党员9.致公党党员10.九三学社社员11.台盟盟员12.无党派人士13.群众)") |
| | | private Integer politicalOutlook; |
| | | |
| | | |
| | | } |
| | |
| | | Integer getStatisticsCount(@Param("communityId") Long communityId); |
| | | |
| | | @Select("<script> " + |
| | | "select cmp.id,cmp.`name`,cmp.phone,cmp.card_no,cmp.label,cmp.address,cmp.nation,cmp.political_outlook,cmp.sex from com_mng_population as cmp " + |
| | | "select cmp.id,cmp.`name`,cmp.phone,cmp.card_no,cmp.label,cmp.address,cmp.nation,cmp.political_outlook,cmv.lng,cmv.lat" + |
| | | ",cmp.sex from com_mng_population as cmp left join com_mng_village as cmv on cmv.village_id = cmp.village_id " + |
| | | " where cmp.act_id = #{populationListDTO.communityId}" + |
| | | "<if test='populationListDTO.keyWord != null and populationListDTO.keyWord != ""'>" + |
| | | "AND (cmp.`name` like concat (#{populationListDTO.keyWord},'%') or cmp.card_no_str like concat (#{populationListDTO.keyWord},'%')) " + |
| | |
| | | "<if test='populationDTO.keyWord != null'>" + |
| | | " AND (cmp.name like concat(#{populationDTO.keyWord},'%') or cmp.card_no_str like concat(#{populationDTO.keyWord},'%')) " + |
| | | " </if> " + |
| | | "<if test='populationDTO.populationIds != null and populationDTO.populationIds.size > 0'>" + |
| | | " AND cmp.id not in " + |
| | | "<foreach collection='populationDTO.populationIds' item='id' index='index' open='(' close=')' separator=',' >" + |
| | | "#{id}" + |
| | | "</foreach>" + |
| | | " </if> " + |
| | | " </script>") |
| | | IPage<EventSpecialPopulationVO> getBuildingHousePopulationList(Page page,@Param("populationDTO") PageComMngPopulationDTO populationDTO); |
| | | |
| | |
| | | * @param gridMemberId 网格员id |
| | | * @return 头像url |
| | | */ |
| | | String getGridMemberImageUrl(@Param("gridMemberId") Long gridMemberId); |
| | | Map<String,String> getGridMemberImageUrl(@Param("gridMemberId") Long gridMemberId); |
| | | |
| | | /** |
| | | * 查询事件(管理)列表 |
| | |
| | | eventVO.setVideos(videoList); |
| | | |
| | | //查询网格员头像 |
| | | String imageUrl = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(imageUrl)) { |
| | | eventVO.setGridMemberImageUrl(imageUrl); |
| | | Map<String,String> userMap = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(userMap)) { |
| | | eventVO.setGridMemberName(userMap.get("nick_name")); |
| | | eventVO.setGridMemberImageUrl(userMap.get("image_url")); |
| | | } |
| | | }); |
| | | return R.ok(ipage); |
| | |
| | | eventVO.setPics(picList); |
| | | eventVO.setVideos(videoList); |
| | | //查询网格员头像 |
| | | String imageUrl = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(imageUrl)) { |
| | | eventVO.setGridMemberImageUrl(imageUrl); |
| | | Map<String,String> userMap = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(userMap)) { |
| | | eventVO.setGridMemberName(userMap.get("nick_name")); |
| | | eventVO.setGridMemberImageUrl(userMap.get("image_url")); |
| | | } |
| | | }); |
| | | return R.ok(ipage); |
| | |
| | | eventVO.setVideos(videoList); |
| | | |
| | | //查询网格员头像 |
| | | String imageUrl = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(imageUrl)) { |
| | | eventVO.setGridMemberImageUrl(imageUrl); |
| | | Map<String,String> userMap = eventMapper.getGridMemberImageUrl(eventVO.getGridMemberId()); |
| | | if (StringUtils.isNotEmpty(userMap)) { |
| | | eventVO.setGridMemberName(userMap.get("nick_name")); |
| | | eventVO.setGridMemberImageUrl(userMap.get("image_url")); |
| | | } |
| | | }); |
| | | return R.ok(ipage); |
| | |
| | | AND grid_id = #{gridId} |
| | | </select> |
| | | |
| | | <select id="getGridMemberImageUrl" resultType="String"> |
| | | select image_url from sys_user where user_id = #{gridMemberId} |
| | | <select id="getGridMemberImageUrl" resultType="Map"> |
| | | select image_url,nick_name from sys_user where user_id = #{gridMemberId} |
| | | </select> |
| | | <select id="findToManageByPage" resultType="com.panzhihua.common.model.vos.grid.EventVO" |
| | | parameterType="com.panzhihua.common.model.dtos.grid.PageEventManageDTO"> |
| | |
| | | order by vt.id desc |
| | | </select> |
| | | |
| | | <select id="appFindListByPage" parameterType="com.panzhihua.common.model.query.visit.EventTasksQuery" resultType="com.panzhihua.common.model.vos.visit.EventVisitingTasksVO"> |
| | | select vt.id,vt.create_at,vt.create_by,vt.visiter_id,vt.visiter_name,vt.visiter_tele,vt.visiter_sex,vt.visiter_address,vt.dell_user_id,vt.dell_user_name,vt.submit_date,vt.cancel_time,vt.event_status, |
| | | TIMESTAMPDIFF(YEAR, p.birthday, CURDATE()) AS age,p.card_no_str,p.label,u.name as creator,p.nation_code |
| | | <select id="appFindListByPage" parameterType="com.panzhihua.common.model.query.visit.EventTasksQuery" |
| | | resultType="com.panzhihua.common.model.vos.visit.EventVisitingTasksVO"> |
| | | select vt.id,vt.create_at,vt.create_by,vt.visiter_id,vt.visiter_name,vt.visiter_tele,vt.visiter_sex |
| | | ,vt.visiter_address,vt.dell_user_id,vt.dell_user_name,vt.submit_date,vt.cancel_time,vt.event_status,p.nation,p.political_outlook |
| | | TIMESTAMPDIFF(YEAR, p.birthday, CURDATE()) AS age,p.label,u.name as creator,p.nation_code,p.card_no as cardNoStr |
| | | FROM event_visiting_tasks vt |
| | | LEFT JOIN com_mng_population p ON p.id = vt.visiter_id |
| | | LEFT JOIN com_mng_building mb ON(p.floor = mb.name AND p.village_id = mb.village_id) |