Commit 002b6002 authored by 周亚武's avatar 周亚武

钉钉推送消息存入申请时间和完成时间

parent e8794a56
......@@ -387,6 +387,8 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
* @param processInstanceId 实例id
*/
public void handleByProcessInstanceId(String processInstanceId) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mmX");
sdf.setTimeZone(TimeZone.getTimeZone("UTC"));
try {
if (processInstanceId != null) {
Rest<GetProcessInstanceResponseBody.GetProcessInstanceResponseBodyResult> rest = getOaRecordsById(processInstanceId);
......@@ -660,6 +662,19 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
}
}
try {
//保存创建时间
leaveRecordEntity.setAppealTime(sdf.parse(result.getCreateTime()));
}catch (Exception e){
throw new RuntimeException(e);
}
try {
//保存完成时间
leaveRecordEntity.setAuditTime(sdf.parse(result.getFinishTime()));
}catch (Exception e){
throw new RuntimeException(e);
}
if (result.getStatus().compareToIgnoreCase("NEW") == 0 || result.getStatus().compareToIgnoreCase("RUNNING") == 0) {
leaveRecordEntity.setProcessStatus(1);
......
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