Parcourir la source

Merge branch 'release_real_202103' of https://git.malls.iformall.com/server/formallProject into release_real_202103

release_toaliyun_real
xhxu il y a 5 ans
Parent
révision
955caf9191
3 fichiers modifiés avec 22 ajouts et 1 suppressions
  1. +2
    -0
      mallinkService/src/main/java/com/iformall/service/WxAppinfoService.java
  2. +19
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxAppinfoServiceImpl.java
  3. +1
    -1
      mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java

+ 2
- 0
mallinkService/src/main/java/com/iformall/service/WxAppinfoService.java Voir le fichier

@@ -63,6 +63,8 @@ public interface WxAppinfoService {
*/ */
WxAppinfo getCAppInfo(TenantEntity tenantEntity,EnumPayWay payWay); WxAppinfo getCAppInfo(TenantEntity tenantEntity,EnumPayWay payWay);
WxAppinfo getBAppInfo(TenantEntity tenantEntity,EnumPayWay payWay);
/** /**
* 保存或更新实体 * 保存或更新实体
* *


+ 19
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxAppinfoServiceImpl.java Voir le fichier

@@ -54,6 +54,25 @@ public class WxAppinfoServiceImpl implements WxAppinfoService {
} }
return appInfo; return appInfo;
} }
@Override
public WxAppinfo getBAppInfo(TenantEntity tenantEntity,EnumPayWay payWay) {
WxAppinfo appInfo = null;
WxAppinfo appinfoQ = new WxAppinfo();
if (null == payWay.getPlat()) {
appinfoQ.setPlat(EnumPayWay.PAY_WAY_WECHAT.getPlat().getCode());
}else {
appinfoQ.setPlat(payWay.getPlat().getCode());
}
appinfoQ.updateTenantInfo(tenantEntity);
appinfoQ.setType(EnumAppType.B.getCode());
List<WxAppinfo> appList = wxAppinfoMapper.selectList(new QueryWrapper(appinfoQ));
if (appList.size() > 0) {
appInfo = appList.get(0);
}
return appInfo;
}


@Override @Override
public WxAppinfo getByAppId(String appId) { public WxAppinfo getByAppId(String appId) {


+ 1
- 1
mallinkService/src/main/java/com/iformall/service/impl/WxCashOutServiceImpl.java Voir le fichier

@@ -234,7 +234,7 @@ public class WxCashOutServiceImpl implements WxCashOutService {
if (null == cashout ) { if (null == cashout ) {
return; return;
} }
WxAppinfo appInfo = wxAppinfoService.getCAppInfo(tenantEntity, payWay);
WxAppinfo appInfo = wxAppinfoService.getBAppInfo(tenantEntity, payWay);
if (null == appInfo) { if (null == appInfo) {
return; return;
} }


Chargement…
Annuler
Enregistrer