|
@ -377,6 +377,16 @@ public class GoodsRuleServiceImpl extends ServiceImpl<GoodsRuleMapper,GoodsRule> |
|
|
@Override |
|
|
@Override |
|
|
public boolean checkSkuCode(List<String> skuCodes, String supplierId, boolean throwEx) { |
|
|
public boolean checkSkuCode(List<String> skuCodes, String supplierId, boolean throwEx) { |
|
|
List<GoodsRuleItem> ruleItems = this.listBySupplierId(supplierId); |
|
|
List<GoodsRuleItem> ruleItems = this.listBySupplierId(supplierId); |
|
|
|
|
|
return baseCheckSkuCode(skuCodes, throwEx, ruleItems); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public boolean checkSkuCodeByUserId(List<String> skuCodes, String userId, boolean throwEx) { |
|
|
|
|
|
List<GoodsRuleItem> ruleItems = this.listByUserId(userId); |
|
|
|
|
|
return baseCheckSkuCode(skuCodes, throwEx, ruleItems); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private boolean baseCheckSkuCode(List<String> skuCodes, boolean throwEx, List<GoodsRuleItem> ruleItems) { |
|
|
if(CollUtil.isEmpty(skuCodes)){ |
|
|
if(CollUtil.isEmpty(skuCodes)){ |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|