Commit 7f4261f8 authored by hanbing's avatar hanbing

[update] 城市大脑-干线评价-解决曲线图线程冲突

parent bcdf2de9
......@@ -47,8 +47,14 @@ public class MainlineEvaluateController {
@ApiResponse(code = 200, message = "OK", response = MainlineEvaluateBottomCurveVO.class),
})
public JsonViewObject bottomCurve(@RequestBody BottomCurveBO bo) throws Exception {
List<MainlineEvaluateBottomCurveVO> res = mainlineEvaluateService.bottomCurve(bo);
return JsonViewObject.newInstance().success(res);
synchronized (this) {
try {
List<MainlineEvaluateBottomCurveVO> res = mainlineEvaluateService.bottomCurve(bo);
return JsonViewObject.newInstance().success(res);
} catch (Exception e) {
return JsonViewObject.newInstance().fail(e.getMessage());
}
}
}
@AspectLog(description = "干线列表", operationType = BaseEnum.OperationTypeEnum.QUERY)
......
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