Commit b54cce4c by zhoulm

fix: 修正错误枚举值从SERVICE_ERROR到SERVER_ERROR

1 parent 37e89119
...@@ -282,7 +282,7 @@ public class GoodsListingProductBaseService { ...@@ -282,7 +282,7 @@ public class GoodsListingProductBaseService {
RpcAssert.assertNotNull(o.getUpgradeGoodsId(), DefaultErrorEnum.DATA_NULL, "升级商品ID is null"); RpcAssert.assertNotNull(o.getUpgradeGoodsId(), DefaultErrorEnum.DATA_NULL, "升级商品ID is null");
RpcAssert.assertNotNull(o.getSellPrice(), DefaultErrorEnum.DATA_NULL, "销售价格 is null"); RpcAssert.assertNotNull(o.getSellPrice(), DefaultErrorEnum.DATA_NULL, "销售价格 is null");
RpcAssert.assertNotNull(o.getMinSellPrice(), DefaultErrorEnum.DATA_NULL, "最低销售价格 is null"); RpcAssert.assertNotNull(o.getMinSellPrice(), DefaultErrorEnum.DATA_NULL, "最低销售价格 is null");
RpcAssert.assertIsTrue(o.getSellPrice().compareTo(o.getMinSellPrice()) >= 0, DefaultErrorEnum.SERVICE_ERROR,"最低售价不得大于售价"); RpcAssert.assertIsTrue(o.getSellPrice().compareTo(o.getMinSellPrice()) >= 0, DefaultErrorEnum.SERVER_ERROR,"最低售价不得大于售价");
RpcAssert.assertNotNull(o.getInventoryType(), DefaultErrorEnum.DATA_NULL, "库存模式 is null"); RpcAssert.assertNotNull(o.getInventoryType(), DefaultErrorEnum.DATA_NULL, "库存模式 is null");
if(isScene0) { if(isScene0) {
RpcAssert.assertNotNull(o.getThirdPartyCost(), DefaultErrorEnum.DATA_NULL, "第三方成本 is null"); RpcAssert.assertNotNull(o.getThirdPartyCost(), DefaultErrorEnum.DATA_NULL, "第三方成本 is null");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!