商品模块代码提交

This commit is contained in:
Tankaikai
2025-02-21 09:32:08 +08:00
parent 787d67e7b1
commit 505b6a3390
3 changed files with 27 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import com.czg.log.annotation.OperationLog;
import com.czg.product.dto.ProdConsBindDTO;
import com.czg.product.dto.ProdSkuDTO;
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.service.ProdConsRelationService;
@@ -123,4 +124,15 @@ public class ProductController {
return CzgResult.success();
}
/**
* 商品-退款退至库存
*/
@PostMapping("refund-to-stock")
@OperationLog("商品-退款退至库存")
//@SaAdminCheckPermission("product:update")
public CzgResult<Void> refundToStock(@RequestBody @Validated({DefaultGroup.class}) ProdRefundToStockParam param) {
productService.refundToStock(param);
return CzgResult.success();
}
}