| | |
| | | @PostMapping("/page") |
| | | public R queryByPage(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | //comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | comPbCheckUnit.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |
| | |
| | | public R unitStatisticsTop(@RequestParam(value = "communityId", required = false) Long communityId, |
| | | @RequestParam(value = "belongTo", required = false) String choice) { |
| | | String belongTo = ""; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | belongTo = this.getLoginUserInfo().getName(); |
| | | } |
| | |
| | | @ApiOperation(value = "报到单位统计", response = PbCheckUnitStatisticsVo.class) |
| | | @PostMapping("/statistics") |
| | | public R unitStatistics(@RequestBody PagePbCheckUnitCommonDto commonDto) { |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | commonDto.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |
| | |
| | | @RequestParam(value = "choice", required = false) String choice, |
| | | @RequestParam(value = "checkUnitId", required = false) Long checkUnitId) { |
| | | String belongTo = ""; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | belongTo = this.getLoginUserInfo().getName(); |
| | | } |
| | |
| | | @ApiOperation(value = "报到党员统计-按单位归属统计", response = PbCheckUnitStatisticsVo.class) |
| | | @PostMapping("/pbStatistics/belong") |
| | | public R pbStatisticsBelong(@RequestBody PagePbCheckUnitCommonDto commonDto) { |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | commonDto.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |
| | |
| | | @ApiOperation(value = "报到党员统计-按单位统计", response = ComPbCheckUnitVo.class) |
| | | @PostMapping("/pbStatistics/unit") |
| | | public R pbStatisticsUnit(@RequestBody PagePbCheckUnitCommonDto commonDto) { |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | commonDto.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |
| | |
| | | @ApiOperation(value = "新增党员") |
| | | @PostMapping("addpartybuildingmember") |
| | | public R addPartyBuildingMember(@RequestBody PartyBuildingMemberVO partyBuildingMemberVO) { |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | partyBuildingMemberVO.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |
| | |
| | | @PostMapping("pagepartyorganization") |
| | | public R pagePartyOrganization(@RequestBody PagePartyOrganizationVO pagePartyOrganizationVO) { |
| | | //pagePartyOrganizationVO.setCommunityId(this.getCommunityId()); |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛新区"}; |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | pagePartyOrganizationVO.setBelongTo(this.getLoginUserInfo().getName()); |
| | | } |