|
@@ -380,6 +380,9 @@ public class WorkPersonSchedulingController {
|
|
HttpServletRequest request) throws Exception{
|
|
HttpServletRequest request) throws Exception{
|
|
MessageResult<List> msgResult = new MessageResult<>();
|
|
MessageResult<List> msgResult = new MessageResult<>();
|
|
|
|
|
|
|
|
+ if(!valueOperations.setIfAbsent("changeScheduling_" + subject,true,3,TimeUnit.SECONDS)){
|
|
|
|
+ throw new Exception("操作过于频繁,请稍后再试!");
|
|
|
|
+ }
|
|
|
|
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
Map<String,Object> searchParams = new HashMap<>();
|
|
if (StringUtils.isNotEmpty(companyId)) {
|
|
if (StringUtils.isNotEmpty(companyId)) {
|
|
@@ -389,6 +392,7 @@ public class WorkPersonSchedulingController {
|
|
}else{
|
|
}else{
|
|
throw new Exception("请选择部门");
|
|
throw new Exception("请选择部门");
|
|
}
|
|
}
|
|
|
|
+
|
|
List<Sort> sortList = new ArrayList<>();
|
|
List<Sort> sortList = new ArrayList<>();
|
|
sortList.add(new Sort("b.sort_no","asc"));
|
|
sortList.add(new Sort("b.sort_no","asc"));
|
|
sortList.add(new Sort("a.id_","asc"));
|
|
sortList.add(new Sort("a.id_","asc"));
|
|
@@ -531,6 +535,10 @@ public class WorkPersonSchedulingController {
|
|
MessageResult<String> msgResult = new MessageResult<>();
|
|
MessageResult<String> msgResult = new MessageResult<>();
|
|
|
|
|
|
try {
|
|
try {
|
|
|
|
+ if(!valueOperations.setIfAbsent("changePersonShift_" + subject,true,3,TimeUnit.SECONDS)){
|
|
|
|
+ throw new Exception("操作过于频繁,请稍后再试!");
|
|
|
|
+ }
|
|
|
|
+
|
|
PersonInfo personInfo = personInfoService.get(Long.valueOf(personId));
|
|
PersonInfo personInfo = personInfoService.get(Long.valueOf(personId));
|
|
if(personInfo == null){
|
|
if(personInfo == null){
|
|
throw new Exception("未找到用户");
|
|
throw new Exception("未找到用户");
|