|
@@ -73,7 +73,12 @@ public class MeasThermalImagerTestDataController extends BaseController {
|
|
|
@Log(title = "热像仪测试数据", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
public AjaxResult add(@RequestBody MeasThermalImagerTestData measThermalImagerTestData) {
|
|
|
- return toAjax(measThermalImagerTestDataService.insertMeasThermalImagerTestData(measThermalImagerTestData));
|
|
|
+ MeasThermalImagerTestData returnValue = measThermalImagerTestDataService.insertMeasThermalImagerTestData(measThermalImagerTestData);
|
|
|
+ if (returnValue == null) {
|
|
|
+ return error();
|
|
|
+ } else {
|
|
|
+ return success(returnValue);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|