|
|
@@ -31,10 +31,8 @@ public class PtServiceParamController extends BaseController {
|
|
|
|
|
|
@ApiOperation("添加数据")
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
- public AjaxResult insert(PtServiceParam ptServiceParam) {
|
|
|
- System.out.println(ptServiceParam);
|
|
|
- int ret = ptServiceParamMapper.insert(ptServiceParam);
|
|
|
- return AjaxResult.success();
|
|
|
+ public AjaxResult insert(@RequestBody PtServiceParam ptServiceParam) {
|
|
|
+ return AjaxResult.success(ptServiceParamMapper.insert(ptServiceParam));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("添加数据")
|
|
|
@@ -93,11 +91,9 @@ public class PtServiceParamController extends BaseController {
|
|
|
|
|
|
@ApiOperation("根据主键更新数据")
|
|
|
@RequestMapping(value = "/update", method = RequestMethod.POST)
|
|
|
- public AjaxResult update(PtServiceParam ptServiceParam) {
|
|
|
-
|
|
|
- int ret = ptServiceParamMapper.updateByPrimaryKeySelective(ptServiceParam);
|
|
|
+ public AjaxResult update(@RequestBody PtServiceParam ptServiceParam) {
|
|
|
|
|
|
- return AjaxResult.success();
|
|
|
+ return AjaxResult.success(ptServiceParamMapper.updateByPrimaryKeySelective(ptServiceParam));
|
|
|
}
|
|
|
|
|
|
@ApiOperation("根据主键删除数据")
|