‘linchangsheng’ 2 weeks ago
parent
commit
f0bc82fc92

+ 2 - 2
mall-miniapp-service/src/main/java/com/gree/mall/miniapp/logic/policy/WorkerLogic.java

@@ -295,8 +295,8 @@ public class WorkerLogic {
 
         if (policy == null){
             List<PolicyRange> policyRanges = policyRangeService.lambdaQuery().eq(PolicyRange::getPolicyId, policy.getId()).list();
-        policyOrderDetail.setPolicy(policy);
-        policyOrderDetail.setPolicyRanges(policyRanges);
+            policyOrderDetail.setPolicy(policy);
+            policyOrderDetail.setPolicyRanges(policyRanges);
         }
 
         List<AgreementPolicy> agreementPolicies = agreementPolicyService.lambdaQuery().eq(AgreementPolicy::getPolicyId, policy.getId()).list();