|
|
|
@ -257,12 +257,13 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper
|
|
|
|
|
public R listenAndUpdateDefect(ProcessWorkFlowResponse processWorkFlowResponse) { |
|
|
|
|
|
|
|
|
|
OperPhenomenonEntity operPhenomenonEntity; |
|
|
|
|
log.info("消缺消息开始转换"); |
|
|
|
|
try { |
|
|
|
|
Map<String, Object> variables = (Map<String, Object>) processWorkFlowResponse.getVariables(); |
|
|
|
|
//现象缺陷全表更新
|
|
|
|
|
operPhenomenonEntity= JSONObject.parseObject(JSONObject.toJSONString(variables), new TypeReference<OperPhenomenonEntity>(){}); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.info("消息转换失败"); |
|
|
|
|
log.info("消息转换失败:"+e.getMessage()); |
|
|
|
|
return R.fail("消息转换失败"); |
|
|
|
|
} |
|
|
|
|
//设置当前环节+当前环节处理人
|
|
|
|
@ -314,6 +315,7 @@ public class DefectCheckServiceImpl extends BaseServiceImpl<OperPhenomenonMapper
|
|
|
|
|
operAppearanceService.updateById(appearanceEntity); |
|
|
|
|
//推送消息中心相关消息
|
|
|
|
|
sendMessage(processWorkFlowResponse, operPhenomenonEntity); |
|
|
|
|
log.info("消缺消息转换结束"); |
|
|
|
|
return R.success("消息保存成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|