Bladeren bron

调整

master
zouhantao 3 weken geleden
bovenliggende
commit
73397b2a44

+ 15
- 12
zhywpt-app-msgw/src/main/java/cn/com/taiji/msgw/manager/importReview/MessageImportManagerImpl.java Bestand weergeven

BeanUtils.copyProperties(request, apply); BeanUtils.copyProperties(request, apply);
ObjectMapper objectMapper = new ObjectMapper(); ObjectMapper objectMapper = new ObjectMapper();
// app发送全体用户做过滤 // app发送全体用户做过滤
if (!request.getJPushType().equals(MessageJPushType.JPUSHALLAPPN)
&& !request.getJPushType().equals(MessageJPushType.JPUSHALLAPPM)
&& !request.getJPushType().equals(MessageJPushType.JPUSHALLAPPNM)){
if (request.getReceiverIdList().size() != 0) {
String json = null;
try {
json = JsonTools.toJsonStr(request.getReceiverIdList());
} catch (IOException e) {
throw new RuntimeException(e);
if (request.getMessageType().equals(MessageType.APP)) {
if (!request.getJPushType().equals(MessageJPushType.JPUSHALLAPPN)
&& !request.getJPushType().equals(MessageJPushType.JPUSHALLAPPM)
&& !request.getJPushType().equals(MessageJPushType.JPUSHALLAPPNM)){
if (request.getReceiverIdList().size() != 0) {
String json = null;
try {
json = JsonTools.toJsonStr(request.getReceiverIdList());
} catch (IOException e) {
throw new RuntimeException(e);
}
apply.setReceiverIdList(json);
} }
apply.setReceiverIdList(json);
}else {
apply.setReceiverIdList("ALL");
} }
}else {
apply.setReceiverIdList("ALL");
} }
apply.setStatus(AuditStatus.AUDIT); apply.setStatus(AuditStatus.AUDIT);
apply.setInsertTime(LocalDateTime.now()); apply.setInsertTime(LocalDateTime.now());
} else { } else {
apply.setSendTime(LocalDateTime.now()); apply.setSendTime(LocalDateTime.now());
} }
apply.setReceiverIdList(request.getReceiverIdList().toString());
MsgwSendApply sendApply = sendApplyRepo.save(apply); MsgwSendApply sendApply = sendApplyRepo.save(apply);
// email的存附件表 // email的存附件表
if (MessageType.EMAIL.equals(request.getMessageType()) && request.getEmailAttachmentUrl().size() != 0) { if (MessageType.EMAIL.equals(request.getMessageType()) && request.getEmailAttachmentUrl().size() != 0) {

Laden…
Annuleren
Opslaan