yanghui
2022-10-27 8f4269c38cbb60fc18372a7ce83cdcc2e78205f3
Merge branch 'local_20221024' into huacheng_test
6个文件已修改
51 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/common/PageComPbCheckUnitDto.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/partybuilding/PagePartyOrganizationVO.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComPbCheckUnitApi.java 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityPartyBuildingApi.java 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbCheckUnitMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbMemberMapper.xml 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/common/PageComPbCheckUnitDto.java
@@ -97,6 +97,9 @@
    @ApiModelProperty(value = "社区id集合")
    private List<Long> communityIds;
    @ApiModelProperty(value = "农行账号集合")
    private String[] accounts;
}
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/partybuilding/PagePartyOrganizationVO.java
@@ -77,4 +77,8 @@
    @ApiModelProperty("是否注册小程序(1.是 0.否)")
    private Integer isRegister;
    @ApiModelProperty(value = "农行账号集合")
    private String[] accounts;
}
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/ComPbCheckUnitApi.java
@@ -13,6 +13,7 @@
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;
@@ -82,15 +83,22 @@
    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);
    }
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/CommunityPartyBuildingApi.java
@@ -297,15 +297,21 @@
    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);
    }
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbCheckUnitMapper.xml
@@ -42,6 +42,12 @@
                    #{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>
springcloud_k8s_panzhihuazhihuishequ/service_partybuilding/src/main/resources/mapper/ComPbMemberMapper.xml
@@ -80,7 +80,13 @@
               and o.id = #{dto.orgId}
            </if>
            <if test='dto.account != null and dto.account != &quot;&quot;'>
                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 != &quot;&quot;'>
                and m.name like concat (#{dto.name},'%')