商品报损
This commit is contained in:
@@ -83,7 +83,7 @@ public class ConsStockFlowController {
|
||||
* 耗材报损
|
||||
*/
|
||||
@PostMapping("reportDamage")
|
||||
@OperationLog("库存盘点")
|
||||
@OperationLog("耗材报损")
|
||||
//@SaAdminCheckPermission("consStockFlow:reportDamage")
|
||||
public CzgResult<Void> reportDamage(@RequestBody ConsReportDamageParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
|
||||
@@ -11,6 +11,7 @@ import com.czg.product.dto.ProductDTO;
|
||||
import com.czg.product.param.ProdRefundToStockParam;
|
||||
import com.czg.product.param.ProductIsSaleParam;
|
||||
import com.czg.product.param.ProductIsSoldOutParam;
|
||||
import com.czg.product.param.ProductReportDamageParam;
|
||||
import com.czg.product.service.ProdConsRelationService;
|
||||
import com.czg.product.service.ProductService;
|
||||
import com.czg.resp.CzgResult;
|
||||
@@ -180,4 +181,16 @@ public class ProductController {
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
/**
|
||||
* 商品-报损
|
||||
*/
|
||||
@PostMapping("reportDamage")
|
||||
@OperationLog("商品-报损")
|
||||
//@SaAdminCheckPermission("product:reportDamage")
|
||||
public CzgResult<Void> reportDamage(@RequestBody ProductReportDamageParam param) {
|
||||
ValidatorUtil.validateEntity(param, DefaultGroup.class);
|
||||
productService.reportDamage(param);
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user