Commit 9aec84d8 by shiwenbo

1、处理消息返回时间格式的问题

2、处理合同预警生成的提醒使用id错误的问题
parent 749d36f6
...@@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory; ...@@ -8,6 +8,7 @@ import org.slf4j.LoggerFactory;
import com.beecode.bcp.type.KObject; import com.beecode.bcp.type.KObject;
import com.beecode.inz.message.MessageInfoConstants; import com.beecode.inz.message.MessageInfoConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
public class MessageInfo { public class MessageInfo {
...@@ -21,6 +22,7 @@ public class MessageInfo { ...@@ -21,6 +22,7 @@ public class MessageInfo {
private ReferenceInfo sender; private ReferenceInfo sender;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime; private Date createTime;
private String type; private String type;
......
...@@ -147,8 +147,16 @@ public class BaseBusinessWarn { ...@@ -147,8 +147,16 @@ public class BaseBusinessWarn {
String[] noticePerson = warnSetting.getPersonnel(); String[] noticePerson = warnSetting.getPersonnel();
String message = warningCalculate.warnMessage(); String message = warningCalculate.warnMessage();
try { try {
if (isWarning && isNotice) if (isWarning && isNotice) {
if(warnSetting.getBillType().equals("合同")) {
//合同预警设置的billId存的是合同信息表的id,使用合同信息表的id创建提醒会导致提醒无法穿透卡片,无法查询审批流程信息。应该改为使用合同id。
JSONObject memo = new JSONObject(warnSetting.getMemo());
String contractId = memo.getString("contractId");
notice(noticePerson, message, UUID.fromString(contractId), warnSetting);
} else {
notice(noticePerson, message, warnSetting.getBillId(), warnSetting); notice(noticePerson, message, warnSetting.getBillId(), warnSetting);
}
}
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment