|
@@ -286,6 +286,14 @@ public class IotMaintainServiceImpl implements IotMaintainService {
|
|
|
String msg = "【PMS】维修工单 - "+updateReqVO.getMaintain().getFailureName()+"已处理。"+"["+new Date()+"]";
|
|
|
// sendMessage(BeanUtils.toBean(updateReqVO.getMaintain(), IotMaintainDO.class), "maintain-report", msg);
|
|
|
}
|
|
|
+ if ("out".equals(updateReqVO.getMaintain().getType())){
|
|
|
+ try {
|
|
|
+ IotMaintainDO iotMaintain = BeanUtils.toBean(updateReqVO.getMaintain(), IotMaintainDO.class);
|
|
|
+ oaFlow.createOutRepairFlow(iotMaintain);
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new ServiceException(122, e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
//委外发起流程
|
|
|
// if ("out".equals(updateReqVO.getMaintain().getType())){
|
|
|
// submitForApproval(updateReqVO.getMaintain().getId());
|