fix:80847
This commit is contained in:
+23
-8
@@ -247,14 +247,6 @@ public class PayWorkingGroupDistributionRecordServiceImpl extends ServiceImpl<Pa
|
|||||||
List<String> listMsg = new ArrayList<>();
|
List<String> listMsg = new ArrayList<>();
|
||||||
for (PayContactsManagementTemporary p : list) {
|
for (PayContactsManagementTemporary p : list) {
|
||||||
try {
|
try {
|
||||||
List<PayWorkingGroupDistributionRecord> listStr = listPayWorkingGroupDistributionRecord.stream().filter(item->
|
|
||||||
(payWorkingGroupDistributionRecord.getProjectType() == PayProjectCommon.PROJECT_TYPE_FILE4) ?
|
|
||||||
Objects.equals(item.getTemporaryContactsId(),p.getId()) :
|
|
||||||
Objects.equals(item.getContactsId(),p.getId())).collect(Collectors.toList());
|
|
||||||
if(CollectionUtils.isEmpty(listStr)){
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 发送消息
|
// 发送消息
|
||||||
SendMessageDTO sendMessageDTO = new SendMessageDTO();
|
SendMessageDTO sendMessageDTO = new SendMessageDTO();
|
||||||
Integer sendEmailFlag = payWorkingGroupDistributionRecord.getSendEmailFlag();
|
Integer sendEmailFlag = payWorkingGroupDistributionRecord.getSendEmailFlag();
|
||||||
@@ -275,9 +267,32 @@ public class PayWorkingGroupDistributionRecordServiceImpl extends ServiceImpl<Pa
|
|||||||
sendMessageDTO.setBusType("C_OPEN_TYPE12");
|
sendMessageDTO.setBusType("C_OPEN_TYPE12");
|
||||||
JSONObject json = new JSONObject();
|
JSONObject json = new JSONObject();
|
||||||
if(Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE1)){
|
if(Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE1)){
|
||||||
|
List<PayWorkingGroupDistributionRecord> listStr = listPayWorkingGroupDistributionRecord.stream().filter(item->
|
||||||
|
Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE1) ?
|
||||||
|
Objects.equals(item.getTemporaryContactsId(),p.getId()) :
|
||||||
|
Objects.equals(item.getContactsId(),p.getId())).collect(Collectors.toList());
|
||||||
|
if(CollectionUtils.isEmpty(listStr)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
json.put("id",listStr.get(0).getSubId());
|
json.put("id",listStr.get(0).getSubId());
|
||||||
}else if(Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE2)){
|
}else if(Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE2)){
|
||||||
|
List<PayWorkingGroupDistributionRecord> listStr = listPayWorkingGroupDistributionRecord.stream().filter(item->
|
||||||
|
Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE2) ?
|
||||||
|
Objects.equals(item.getTemporaryContactsId(),p.getId()) :
|
||||||
|
Objects.equals(item.getContactsId(),p.getId())).collect(Collectors.toList());
|
||||||
|
if(CollectionUtils.isEmpty(listStr)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
json.put("id",listStr.get(0).getProjectId());
|
json.put("id",listStr.get(0).getProjectId());
|
||||||
|
}else if(Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE4)){
|
||||||
|
List<PayWorkingGroupDistributionRecord> listStr = listPayWorkingGroupDistributionRecord.stream().filter(item->
|
||||||
|
Objects.equals(payWorkingGroupDistributionRecord.getProjectType(),PayProjectCommon.PROJECT_TYPE_FILE4) ?
|
||||||
|
Objects.equals(item.getTemporaryContactsId(),p.getId()) :
|
||||||
|
Objects.equals(item.getContactsId(),p.getId())).collect(Collectors.toList());
|
||||||
|
if(CollectionUtils.isEmpty(listStr)){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
json.put("id",listStr.get(0).getSubId());
|
||||||
}
|
}
|
||||||
sendMessageDTO.setBusId(json.toJSONString());
|
sendMessageDTO.setBusId(json.toJSONString());
|
||||||
sendMessageService.SendMessageService(sendMessageDTO);
|
sendMessageService.SendMessageService(sendMessageDTO);
|
||||||
|
|||||||
Reference in New Issue
Block a user