Commit 7b9a7512 authored by 王晓倩's avatar 王晓倩

反馈接口修改

parent 2bf05c90
......@@ -108,6 +108,15 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
tHiddenTroubleMapper.updateTHiddenTrouble(trouble);
if("0".equals(trouble.getDeviceType())){
TPipe pipe = tPipeMapper.selectTPipeById(trouble.getDeviceId());
pipe.setInspectionTime(DateUtils.getNowDate());
tPipeMapper.updateTPipe(pipe);
} else {
TDeviceInfo device = tDeviceInfoMapper.selectTDeviceInfoById(trouble.getDeviceId());
device.setInspectionTime(DateUtils.getNowDate());
tDeviceInfoMapper.updateTDeviceInfo(device);
}
} else if("3".equals(orderType)) {
TDeviceAlarm alarm = tDeviceAlarmMapper.selectTDeviceAlarmById(order.getResourceId());
alarm.setDealStatus(dealStatus);
......@@ -117,6 +126,16 @@ public class TOrderFeedbackServiceImpl implements ITOrderFeedbackService
tOrderFeedback.setDeviceType(alarm.getDeviceType());
tDeviceAlarmMapper.updateTDeviceAlarm(alarm);
if("0".equals(alarm.getDeviceType())){
TPipe pipe = tPipeMapper.selectTPipeById(alarm.getDeviceId());
pipe.setInspectionTime(DateUtils.getNowDate());
tPipeMapper.updateTPipe(pipe);
} else {
TDeviceInfo device = tDeviceInfoMapper.selectTDeviceInfoById(alarm.getDeviceId());
device.setInspectionTime(DateUtils.getNowDate());
tDeviceInfoMapper.updateTDeviceInfo(device);
}
}
// 如果工单状态是已接收,修改状态为已反馈
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment