mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-30 08:00:00 +08:00
update订单逻辑改造工厂模式
This commit is contained in:
@@ -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.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.DictUtils;
|
||||
@@ -395,16 +396,30 @@ public class PileMerchantInfoServiceImpl implements IPileMerchantInfoService {
|
||||
* @param wechatAppId 微信小程序id
|
||||
* @return
|
||||
*/
|
||||
// @Override
|
||||
// public String getDelayModeByWechatAppId(String wechatAppId) {
|
||||
// PileMerchantInfo merchant = getFirstLevelMerchantByAppId(wechatAppId);
|
||||
// if (merchant != null) {
|
||||
// String delayMode = merchant.getDelayMode();
|
||||
// if (StringUtils.equals(delayMode, Constants.ONE)) {
|
||||
// return Constants.ADAPAY_PAY_MODE_DELAY;
|
||||
// }
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
|
||||
/**
|
||||
* 通过wechatAppId查询一级运营商的延时支付模式配置
|
||||
* @param wechatAppId 微信小程序id
|
||||
* @return 延时分账模式(0-不延时;1-延时分账)
|
||||
*/
|
||||
@Override
|
||||
public String getDelayModeByWechatAppId(String wechatAppId) {
|
||||
PileMerchantInfo merchant = getFirstLevelMerchantByAppId(wechatAppId);
|
||||
if (merchant != null) {
|
||||
String delayMode = merchant.getDelayMode();
|
||||
if (StringUtils.equals(delayMode, Constants.ONE)) {
|
||||
return Constants.ADAPAY_PAY_MODE_DELAY;
|
||||
}
|
||||
if (merchant == null) {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_GET_FIRST_LEVEL_MERCHANT_BY_APP_ID);
|
||||
}
|
||||
return null;
|
||||
return merchant.getDelayMode();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user