wuxw
2023-10-20 34407713f09ea512423204c7e81b242eef3fbe75
优化代码
1个文件已修改
10 ■■■■ 已修改文件
service-job/src/main/java/com/java110/job/adapt/fee/OweFeeCallableAdapt.java 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service-job/src/main/java/com/java110/job/adapt/fee/OweFeeCallableAdapt.java
@@ -78,7 +78,7 @@
            }
        }
        if (oweFeeCallablePos.size() < 1) {
        if (oweFeeCallablePos.isEmpty()) {
            return;
        }
@@ -95,11 +95,14 @@
        String userId = "";
        List<JSONObject> contents = null;
        List<OweFeeCallablePo> sendOweFeeCallablePos = null;
        //todo 按房屋发送
        for (int roomIndex = 0; roomIndex < roomIds.size(); roomIndex++) {
            contents = new ArrayList<>();
            String notifyWay = MsgNotifyFactory.NOTIFY_WAY_WECHAT;
            userId = "";
            sendOweFeeCallablePos = new ArrayList<>();
            for (OweFeeCallablePo oweFeeCallablePo : oweFeeCallablePos) {
                if (!oweFeeCallablePo.getPayerObjId().equals(roomIds.getString(roomIndex))) {
                    continue;
@@ -115,6 +118,8 @@
                    oweFeeCallableV1InnerServiceSMOImpl.updateOweFeeCallable(updateOweFeeCallablePo);
                    continue;
                }
                ownerAppUserDto = new OwnerAppUserDto();
                ownerAppUserDto.setMemberId(oweFeeCallablePo.getOwnerId());
                ownerAppUserDto.setCommunityId(oweFeeCallablePo.getCommunityId());
@@ -136,6 +141,7 @@
                    notifyWay = MsgNotifyFactory.NOTIFY_WAY_ALI;
                }
                contents.add(content);
                sendOweFeeCallablePos.add(oweFeeCallablePo);
            }
@@ -146,7 +152,7 @@
            //todo 催缴
            ResultVo resultVo = MsgNotifyFactory.sendOweFeeMsg(data.getString("communityId"), userId, oweFeeCallablePos.get(0).getOwnerId(), contents, notifyWay);
            for (OweFeeCallablePo oweFeeCallablePo : oweFeeCallablePos) {
            for (OweFeeCallablePo oweFeeCallablePo : sendOweFeeCallablePos) {
                if (StringUtil.isEmpty(oweFeeCallablePo.getOwnerId()) || oweFeeCallablePo.getOwnerId().startsWith("-")) {
                    continue;
                }