|
@@ -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);
|
|
|
}
|