提交 883b6fbd authored 作者: 133's avatar 133

[任务] 提交bug

上级 bc05e914
...@@ -30,6 +30,7 @@ import org.springframework.http.ResponseEntity; ...@@ -30,6 +30,7 @@ import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.persistence.Id;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -353,7 +354,7 @@ public class TaskController { ...@@ -353,7 +354,7 @@ public class TaskController {
// } // }
switch(businessType){ switch(businessType){
case 3 : case 3 :
return ResponseEntity.ok(allot(taskLogUserVos,billStatus)); return ResponseEntity.ok(allot2(taskLogUserVos,billStatus));
case 22 : case 22 :
//语句 //语句
...@@ -499,6 +500,54 @@ public class TaskController { ...@@ -499,6 +500,54 @@ public class TaskController {
} }
private Map<String, String> allot2(List<TaskLogUserVo> taskLogUserVos,Integer billStatus){
Map<String, String> map = new HashMap<>();
for (TaskLogUserVo taskLogUserVo : taskLogUserVos) {
if (taskLogUserVo.getOldStatus()!=null){
if (taskLogUserVo.getOldStatus() == 340){
if (map.containsKey("340")){
if (map.containsKey("302")) {
map.put("340j", taskLogUserVo.getUser());
}else {
map.put("340",taskLogUserVo.getUser());
}
} else {
if (map.containsKey("302")) {
map.put("340j", taskLogUserVo.getUser());
}else {
map.put(taskLogUserVo.getOldStatus() + "", taskLogUserVo.getUser());
}
}
}else {
map.put(taskLogUserVo.getOldStatus()+"",taskLogUserVo.getUser());
}
}else {
map.put(taskLogUserVo.getOldStatus()+"",taskLogUserVo.getUser());
}
}
if (billStatus==333){
map.remove("340");
}
if (billStatus==340 && !map.containsKey("302")){
map.remove("340");
}
if (!map.containsKey("341") && billStatus!=341){
map.remove("340");
}
if (billStatus==341 && map.containsKey("302")){
map.remove("340");
}
if (billStatus==302||billStatus==340){
map.remove("340j");
}
if (!map.containsKey("341") && billStatus!=341&&map.containsKey("302")){
map.remove("340j");
}
return map;
}
private Map<String, String> backAllot(List<TaskLogUserVo> taskLogUserVos,Integer billStatus){ private Map<String, String> backAllot(List<TaskLogUserVo> taskLogUserVos,Integer billStatus){
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
for (TaskLogUserVo taskLogUserVo : taskLogUserVos) { for (TaskLogUserVo taskLogUserVo : taskLogUserVos) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论