| | |
| | | } |
| | | } |
| | | |
| | | if (oweFeeCallablePos.size() < 1) { |
| | | if (oweFeeCallablePos.isEmpty()) { |
| | | return; |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | oweFeeCallableV1InnerServiceSMOImpl.updateOweFeeCallable(updateOweFeeCallablePo); |
| | | continue; |
| | | } |
| | | |
| | | |
| | | ownerAppUserDto = new OwnerAppUserDto(); |
| | | ownerAppUserDto.setMemberId(oweFeeCallablePo.getOwnerId()); |
| | | ownerAppUserDto.setCommunityId(oweFeeCallablePo.getCommunityId()); |
| | |
| | | notifyWay = MsgNotifyFactory.NOTIFY_WAY_ALI; |
| | | } |
| | | contents.add(content); |
| | | sendOweFeeCallablePos.add(oweFeeCallablePo); |
| | | |
| | | } |
| | | |
| | |
| | | //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; |
| | | } |