|
|
@@ -354,12 +354,13 @@ public class WeChatPayService {
|
|
|
MDAppProfitSharingInfo.setCumulative(addProfitSharingInfos(MDAppProfitSharingInfo.getOrgCode()));
|
|
|
appProfitSharingInfoMapper.insert(MDAppProfitSharingInfo);
|
|
|
//商户所得金额
|
|
|
-
|
|
|
+ SysDepart pdept =
|
|
|
+ sysDepartMapper.selectOne(Wrappers.lambdaQuery(SysDepart.class).eq(SysDepart::getId, depart.getParentId()).last("limit 1"));
|
|
|
AppProfitSharingInfo SHAppProfitSharingInfo = new AppProfitSharingInfo();
|
|
|
SHAppProfitSharingInfo.setOrderId(appOrder.getId());
|
|
|
- SHAppProfitSharingInfo.setOrgCode(orgCode);
|
|
|
- SHAppProfitSharingInfo.setMchId(depart.getMchId());
|
|
|
- SHAppProfitSharingInfo.setMchName(depart.getMchName());
|
|
|
+ SHAppProfitSharingInfo.setOrgCode(pdept.getOrgCode());
|
|
|
+ SHAppProfitSharingInfo.setMchId(pdept.getMchId());
|
|
|
+ SHAppProfitSharingInfo.setMchName(pdept.getMchName());
|
|
|
SHAppProfitSharingInfo.setType(2);
|
|
|
SHAppProfitSharingInfo.setRatio(SH);
|
|
|
SHAppProfitSharingInfo.setPreAmount(RatiosUtil.amount_fee(allocate[1]));
|