| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.TreeListVO; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.model.vos.common.PbCheckUnitStatisticsVo; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitErrorExcelVO; |
| | | import com.panzhihua.common.model.vos.partybuilding.excel.ComPbCheckUnitExcelVO; |
| | | import com.panzhihua.common.utlis.StringUtils; |
| | |
| | | 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); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R unitStatisticsTop(Long communityId, String belongTo, String choice,Long[] unitIds) { |
| | | public R unitStatisticsTop(Long communityId, String belongTo, String choice,Long[] unitIds,String yearTime) { |
| | | List<Long> communityIds = new ArrayList<>(); |
| | | if (null != communityId){ |
| | | communityIds = comPbMemberDAO.selectIds(communityId); |
| | |
| | | communityIds.add(communityId); |
| | | } |
| | | } |
| | | |
| | | return R.ok(this.baseMapper.unitStatisticsTop(communityIds, belongTo, choice,unitIds)); |
| | | //查询 活动总积分 |
| | | PbCheckUnitStatisticsVo vo = this.baseMapper.unitStatisticsTop(communityIds, belongTo, choice,unitIds,yearTime); |
| | | if(null != vo) { |
| | | Integer sum = this.baseMapper.organSumIntegral(communityIds,yearTime); |
| | | vo.setOrganSumIntegral(sum); |
| | | } |
| | | return R.ok(vo); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R pbStatisticsTop(Long communityId, String belongTo, String choice, Long checkUnitId,Long[] unitIds) { |
| | | public R pbStatisticsTop(Long communityId, String belongTo, String choice, Long checkUnitId,Long[] unitIds ,String yearTime) { |
| | | |
| | | List<Long> communityIds = new ArrayList<>(); |
| | | if (null != communityId){ |
| | |
| | | communityIds.add(communityId); |
| | | } |
| | | } |
| | | return R.ok(this.baseMapper.pbStatisticsTop(communityIds, belongTo, choice, checkUnitId,unitIds)); |
| | | //查询 活动总积分 |
| | | PbCheckUnitStatisticsVo vo = this.baseMapper.pbStatisticsTop(communityIds, belongTo, choice, checkUnitId,unitIds,yearTime); |
| | | if(null != vo) { |
| | | Integer sum = this.baseMapper.pbOrganSumIntegral(communityIds,yearTime); |
| | | vo.setOrganSumIntegral(sum); |
| | | } |
| | | return R.ok(vo); |
| | | } |
| | | |
| | | /** |