| | |
| | | Integer organSumIntegral(@Param("communityIds") List<Long> communityIds,@Param("yearTime") String yearTime); |
| | | |
| | | Integer pbOrganSumIntegral(@Param("communityIds") List<Long> communityIds,@Param("yearTime") String yearTime); |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 查询单位管理员 |
| | | * |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | Integer selectOrgAdmin(@Param("phone") String phone); |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | Long communityId=this.baseMapper.selectCommunityId(comPbCheckUnit.getHelpCommunityName().split(",")[0],comPbCheckUnit.getHelpCommunityName().split(",")[1],comPbCheckUnit.getHelpCommunityName().split(",")[2]); |
| | | ComPbCheckUnit entity = new ComPbCheckUnit(); |
| | | BeanUtils.copyProperties(comPbCheckUnit, entity); |
| | | int a=0; |
| | | if(!StringUtils.isEmpty(comPbCheckUnit.getAdminPhone())) |
| | | { |
| | | a=this.baseMapper.selectOrgAdmin(comPbCheckUnit.getAdminPhone()); |
| | | } |
| | | if(a!=0) |
| | | { |
| | | return R.fail("该手机号已绑定管理员!"); |
| | | } |
| | | if(communityId!=null){ |
| | | entity.setCommunityId(communityId); |
| | | } |
| | |
| | | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectOrgAdmin" resultType="Integer"> |
| | | select count(*) from com_pb_check_unit where admin_phone like concat('%',#{phone},'%') |
| | | </select> |
| | | |
| | | |
| | | |
| | | </mapper> |
| | | |
| | |
| | | Integer selectOrgAdmin(@Param("phone") String phone); |
| | | |
| | | /** |
| | | * 查询绑定单位id |
| | | * @param phone |
| | | * @return |
| | | */ |
| | | Long selectOrgAdminId(@Param("phone") String phone); |
| | | |
| | | /** |
| | | * 查询报道单位id |
| | | * |
| | | * @param phone |
| | |
| | | loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | } |
| | | Long checkUnitId=userDao.selectCheckUnitId(phone); |
| | | Long AdminUnitId=userDao.selectOrgAdminId(phone); |
| | | if(checkUnitId!=null){ |
| | | loginUserInfoVO.setCheckUnitId(checkUnitId); |
| | | } |
| | | // else { |
| | | // loginUserInfoVO.setIsCheckUnitAdmin(0); |
| | | // } |
| | | if (AdminUnitId!=null){ |
| | | loginUserInfoVO.setBindingCheckUnitId(AdminUnitId); |
| | | } |
| | | //是否网格员 |
| | | int easyPhotoMember = userDao.countEasyPhotoMember(phone, userCommunityId); |
| | | if (easyPhotoMember > 0) { |
| | |
| | | <select id="selectOrgAdmin" resultType="Integer"> |
| | | select count(*) from com_pb_check_unit where admin_phone like concat('%',#{phone},'%') |
| | | </select> |
| | | |
| | | <select id="selectOrgAdminId" resultType="Long"> |
| | | select id from com_pb_check_unit where admin_phone like concat('%',#{phone},'%') |
| | | </select> |
| | | |
| | | <select id="selectCheckUnitId" resultType="Long"> |
| | | select check_unit_id from com_pb_member where phone = #{phone} limit 1 |
| | | </select> |