|
|
@@ -7,6 +7,7 @@ import api.entity.database.order.WorkOrderOperateLog;
|
|
7
|
7
|
import api.entity.database.system.*;
|
|
8
|
8
|
import api.entity.input.order.TransOrderInput;
|
|
9
|
9
|
import api.entity.view.order.WorkOrderBaseView;
|
|
|
10
|
+import api.entity.view.system.WorkroderTypeView;
|
|
10
|
11
|
import api.mapper.system.UserMapper;
|
|
11
|
12
|
import api.service.call.ICallLogService;
|
|
12
|
13
|
import api.service.call.IRecordService;
|
|
|
@@ -41,6 +42,8 @@ import java.text.SimpleDateFormat;
|
|
41
|
42
|
import java.time.LocalDate;
|
|
42
|
43
|
|
|
43
|
44
|
import java.util.*;
|
|
|
45
|
+import java.util.stream.Collectors;
|
|
|
46
|
+
|
|
44
|
47
|
//待交办1 ; 待接单(没有处理人的时候)2; 待处理3; 待审核 4 ;待回访5 ;已完结6;
|
|
45
|
48
|
@Api(value = "wo_workorderbase",tags = "wo_workorderbase")
|
|
46
|
49
|
@RestController
|
|
|
@@ -433,9 +436,9 @@ public class WorkOrderBaseController extends BaseController {
|
|
433
|
436
|
ov.setProjectname(dicdata.getDictLabel());
|
|
434
|
437
|
}
|
|
435
|
438
|
if (orderBase.getWorkordercate() > 0) {
|
|
436
|
|
- WorkroderType ordertype = workrodertypeService.getEntity(orderBase.getWorkordercate() );
|
|
|
439
|
+ WorkroderTypeView ordertype = workrodertypeService.selectWorkroderTypeById(orderBase.getWorkordercate() );
|
|
437
|
440
|
if(ordertype!=null){
|
|
438
|
|
- ov.setWorkordercatename(ordertype.getTypeName());
|
|
|
441
|
+ ov.setWorkordercatename(ordertype.getAncestorsName());
|
|
439
|
442
|
}
|
|
440
|
443
|
|
|
441
|
444
|
}
|
|
|
@@ -469,7 +472,10 @@ public class WorkOrderBaseController extends BaseController {
|
|
469
|
472
|
if (!StringHelper.isEmpty(orderBase.getFile())) {
|
|
470
|
473
|
String captchaEnabled = configService.selectCaptchaEnabled("FileUrl");
|
|
471
|
474
|
LambdaQueryWrapper<SysAccessories> qw = new LambdaQueryWrapper<>();
|
|
472
|
|
- qw.in(SysAccessories::getFileid, orderBase.getFile());
|
|
|
475
|
+ List<Integer> intlist=Arrays.asList(orderBase.getFile().split(",")).stream().map(x->Integer.parseInt(x)).collect(Collectors.toList());
|
|
|
476
|
+
|
|
|
477
|
+
|
|
|
478
|
+ qw.in(SysAccessories::getFileid, intlist);
|
|
473
|
479
|
List<SysAccessories> accessoriesList = sysaccessoriesService.getList(qw);
|
|
474
|
480
|
if (accessoriesList != null && accessoriesList.stream().count() > 0) {
|
|
475
|
481
|
HashMap<String, String> fileInfo = new HashMap<String, String>();
|
|
|
@@ -683,7 +689,7 @@ public class WorkOrderBaseController extends BaseController {
|
|
683
|
689
|
if (result) {
|
|
684
|
690
|
|
|
685
|
691
|
if (StringHelper.isNotEmpty(reason)) {
|
|
686
|
|
- reason = ",原因:" + reason;
|
|
|
692
|
+ reason = ",原因:" + reason;
|
|
687
|
693
|
}
|
|
688
|
694
|
boolean logresult = addlog("退回了工单" + reason, "处理人退回", CurrentUser().getUserName(), orderBase.getWorkordercode(), CurrentUser().getNickName(), "");
|
|
689
|
695
|
return Success("退回成功");
|
|
|
@@ -708,7 +714,7 @@ public class WorkOrderBaseController extends BaseController {
|
|
708
|
714
|
boolean result = workorderbaseService.updateBatch(qw);
|
|
709
|
715
|
if (result) {
|
|
710
|
716
|
if (StringHelper.isNotEmpty(reason)) {
|
|
711
|
|
- reason = ",原因:" + reason;
|
|
|
717
|
+ reason = ",原因:" + reason;
|
|
712
|
718
|
}
|
|
713
|
719
|
boolean logresult = addlog("退回了工单" + reason, "客服退回到已办待审核", CurrentUser().getUserName(), orderBase.getWorkordercode(), CurrentUser().getNickName(), "");
|
|
714
|
720
|
return Success("退回成功");
|