Browse Source

增加消缺消费日志打印

zhongwei
tyty 2 years ago
parent
commit
c811a07ff1
  1. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/defect/service/impl/DefectCheckServiceImpl.java

@ -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("消息保存成功");
}

Loading…
Cancel
Save