|
@@ -52,12 +52,9 @@ public class DiagnosetrainhistoryController {
|
|
|
|
|
|
@PostMapping("/removeHistory")
|
|
@PostMapping("/removeHistory")
|
|
public JSONObject removeDiagnosetrainhistory(String id) {
|
|
public JSONObject removeDiagnosetrainhistory(String id) {
|
|
- try {
|
|
|
|
- diagnosetrainhistoryService.deleteById(id);
|
|
|
|
- return JsonResult.success(ResultCode.SUCCESS);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- return JsonResult.error(ResultCode.ERROR_DATA);
|
|
|
|
- }
|
|
|
|
|
|
+ diagnosetrainhistoryService.deleteById(id);
|
|
|
|
+ return JsonResult.success(ResultCode.SUCCESS);
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|