商品 库存警戒线
快捷修改 商品退款退回库存
This commit is contained in:
@@ -400,6 +400,13 @@ public class StockServiceImpl implements StockService {
|
||||
tbProductRepository.upLowPrice(product.getId(),new BigDecimal(updateValueVO.getValue()));
|
||||
tbProductSkuRepository.upSalePrice(product.getId(),new BigDecimal(updateValueVO.getValue()));
|
||||
break;
|
||||
case "refundStock"://商品 暂停销售
|
||||
if (!"0".equals(updateValueVO.getValue()) && !"1".equals(updateValueVO.getValue())) {
|
||||
throw new BadRequestException("无效值");
|
||||
}
|
||||
sqlQuery.append(" set is_refund_stock = ").append(updateValueVO.getValue());
|
||||
description.append(" 修改为" + ("0".equals(updateValueVO.getValue()) ? "退款不退回库存":"退款退回库存"));
|
||||
break;
|
||||
// case "stock"://库存开关
|
||||
// if (!"0".equals(updateValueVO.getValue()) && !"1".equals(updateValueVO.getValue())) {
|
||||
// throw new BadRequestException("无效值");
|
||||
|
||||
Reference in New Issue
Block a user