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

管道接口调整 gengdidi

parent fc60b3f4
......@@ -78,7 +78,11 @@ public class TPipeController extends BaseController
@PostMapping
public AjaxResult add(@RequestBody TPipe tPipe)
{
return toAjax(tPipeService.insertTPipe(tPipe));
int result = tPipeService.insertTPipe(tPipe);
if(result<=0){
new Exception("管道信息插入失败");
}
return AjaxResult.success(tPipe.getPipeId());
}
/**
......
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