Commit e5cf3d87 authored by hanbing's avatar hanbing

方案管理-灯组配置,给前端返回错误信息

parent 0303b83b
......@@ -39,7 +39,12 @@ public class CrossConfigController {
@ApiResponse(code = 200, message = "OK", response = JsonViewObject.class),
})
public JsonViewObject saveLaneInfo(@RequestBody SaveLaneInfoDTO saveLaneInfoDTO) {
crossConfigService.saveLaneInfo(saveLaneInfoDTO);
try {
crossConfigService.saveLaneInfo(saveLaneInfoDTO);
} catch (Exception e) {
JsonViewObject jsonViewObject = JsonViewObject.newInstance();
return jsonViewObject.fail(e.getMessage());
}
JsonViewObject jsonViewObject = JsonViewObject.newInstance();
return jsonViewObject.success();
......
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