|
@@ -50,6 +50,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.net.URLDecoder;
|
|
import java.net.URLDecoder;
|
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
@@ -438,9 +439,16 @@ public class ActTaskController {
|
|
|
}
|
|
}
|
|
|
htv.setAssignees(assignees);
|
|
htv.setAssignees(assignees);
|
|
|
// 关联审批意见
|
|
// 关联审批意见
|
|
|
- List<Comment> comments = taskService.getTaskComments(htv.getId(), "comment");
|
|
|
|
|
|
|
+// List<Comment> comments = taskService.getTaskComments(htv.getId(), "comment");
|
|
|
|
|
+ List<String> comments = actNodeService.selectMsg(htv.getId());
|
|
|
if(comments!=null&&comments.size()>0){
|
|
if(comments!=null&&comments.size()>0){
|
|
|
- htv.setComment(comments.get(0).getFullMessage());
|
|
|
|
|
|
|
+ htv.setComment(comments.get(0));
|
|
|
|
|
+// if("��ͬ��".equals(comments.get(0).getFullMessage())){
|
|
|
|
|
+// htv.setComment("已同意");
|
|
|
|
|
+// }else{
|
|
|
|
|
+//
|
|
|
|
|
+// htv.setComment(comments.get(0).getFullMessage());
|
|
|
|
|
+// }
|
|
|
}
|
|
}
|
|
|
if (!firstComplete && htv.getEndTime() != null){
|
|
if (!firstComplete && htv.getEndTime() != null){
|
|
|
htv.setDeleteReason("");
|
|
htv.setDeleteReason("");
|
|
@@ -790,6 +798,8 @@ public class ActTaskController {
|
|
|
public Result<Object> doneList(String name,
|
|
public Result<Object> doneList(String name,
|
|
|
String categoryId,
|
|
String categoryId,
|
|
|
String defname,
|
|
String defname,
|
|
|
|
|
+ String begin,
|
|
|
|
|
+ String end,
|
|
|
Integer priority,
|
|
Integer priority,
|
|
|
HttpServletRequest req){
|
|
HttpServletRequest req){
|
|
|
|
|
|
|
@@ -815,6 +825,21 @@ public class ActTaskController {
|
|
|
Map<String,Object> map=new HashMap<>();
|
|
Map<String,Object> map=new HashMap<>();
|
|
|
map.put("name",name);
|
|
map.put("name",name);
|
|
|
map.put("username",userId);
|
|
map.put("username",userId);
|
|
|
|
|
+ // 格式化输出
|
|
|
|
|
+ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
+ if(StringUtils.isBlank(begin)){
|
|
|
|
|
+ // 获取三个月前的日期
|
|
|
|
|
+ Calendar calendar = Calendar.getInstance();
|
|
|
|
|
+ calendar.setTime(new Date());
|
|
|
|
|
+ calendar.add(Calendar.MONTH, -1);
|
|
|
|
|
+ Date threeMonthsAgo = calendar.getTime();
|
|
|
|
|
+ begin = sdf.format(threeMonthsAgo);
|
|
|
|
|
+ }
|
|
|
|
|
+ if(StringUtils.isBlank(end)){
|
|
|
|
|
+ end = sdf.format(new Date());
|
|
|
|
|
+ }
|
|
|
|
|
+ map.put("begin",begin);
|
|
|
|
|
+ map.put("end",end);
|
|
|
map.put("pkOrg",loginUser.getOrgCode());
|
|
map.put("pkOrg",loginUser.getOrgCode());
|
|
|
map.put("userId",loginUser.getId());
|
|
map.put("userId",loginUser.getId());
|
|
|
// map.put("defname",defname);
|
|
// map.put("defname",defname);
|
|
@@ -839,10 +864,19 @@ public class ActTaskController {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
// 关联审批意见
|
|
// 关联审批意见
|
|
|
- List<Comment> comments = taskService.getTaskComments(htv.getId(), "comment");
|
|
|
|
|
|
|
+// List<Comment> comments = taskService.getTaskComments(htv.getId(), "comment");
|
|
|
|
|
+ List<String> comments = actNodeService.selectMsg(htv.getId());
|
|
|
if(comments!=null&&comments.size()>0){
|
|
if(comments!=null&&comments.size()>0){
|
|
|
- htv.setComment(comments.get(0).getFullMessage());
|
|
|
|
|
|
|
+ htv.setComment(comments.get(0));
|
|
|
}
|
|
}
|
|
|
|
|
+// if(comments!=null&&comments.size()>0){
|
|
|
|
|
+// if("��ͬ��".equals(comments.get(0).getFullMessage())){
|
|
|
|
|
+// htv.setComment("已同意");
|
|
|
|
|
+// }else{
|
|
|
|
|
+//
|
|
|
|
|
+// htv.setComment(comments.get(0).getFullMessage());
|
|
|
|
|
+// }
|
|
|
|
|
+// }
|
|
|
// 关联流程信息
|
|
// 关联流程信息
|
|
|
ActZprocess actProcess = actZprocessService.getById(htv.getProcDefId());
|
|
ActZprocess actProcess = actZprocessService.getById(htv.getProcDefId());
|
|
|
if(actProcess!=null){
|
|
if(actProcess!=null){
|