|
|
@ -123,6 +123,8 @@ public class DeviceInspectOrderServiceImpl implements DeviceInspectOrderService
|
|
|
|
//查询报修单信息
|
|
|
|
//查询报修单信息
|
|
|
|
DeviceRepairOrderEntity deviceRepairOrderEntity = deviceRepairOrderDao.selectByOrderId(repairOrderId);
|
|
|
|
DeviceRepairOrderEntity deviceRepairOrderEntity = deviceRepairOrderDao.selectByOrderId(repairOrderId);
|
|
|
|
DeviceInspectOrderEntity orderEntity = new DeviceInspectOrderEntity();
|
|
|
|
DeviceInspectOrderEntity orderEntity = new DeviceInspectOrderEntity();
|
|
|
|
|
|
|
|
String orderId = gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.DEVICE_INSPECT_ORDER, "yyyyMMdd"));
|
|
|
|
|
|
|
|
orderEntity.setOrderId(orderId);
|
|
|
|
orderEntity.setCode(deviceRepairOrderEntity.getCode());
|
|
|
|
orderEntity.setCode(deviceRepairOrderEntity.getCode());
|
|
|
|
orderEntity.setDeptCode(deviceRepairOrderEntity.getDeptCode());
|
|
|
|
orderEntity.setDeptCode(deviceRepairOrderEntity.getDeptCode());
|
|
|
|
orderEntity.setInvCode(deviceRepairOrderEntity.getInvCode());
|
|
|
|
orderEntity.setInvCode(deviceRepairOrderEntity.getInvCode());
|
|
|
@ -142,11 +144,13 @@ public class DeviceInspectOrderServiceImpl implements DeviceInspectOrderService
|
|
|
|
//查询报修单信息
|
|
|
|
//查询报修单信息
|
|
|
|
DeviceInspectPlanEntity deviceInspectPlanEntity = deviceInspectPlanDao.selectByOrderId(planOrderId);
|
|
|
|
DeviceInspectPlanEntity deviceInspectPlanEntity = deviceInspectPlanDao.selectByOrderId(planOrderId);
|
|
|
|
DeviceInspectOrderEntity orderEntity = new DeviceInspectOrderEntity();
|
|
|
|
DeviceInspectOrderEntity orderEntity = new DeviceInspectOrderEntity();
|
|
|
|
|
|
|
|
String orderId = gennerOrderUtils.createStOrderNo(new OrderNoTypeBean(Constant.DEVICE_INSPECT_ORDER, "yyyyMMdd"));
|
|
|
|
|
|
|
|
orderEntity.setOrderId(orderId);
|
|
|
|
orderEntity.setCode(deviceInspectPlanEntity.getCode());
|
|
|
|
orderEntity.setCode(deviceInspectPlanEntity.getCode());
|
|
|
|
orderEntity.setDeptCode(deviceInspectPlanEntity.getDeptCode());
|
|
|
|
orderEntity.setDeptCode(deviceInspectPlanEntity.getDeptCode());
|
|
|
|
orderEntity.setInvCode(deviceInspectPlanEntity.getInvCode());
|
|
|
|
orderEntity.setInvCode(deviceInspectPlanEntity.getInvCode());
|
|
|
|
orderEntity.setStatus(0); //状态:新增
|
|
|
|
orderEntity.setStatus(0); //状态:新增
|
|
|
|
orderEntity.setType(1); //维保类型:计划
|
|
|
|
orderEntity.setType(2); //维保类型:计划
|
|
|
|
orderEntity.setDeviceStatus(1); //设备状态:正常
|
|
|
|
orderEntity.setDeviceStatus(1); //设备状态:正常
|
|
|
|
orderEntity.setLastOrderId(planOrderId);
|
|
|
|
orderEntity.setLastOrderId(planOrderId);
|
|
|
|
orderEntity.setCreateTime(new Date());
|
|
|
|
orderEntity.setCreateTime(new Date());
|
|
|
|