|
|
@@ -243,9 +243,9 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
// if(!PatternUtil.matchChineseAndEnglish(goods.getTag())) {
|
|
|
// throw new IllegalOperatorException("自定义标签的信息只能包含中文和英文");
|
|
|
// }
|
|
|
- if (goods.getPackaging() == null) {
|
|
|
+ /*if (goods.getPackaging() == null) {
|
|
|
throw new IllegalOperatorException("包装信息为空");
|
|
|
- }
|
|
|
+ }*/
|
|
|
// if (goods.getPackaging().length() > 10) {
|
|
|
// throw new IllegalOperatorException("包装信息操作约定的10个字符");
|
|
|
// }
|
|
|
@@ -1618,7 +1618,8 @@ public class GoodsServiceImpl implements GoodsService {
|
|
|
reserve = NumberUtil.add(reserve, oldGoods.getReserve());
|
|
|
reserve = NumberUtil.sub(reserve, nowGoods.getReserve());
|
|
|
if (NumberUtil.compare(reserve, DoubleConstant.zero) < 0) {
|
|
|
- throw new IllegalOperatorException("总在售库存量超过空闲库存量");
|
|
|
+ // 下架这部分的库存
|
|
|
+ //throw new IllegalOperatorException("总在售库存量超过空闲库存量");
|
|
|
}
|
|
|
}
|
|
|
}
|