Commit 8ae09683 authored by fhj's avatar fhj

Merge remote-tracking branch 'origin/v2' into v2

parents e2e3b049 2ee8dcb4
...@@ -1042,6 +1042,10 @@ public class PurchaseOrderServiceImpl extends BasePurchaseOrder implements Purch ...@@ -1042,6 +1042,10 @@ public class PurchaseOrderServiceImpl extends BasePurchaseOrder implements Purch
if (request.getProductIds().size() == 1) { if (request.getProductIds().size() == 1) {
return Wrapper.success(); return Wrapper.success();
} }
//暂时写成魔法值,因为不知道枚举对应哪里
if(request.getOrderModel() == 32 || request.getOrderModel() == 33 || request.getOrderModel() == 34){
return Wrapper.success();
}
Integer workFlow = tradingRulesByProductId(request.getProductIds().get(0), request.getMemberId(), request.getMemberRoleId(), request.getShopId()); Integer workFlow = tradingRulesByProductId(request.getProductIds().get(0), request.getMemberId(), request.getMemberRoleId(), request.getShopId());
for (Long productId : request.getProductIds()) { for (Long productId : request.getProductIds()) {
if (!workFlow.equals(tradingRulesByProductId(productId, request.getMemberId(), request.getMemberRoleId(), request.getShopId()))) { if (!workFlow.equals(tradingRulesByProductId(productId, request.getMemberId(), request.getMemberRoleId(), request.getShopId()))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment