diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/controller/WorkOrderController.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/controller/WorkOrderController.java index e5db871e..b1925dce 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/controller/WorkOrderController.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/controller/WorkOrderController.java @@ -69,7 +69,7 @@ public class WorkOrderController extends BaseController { @Log(title = "工单-删除工单", businessType = BusinessType.DELETE) - @DeleteMapping("/detail") + @DeleteMapping("/{orderId}") public R deleteOrder(@PathVariable("orderId")Long orderId) throws Exception { return R.ok(workOrderService.deleteOrder(orderId)); } diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java index af53bf09..16b79655 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/domain/XhpcWorkOrderDomain.java @@ -43,7 +43,7 @@ public class XhpcWorkOrderDomain implements Serializable { private String deviceType; /** - * 编码 + * 编码,订单号码 */ private String serialNumber; @@ -92,8 +92,15 @@ public class XhpcWorkOrderDomain implements Serializable { */ private String updateBy; + /** + * 备注 + */ private String remark; + // + + private String startTime; + private int source; private String stationName; diff --git a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/service/impl/WorkOrderServiceImpl.java b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/service/impl/WorkOrderServiceImpl.java index 0358d0ae..656f171b 100644 --- a/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/service/impl/WorkOrderServiceImpl.java +++ b/xhpc-modules/xhpc-workorder/src/main/java/com/xhpc/workorder/service/impl/WorkOrderServiceImpl.java @@ -23,9 +23,6 @@ public class WorkOrderServiceImpl implements WorkOrderService { @Resource XhpcWorkOrderMapper orderMapper; - @Resource - XhpcWorkUserMapper userMapper; - @Resource XhpcStationDeviceMapper deviceMapper; @@ -106,6 +103,7 @@ public class WorkOrderServiceImpl implements WorkOrderService { orderDomain.setReason(domain.getReason()); orderDomain.setDisposalMethod(domain.getDisposalMethod()); orderDomain.setStatus(Short.valueOf("2")); + orderDomain.setRemark(domain.getRemark()); orderMapper.updateByPrimaryKeySelective(orderDomain); for(XhpcWorkOrderImageDomain imageDomain: domain.getReplyImgList()){ @@ -139,13 +137,9 @@ public class WorkOrderServiceImpl implements WorkOrderService { orderMapper.insertSelective(domain); - XhpcWorkOrderDomain resDomain = orderMapper.selectByTypeAndTitle(domain.getType().intValue(), - domain.getTitle()); - - // 上传文件 for(XhpcWorkOrderImageDomain imageDomain : domain.getQuestionImgList()){ - imageDomain.setOrderId(resDomain.getWorkOrderId()); + imageDomain.setOrderId(domain.getWorkOrderId()); imageDomain.setType(Short.valueOf("1")); imageDomain.setDelFlag(Short.valueOf("0")); imageMapper.insertSelective(imageDomain); @@ -156,7 +150,7 @@ public class WorkOrderServiceImpl implements WorkOrderService { String phoneList = ""; for (XhpcWorkUserDomain userDomain: domain.getUserList()){ XhpcWorkOrderUserDomain orderUserDomain = new XhpcWorkOrderUserDomain(); - orderUserDomain.setOrderId(resDomain.getWorkOrderId()); + orderUserDomain.setOrderId(domain.getWorkOrderId()); orderUserDomain.setUserId(userDomain.getWorkUserId()); orderUserDomainList.add(orderUserDomain); phoneList = userDomain.getPhone() + "," + phoneList; @@ -167,9 +161,9 @@ public class WorkOrderServiceImpl implements WorkOrderService { // todo 发送多人短信 HashMap paramMap = new HashMap<>(); - paramMap.put("orderNo", resDomain.getWorkOrderId().toString()); + paramMap.put("orderNo", domain.getWorkOrderId().toString()); paramMap.put("phone", phoneList); - paramMap.put("content", "【小华充电】您好,您有新的工单(工单号:"+ resDomain.getWorkOrderId() +")待处理,请及时登陆后台查看并处理,谢谢。"); + paramMap.put("content", "【小华充电】您好,您有新的工单(工单号:"+ domain.getWorkOrderId() +")待处理,请及时登陆后台查看并处理,谢谢。"); R r = smsService.sendNotice(paramMap); XhpcWorkOrderPushMessageDomain messageDomain = new XhpcWorkOrderPushMessageDomain(); diff --git a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml index 173c8a57..d8492b8e 100644 --- a/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml +++ b/xhpc-modules/xhpc-workorder/src/main/resources/mapper/XhpcWorkOrderMapper.xml @@ -80,10 +80,11 @@