个人桩启动充电

This commit is contained in:
Guoqs
2024-06-21 11:16:53 +08:00
parent 58710aedf3
commit 1bd051e73f
8 changed files with 152 additions and 207 deletions

View File

@@ -5,6 +5,7 @@ import com.jsowell.common.constant.Constants;
import com.jsowell.common.core.domain.entity.SysDept;
import com.jsowell.common.core.domain.entity.SysUser;
import com.jsowell.common.core.domain.vo.AuthorizedDeptVO;
import com.jsowell.common.enums.adapay.AdapayPayChannelEnum;
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
import com.jsowell.common.exception.BusinessException;
import com.jsowell.common.util.DateUtils;
@@ -500,6 +501,19 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
// return null;
// }
@Override
public String getDelayModeByAppIdAndRequestSource(String appId, String requestSource) {
String delayMode = "";
if (StringUtils.equals(requestSource, AdapayPayChannelEnum.WX_LITE.getValue())) {
delayMode = getDelayModeByWechatAppId(appId);
} else if (StringUtils.equals(requestSource, AdapayPayChannelEnum.ALIPAY_LITE.getValue())) {
delayMode = getDelayModeByAlipayAppId(appId);
} else {
throw new BusinessException("", "未知来源");
}
return delayMode;
}
/**
* 通过wechatAppId查询一级运营商的延时支付模式配置
* @param wechatAppId 微信小程序id