Commit ab307106 authored by 耿迪迪's avatar 耿迪迪

设备管理接口修改 gengdidi

parent 9e0b923c
......@@ -81,7 +81,11 @@ public class TDeviceInfoController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody TDeviceInfo tDeviceInfo)
{
return toAjax(tDeviceInfoService.insertTDeviceInfo(tDeviceInfo));
int result = tDeviceInfoService.insertTDeviceInfo(tDeviceInfo);
if(result<=0){
new Exception("设备信息插入失败");
}
return AjaxResult.success(tDeviceInfo.getDeviceId());
}
/**
......
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