|
|
@@ -51,6 +51,9 @@ public class PtServiceController extends BaseController {
|
|
|
@ApiOperation("添加数据")
|
|
|
@PostMapping(value = "/save")
|
|
|
public AjaxResult save(@RequestBody PtService ptService) {
|
|
|
+ if(ptService.getViewNum() == null){ //viewNum不能为空
|
|
|
+ ptService.setViewNum(0);
|
|
|
+ }
|
|
|
return AjaxResult.success(ptServiceService.save(ptService));
|
|
|
}
|
|
|
|