| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * 获取动作人员详情 |
| | | * @param communityId |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "社区工做人员详情") |
| | | @PostMapping("/getComPbServiceTeamData") |
| | | public R getComPbServiceTeamData(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phone") String phone) |
| | | { |
| | | return partyBuildingService.getComPbServiceTeamData(communityId,phone); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "获取用户电子档案", response = UserArchivesVO.class) |
| | | @PostMapping("getUserArchives") |
| | | public R getUserArchives() { |
| | |
| | | @PostMapping("/partybuildIng/pageserviceteam") |
| | | R pageServiceTeam(@RequestBody PageComPbServiceTeamDTO pageComPbServiceTeamDTO); |
| | | |
| | | |
| | | @PostMapping("/partybuildIng/getComPbServiceTeamData") |
| | | public R getComPbServiceTeamData(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phone") String phone); |
| | | |
| | | |
| | | /** |
| | | * 创建党员活动 小程序创建党员活动 |
| | | * |
| | |
| | | return partyBuildingService.pageServiceTeam(pageComPbServiceTeamDTO); |
| | | } |
| | | |
| | | /** |
| | | * 获取动作人员详情 |
| | | * @param communityId |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "社区工做人员详情") |
| | | @PostMapping("/getComPbServiceTeamData") |
| | | public R getComPbServiceTeamData(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phone") String phone) |
| | | { |
| | | return partyBuildingService.getComPbServiceTeamData(communityId,phone); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "分页查询物业党员先锋", response = ComPbServiceTeamVO.class) |
| | | @PostMapping("pageserviceteamProperty") |
| | | public R pageServiceTeamProperty(@RequestBody PageComPbServiceTeamDTO pageComPbServiceTeamDTO) { |
| | |
| | | return comPbServiceTeamService.PageComPbServiceTeamDTO(pageComPbServiceTeamDTO); |
| | | } |
| | | |
| | | @PostMapping("getComPbServiceTeamData") |
| | | public R getComPbServiceTeamData(@RequestParam("communityId") String communityId, |
| | | @RequestParam("phone") String phone) |
| | | { |
| | | return comPbServiceTeamService.getComPbServiceTeamData(communityId,phone); |
| | | } |
| | | |
| | | /** |
| | | * 删除服务团队人员 |
| | | * |
| | |
| | | List<ComPbServiceTeamVO> getTotlePerson(@Param("param") String param, @Param("communityId") Long communityId); |
| | | |
| | | IPage<ComPbServiceTeamVO> pageServiceTeamProperty(Page page, @Param("pageComPbServiceTeamDTO")PageComPbServiceTeamDTO pageComPbServiceTeamDTO); |
| | | |
| | | |
| | | ComPbServiceTeamDO getComPbServiceTeamData(@Param("communityId") String communityId, |
| | | @Param("phone") String phone); |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.partybuilding.ComPbServiceTeamDTO; |
| | | import com.panzhihua.common.model.dtos.partybuilding.PageComPbServiceTeamDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_dangjian.model.dos.ComPbServiceTeamDO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | R getTotlePerson(String param, Long communityId); |
| | | |
| | | |
| | | R getComPbServiceTeamData(String communityId,String phone); |
| | | |
| | | |
| | | } |
| | |
| | | page.setCurrent(pageNum); |
| | | IPage<ComPbServiceTeamVO> iPage = comPbServiceTeamDAO.PageComPbServiceTeamDTO(page, pageComPbServiceTeamDTO); |
| | | if (nonNull(pageComPbServiceTeamDTO.getPropertyId())){ |
| | | iPage = comPbServiceTeamDAO.pageServiceTeamProperty(page, pageComPbServiceTeamDTO); |
| | | iPage = comPbServiceTeamDAO.pageServiceTeamProperty(page, pageComPbServiceTeamDTO); |
| | | } |
| | | return R.ok(iPage); |
| | | } |
| | |
| | | List<ComPbServiceTeamVO> comPbServiceTeamVOS = comPbServiceTeamDAO.getTotlePerson(param, communityId); |
| | | return R.ok(comPbServiceTeamVOS); |
| | | } |
| | | |
| | | @Override |
| | | public R getComPbServiceTeamData(String communityId, String phone) { |
| | | return R.ok(comPbServiceTeamDAO.getComPbServiceTeamData(communityId,phone)); |
| | | } |
| | | } |
| | |
| | | AND t1.job LIKE concat( #{pageComPbServiceTeamDTO.job}, '%') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | | <select id="getComPbServiceTeamData" resultType="com.panzhihua.common.model.vos.partybuilding.west.ComPbServiceTeamVO"> |
| | | SELECT t1.*, t2.`name` AS communityName |
| | | FROM com_pb_service_team t1 |
| | | LEFT JOIN com_act t2 ON t1.community_id = t2.community_id |
| | | <where> |
| | | 1=1 |
| | | <if test=" communityId != null and communityId != '' "> |
| | | AND t1.community_id = #{communityId} |
| | | </if> |
| | | <if test="phone != null and phone != '' "> |
| | | AND t1.phone = #{phone} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <select id="pageServiceTeamProperty" |
| | | resultType="com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamVO"> |
| | | select * from com_pb_service_team where property_id=#{pageComPbServiceTeamDTO.propertyId} |
| | |
| | | if(count>0){ |
| | | loginUserInfoVO.setIsCheckUnitAdmin(1); |
| | | } |
| | | else { |
| | | loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | } |
| | | Long checkUnitId=userDao.selectCheckUnitId(phone); |
| | | if(checkUnitId!=null){ |
| | | loginUserInfoVO.setCheckUnitId(checkUnitId); |
| | | } |
| | | |
| | | else { |
| | | loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | } |
| | | // else { |
| | | // loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | // } |
| | | //是否网格员 |
| | | int easyPhotoMember = userDao.countEasyPhotoMember(phone, userCommunityId); |
| | | if (easyPhotoMember > 0) { |