|
|
@ -2,6 +2,7 @@ package com.yxt.anrui.terminal.biz.app; |
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.yxt.anrui.flowable.api.flowcomment.FlowComment; |
|
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowRecordVo; |
|
|
|
import com.yxt.anrui.flowable.api.flowtask.FlowTaskFeign; |
|
|
@ -13,6 +14,7 @@ import com.yxt.common.core.result.ResultBean; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.text.ParseException; |
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
@ -52,7 +54,12 @@ public class AppService { |
|
|
|
vo.setStateValue(stateValue); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(type)) { |
|
|
|
String processEndTime = vo.getProcessEndTime(); |
|
|
|
vo.setStateKey(type); |
|
|
|
if(StringUtils.isNotBlank(processEndTime)){ |
|
|
|
vo.setStateKey("8");//流程已办结
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -74,8 +81,10 @@ public class AppService { |
|
|
|
|
|
|
|
commentList.getData().forEach(f->{ |
|
|
|
AppFlowableRecordAndCommentVo a=new AppFlowableRecordAndCommentVo(); |
|
|
|
a.setTime(f.getTime()); |
|
|
|
a.setProcesscommentVo(f); |
|
|
|
Date time = f.getCreateTime(); |
|
|
|
a.setTime(time); |
|
|
|
f.setTitle(f.getTaskUserInfo().getAssigneeName()+"添加了评论"); |
|
|
|
a.setProcessCommentVo(f); |
|
|
|
a.setState(1+""); |
|
|
|
list.add(a); |
|
|
|
}); |
|
|
@ -91,6 +100,10 @@ public class AppService { |
|
|
|
commentList.getData().forEach(f->{ |
|
|
|
ProcessCommentVo processCommentVo = new ProcessCommentVo(); |
|
|
|
BeanUtil.copyProperties(f,processCommentVo); |
|
|
|
processCommentVo.setCreateTime(f.getTime()); |
|
|
|
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
String format = sdf.format(f.getTime()); |
|
|
|
processCommentVo.setTime(format); |
|
|
|
list.add(processCommentVo); |
|
|
|
}); |
|
|
|
return rb.success().setData(list); |
|
|
|