| | |
| | | jpd.appoint_user, |
| | | jpd.user_ids, |
| | | jpd.event_type, |
| | | jpd.signature_flag |
| | | jpd.signature_flag, |
| | | GROUP_CONCAT(bu.name) userName |
| | | from jczz_public_discuss jpd |
| | | LEFT JOIN blade_user bu on jpd.user_ids like CONCAT('%',bu.id,'%') |
| | | <where> |
| | | <if test="publicDiscuss.id != null "> and id = #{publicDiscuss.id}</if> |
| | | <if test="publicDiscuss.title != null and publicDiscuss.title != ''"> and title = #{publicDiscuss.title}</if> |
| | |
| | | <if test="publicDiscuss.userIds != null and publicDiscuss.userIds != ''"> and user_ids = #{publicDiscuss.userIds}</if> |
| | | <if test="publicDiscuss.eventType != null "> and event_type = #{publicDiscuss.eventType}</if> |
| | | </where> |
| | | GROUP BY jpd.id |
| | | </select> |
| | | |
| | | <select id="selectPublicDiscussList" parameterType="org.springblade.modules.discuss.dto.PublicDiscussDTO" resultMap="publicDiscussResultMap"> |
| | |
| | | private Integer topsCount; |
| | | |
| | | private Long UserId; |
| | | private String userName; |
| | | |
| | | } |
| | |
| | | // 社区编号 |
| | | @ApiModelProperty(value = "社区编号", example = "") |
| | | private String communityCode; |
| | | @ApiModelProperty(value = "小区id", example = "") |
| | | private String districtIds; |
| | | |
| | | } |
| | |
| | | */ |
| | | @GetMapping("/getUserInfoByDistrictIds") |
| | | @ApiOperation(value = "通过小区id查询用户") |
| | | public R<IPage<HouseholdVO>> getUserInfoByDistrictIds(@RequestParam("districtIds") String districtIds |
| | | , @RequestParam(value = "building", required = false) String building |
| | | , @RequestParam(value = "unit", required = false) String unit |
| | | , @RequestParam(value = "name", required = false) String name |
| | | , Query query) { |
| | | IPage<HouseholdVO> pages = userService.getUserInfoByDistrictIds(districtIds, building, unit, name, Condition.getPage(query)); |
| | | public R<IPage<HouseholdVO>> getUserInfoByDistrictIds(Query query,HouseholdVO householdVO) { |
| | | IPage<HouseholdVO> pages = userService.getUserInfoByDistrictIds(householdVO, Condition.getPage(query)); |
| | | return R.data(pages); |
| | | } |
| | | |
| | |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<HouseholdVO> getUserInfoByDistrictIds(@Param("list") List<String> list, String building, String unit, String name, IPage<HouseholdVO> page); |
| | | List<HouseholdVO> getUserInfoByDistrictIds(@Param("list") List<String> list, @Param("vo") HouseholdVO householdVO, IPage<HouseholdVO> page); |
| | | |
| | | /** |
| | | * 通过机构查询用户 |
| | |
| | | bu.real_name, |
| | | bu.avatar, |
| | | bu.email, |
| | | bu.phone, |
| | | bu.phone phoneNumber, |
| | | bu.birthday, |
| | | jhe.building, |
| | | jhe.unit |
| | |
| | | </foreach> |
| | | and bu.is_deleted = 0 |
| | | and jh.relationship !=18 |
| | | <if test="param2 != null and param2 !=''"> |
| | | and jhe.building like concat('%',#{param2},'%') |
| | | <if test="vo.building != null and vo.building !=''"> |
| | | and jhe.building like concat('%',#{vo.building},'%') |
| | | </if> |
| | | <if test="param3 != null and param3 !=''"> |
| | | and jhe.unit like concat('%',#{param3},'%') |
| | | <if test="vo.unit != null and vo.unit !=''"> |
| | | and jhe.unit like concat('%',#{vo.unit},'%') |
| | | </if> |
| | | <if test="param4 != null and param4 !=''"> |
| | | and jh.name like concat('%',#{param4},'%') |
| | | <if test="vo.name != null and vo.name !=''"> |
| | | and jh.name like concat('%',#{vo.name},'%') |
| | | </if> |
| | | <if test="vo.phoneNumber != null and vo.phoneNumber !=''"> |
| | | and jh.phone_number like concat('%',#{vo.phoneNumber},'%') |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | * @param name |
| | | * @return |
| | | */ |
| | | IPage<HouseholdVO> getUserInfoByDistrictIds(String districtIds,String building,String unit,String name,IPage<HouseholdVO> page); |
| | | IPage<HouseholdVO> getUserInfoByDistrictIds(HouseholdVO householdVO,IPage<HouseholdVO> page); |
| | | |
| | | /** |
| | | * 查询500M内的民警 |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public IPage<HouseholdVO> getUserInfoByDistrictIds(String districtIds, String building, String unit, String name, IPage<HouseholdVO> page) { |
| | | List<String> list = JSON.parseArray(districtIds).toJavaList(String.class); |
| | | List<HouseholdVO> userInfoByDistrictIds = baseMapper.getUserInfoByDistrictIds(list, building, unit, name, page); |
| | | public IPage<HouseholdVO> getUserInfoByDistrictIds(HouseholdVO householdVO, IPage<HouseholdVO> page) { |
| | | List<String> list = JSON.parseArray(householdVO.getDistrictIds()).toJavaList(String.class); |
| | | List<HouseholdVO> userInfoByDistrictIds = baseMapper.getUserInfoByDistrictIds(list, householdVO, page); |
| | | return page.setRecords(userInfoByDistrictIds); |
| | | } |
| | | |