待办中心-已办、已发列表字段增加。

This commit is contained in:
wangzhijiang
2022-10-18 15:56:54 +08:00
parent f23800cda7
commit 5090ac5620
2 changed files with 6 additions and 1 deletions
@@ -76,7 +76,11 @@
pi.flow_type,
createBy.username as "create_by",
pi.end_time,
pi.status
(select detail.task_id from process_info_detail detail where detail.process_info_id = pi.id and detail.user_id = #{params.currentUserId} limit 1) as task_id,
(select detail.task_definition_key from process_info_detail detail where detail.process_info_id = pi.id and detail.user_id = #{params.currentUserId} limit 1) as task_definition_key,
pi.status,
pi.prc_num,
pi.prc_name
FROM
process_info pi
left join project_library_base plb on plb.id = pi.project_library_id
@@ -152,6 +152,7 @@ public class ProcessInfoDetailEOServiceImpl extends ServiceImpl<ProcessInfoDetai
String taskStatus = jsonObject.getString("taskStatus");
LambdaUpdateWrapper<ProcessInfoDetailEO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.set(ProcessInfoDetailEO::getStatus,taskStatus);
updateWrapper.set(ProcessInfoDetailEO::getSubmitTime,new Date());
updateWrapper.eq(ProcessInfoDetailEO::getTaskId,taskId);
this.update(updateWrapper);
}