Merge branch 'local_20221024' into huacheng_test
| | |
| | | @ApiModelProperty(value = "社区id集合") |
| | | private List<Long> communityIds; |
| | | |
| | | @ApiModelProperty(value = "农行账号集合") |
| | | private String[] accounts; |
| | | |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | @ApiModelProperty("是否注册小程序(1.是 0.否)") |
| | | private Integer isRegister; |
| | | |
| | | @ApiModelProperty(value = "农行账号集合") |
| | | private String[] accounts; |
| | | |
| | | } |
| | |
| | | import com.panzhihua.common.model.dtos.common.PageComPbCheckUnitDto; |
| | | import com.panzhihua.common.model.dtos.common.PagePbCheckUnitCommonDto; |
| | | import com.panzhihua.common.model.dtos.partybuilding.ComPbCheckUserDTO; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.common.ComPbCheckUnitVo; |
| | | import com.panzhihua.common.model.vos.common.PbCheckUnitStatisticsVo; |
| | |
| | | public R queryByPage(@RequestBody PageComPbCheckUnitDto comPbCheckUnit) { |
| | | //comPbCheckUnit.setCommunityId(this.getCommunityId()); |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | comPbCheckUnit.setBelongTo(this.getLoginUserInfo().getName()); |
| | | String[] accounts = {"NXPZHFXB","NXPZHBCG","NXPZHFXY","NHPZHBCG","NXPZHDFF","NXPZHXYL","NHPZHXYL","NXPZHGZP","NXPZHZSZ","NXYBZGFL","NXPZHDSJ","NXPZHPJF", |
| | | "NXPZHJBF","NXPZHRHZ","NHPZHRHZ","NXPZHQDF","NXPZHDHZ","NXPZHYHF","NXMYXZXB","NXMYXZXY","NXMYCGFL","NXMYHXFL","NXYBXZXB","NXYBXZXY","NXYBANFL","NXYBHGFL","NXYBYMZX","NXPZHJJF"}; |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | if(ArrayUtil.contains(area, loginUserInfo.getName())){ |
| | | comPbCheckUnit.setBelongTo(loginUserInfo.getName()); |
| | | } |
| | | Long communityId = comPbCheckUnit.getCommunityId(); |
| | | if (null!= communityId && communityId == 0L){ |
| | | comPbCheckUnit.setCommunityId(null); |
| | | } |
| | | if(this.getLoginUserInfo().getBindingCheckUnitId()!=null){ |
| | | comPbCheckUnit.setId(this.getLoginUserInfo().getBindingCheckUnitId()); |
| | | if(loginUserInfo.getBindingCheckUnitId()!=null){ |
| | | comPbCheckUnit.setId(loginUserInfo.getBindingCheckUnitId()); |
| | | } |
| | | //攀枝花中国农业银行 |
| | | if ("PZHZGNYYH".equals(loginUserInfo.getAccount())){ |
| | | comPbCheckUnit.setAccounts(accounts); |
| | | } |
| | | return this.comPbCheckUnitService.queryByPage(comPbCheckUnit); |
| | | } |
| | |
| | | public R pagePartyOrganization(@RequestBody PagePartyOrganizationVO pagePartyOrganizationVO) { |
| | | //pagePartyOrganizationVO.setCommunityId(this.getCommunityId()); |
| | | String[] area={"东区","仁和区","米易县","盐边县","西区","钒钛高新区"}; |
| | | if(ArrayUtil.contains(area,this.getLoginUserInfo().getName())){ |
| | | pagePartyOrganizationVO.setBelongTo(this.getLoginUserInfo().getName()); |
| | | String[] accounts = {"NXPZHFXB","NXPZHBCG","NXPZHFXY","NHPZHBCG","NXPZHDFF","NXPZHXYL","NHPZHXYL","NXPZHGZP","NXPZHZSZ","NXYBZGFL","NXPZHDSJ","NXPZHPJF", |
| | | "NXPZHJBF","NXPZHRHZ","NHPZHRHZ","NXPZHQDF","NXPZHDHZ","NXPZHYHF","NXMYXZXB","NXMYXZXY","NXMYCGFL","NXMYHXFL","NXYBXZXB","NXYBXZXY","NXYBANFL","NXYBHGFL","NXYBYMZX","NXPZHJJF"}; |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | if(ArrayUtil.contains(area, loginUserInfo.getName())){ |
| | | pagePartyOrganizationVO.setBelongTo(loginUserInfo.getName()); |
| | | } |
| | | Long communityId = pagePartyOrganizationVO.getCommunityId(); |
| | | if (null!= communityId && communityId == 0L){ |
| | | pagePartyOrganizationVO.setCommunityId(null); |
| | | } |
| | | if(this.getLoginUserInfo().getBindingCheckUnitId()!=null){ |
| | | pagePartyOrganizationVO.setCheckUnitId(this.getLoginUserInfo().getBindingCheckUnitId()); |
| | | if(loginUserInfo.getBindingCheckUnitId()!=null){ |
| | | pagePartyOrganizationVO.setCheckUnitId(loginUserInfo.getBindingCheckUnitId()); |
| | | } |
| | | if ("PZHZGNYYH".equals(loginUserInfo.getAccount())){ |
| | | pagePartyOrganizationVO.setAccounts(accounts); |
| | | } |
| | | return partyBuildingService.pagePartyOrganization(pagePartyOrganizationVO); |
| | | } |
| | |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.accounts != null and dto.accounts.length != 0"> |
| | | AND cpcu.accounts IN |
| | | <foreach collection="dto.accounts" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="dto.keyWord != null and dto.keyWord != ''"> |
| | | and (cpcu.contacts like concat(#{dto.keyWord},'%') or cpcu.`name` like concat('%',#{dto.keyWord},'%') or cpcu.phone like concat(#{dto.keyWord},'%')) |
| | | </if> |
| | |
| | | and o.id = #{dto.orgId} |
| | | </if> |
| | | <if test='dto.account != null and dto.account != ""'> |
| | | and m.phone like concat (#{dto.account},'%') |
| | | and su.account like concat (#{dto.account},'%') |
| | | </if> |
| | | <if test="dto.accounts != null and dto.accounts.length != 0"> |
| | | and su.account IN |
| | | <foreach collection="dto.accounts" item="item" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test='dto.name != null and dto.name != ""'> |
| | | and m.name like concat (#{dto.name},'%') |