‘linchangsheng’ преди 2 месеца
родител
ревизия
e6cf2e5b92
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      mall-server-api/src/main/java/com/gree/mall/manager/logic/common/WechatLogic.java

+ 4 - 3
mall-server-api/src/main/java/com/gree/mall/manager/logic/common/WechatLogic.java

@@ -1490,9 +1490,9 @@ public class WechatLogic {
             try {
                 ProfitSharingQueryResult profitSharingQueryResult = profitSharingService.profitSharingQuery(profitSharingQueryRequest);
                 log.info("【开始分账】request:{}", JSONObject.toJSONString(profitSharingQueryResult));
-
+                settlementOrder.setIsQuery(true);
                 for (ProfitSharingQueryResult.Receiver receiver : profitSharingQueryResult.getReceivers()) {
-                    settlementOrder.setIsQuery(true);
+
                     if (receiver.getResult().equals("CLOSED")) {
                         settlementOrder.setStatus("YC");
                         settlementOrder.setIsQuery(true);
@@ -1513,8 +1513,9 @@ public class WechatLogic {
                         if (receiver.getFailReason().equals("INVALID_REQUEST"))
                             settlementOrder.setQueryRemark("描述参数设置失败");
                     }
-                    settlementOrder.updateById();
+
                 }
+                settlementOrder.updateById();
             }catch (Exception e){
                 log.info("查询分账异常:"+e);
             }