|
@@ -30,7 +30,7 @@ public class ProductTypePriceController extends BaseController {
|
|
|
@ApiResponse(code = 0, message = "操作成功")
|
|
|
@PreAuthorize(hasPermi = "system:productTypePrice:save")
|
|
|
@PostMapping("/save")
|
|
|
- private ResponseBase save(@RequestBody @Valid ProductTypePriceWithBLOBs productTypePriceWithBLOBs){
|
|
|
+ public ResponseBase save(@RequestBody @Valid ProductTypePriceWithBLOBs productTypePriceWithBLOBs){
|
|
|
int i = productTypePriceService.saveSelective(productTypePriceWithBLOBs);
|
|
|
if (i < 1){
|
|
|
return responseResultFailure();
|
|
@@ -45,7 +45,7 @@ public class ProductTypePriceController extends BaseController {
|
|
|
@PreAuthorize(hasPermi = "system:productTypePrice:list")
|
|
|
@ApiResponse(code = 0, message = "操作成功")
|
|
|
@PostMapping("/list")
|
|
|
- private ResponseBase list(@RequestBody ProductTypePriceForm form){
|
|
|
+ public ResponseBase list(@RequestBody ProductTypePriceForm form){
|
|
|
PageInfo pageInfo = productTypePriceService.selectList(form);
|
|
|
return responseSuccess(pageInfo);
|
|
|
}
|
|
@@ -57,7 +57,7 @@ public class ProductTypePriceController extends BaseController {
|
|
|
@PreAuthorize(hasPermi = "system:productTypePrice:delete")
|
|
|
@ApiResponse(code = 0, message = "操作成功")
|
|
|
@GetMapping("/delete")
|
|
|
- private ResponseBase delete(@RequestParam("guid") String guid){
|
|
|
+ public ResponseBase delete(@RequestParam("guid") String guid){
|
|
|
int i = productTypePriceService.delByPrimaryKey(guid);
|
|
|
if (i < 1){
|
|
|
return responseResultFailure();
|
|
@@ -72,7 +72,7 @@ public class ProductTypePriceController extends BaseController {
|
|
|
@PreAuthorize(hasPermi = "system:productTypePrice:check")
|
|
|
@ApiResponse(code = 0, message = "操作成功")
|
|
|
@PostMapping("/check")
|
|
|
- private ResponseBase check(@RequestBody ProductTypePriceWithBLOBs productTypePriceWithBLOBs){
|
|
|
+ public ResponseBase check(@RequestBody ProductTypePriceWithBLOBs productTypePriceWithBLOBs){
|
|
|
if (productTypePriceWithBLOBs.getCheckState() < 1){
|
|
|
throw new GlobalException(ResultEnum.FAILURE.getCode(),"审核状态错误!");
|
|
|
}
|