|
|
@ -26,6 +26,7 @@ |
|
|
|
package com.yxt.anrui.portal.biz.flow; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.yxt.anrui.flowable.api.processcomment.ProcessCommentFeign; |
|
|
|
import com.yxt.anrui.portal.api.flow.*; |
|
|
@ -50,10 +51,7 @@ import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
* Project: anrui-parent <br/> |
|
|
@ -164,6 +162,8 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
PCHistTaskListAndCommentList a=new PCHistTaskListAndCommentList(); |
|
|
|
a.setTime(f.getFinishTime()==null?new Date():f.getFinishTime()); |
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(f); |
|
|
|
stringObjectMap.put("finishTime",DateUtil.format(f.getFinishTime(),"yyyy-MM-dd HH:mm:ss")); |
|
|
|
stringObjectMap.put("createTime",DateUtil.format(f.getCreateTime(),"yyyy-MM-dd HH:mm:ss")); |
|
|
|
a.setFlowableRecordVo(stringObjectMap); |
|
|
|
a.setState(0+""); |
|
|
|
flowList.add(a); |
|
|
@ -172,8 +172,7 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
ResultBean<List<ProcessCommentVo>> commentList = getCommentList(procInsId,deployId); |
|
|
|
commentList.getData().forEach(f->{ |
|
|
|
PCHistTaskListAndCommentList a=new PCHistTaskListAndCommentList(); |
|
|
|
Date time = f.getCreateTime(); |
|
|
|
a.setTime(time); |
|
|
|
a.setTime(f.getCreateTime()); |
|
|
|
f.setTitle(f.getTaskUserInfo().getAssigneeName()+"添加了评论"); |
|
|
|
Map<String, Object> stringObjectMap = BeanUtil.beanToMap(f); |
|
|
|
a.setProcessCommentVo(stringObjectMap); |
|
|
@ -195,7 +194,7 @@ public class FlowableRest implements FlowableFeign { |
|
|
|
ProcessCommentVo processCommentVo = new ProcessCommentVo(); |
|
|
|
BeanUtil.copyProperties(f,processCommentVo); |
|
|
|
processCommentVo.setCreateTime(f.getTime()); |
|
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
String format = sdf.format(f.getTime()); |
|
|
|
processCommentVo.setTime(format); |
|
|
|
list.add(processCommentVo); |
|
|
|