余额支付

This commit is contained in:
2025-11-25 09:50:30 +08:00
parent 890b46c95f
commit cb8b5141c5
2 changed files with 13 additions and 7 deletions

View File

@@ -30,13 +30,14 @@ public class CountPayTypeVo {
private static final Map<String, String> PAY_TYPE_MAPPING = new LinkedHashMap<>(); private static final Map<String, String> PAY_TYPE_MAPPING = new LinkedHashMap<>();
static { static {
PAY_TYPE_MAPPING.put("memberPay", "会员支付");
PAY_TYPE_MAPPING.put("cashPay", "现金支付"); PAY_TYPE_MAPPING.put("cashPay", "现金支付");
PAY_TYPE_MAPPING.put("wechatPay", "微信支付"); PAY_TYPE_MAPPING.put("wechatPay", "微信支付");
PAY_TYPE_MAPPING.put("alipayPay", "支付宝支付"); PAY_TYPE_MAPPING.put("alipayPay", "支付宝支付");
PAY_TYPE_MAPPING.put("mainScanPay", "扫支付"); PAY_TYPE_MAPPING.put("mainScanPay", "扫支付");
PAY_TYPE_MAPPING.put("backScanPay", "扫支付"); PAY_TYPE_MAPPING.put("backScanPay", "扫支付");
PAY_TYPE_MAPPING.put("creditPay", "信用支付");
PAY_TYPE_MAPPING.put("memberPay", "余额支付");
PAY_TYPE_MAPPING.put("creditPay", "挂账支付");
} }

View File

@@ -112,9 +112,14 @@ public class SysParamsServiceImpl extends ServiceImpl<SysParamsMapper, SysParams
@Override @Override
public String getSysParamValue(String code) { public String getSysParamValue(String code) {
SysParams sysParam = getSysParam(code); SysParams sysParam = getSysParam(code);
if (sysParam == null) {
log.error("参数不存在,参数编码:{}", code); log.error("参数不存在,参数编码:{}", code);
AssertUtil.isNull(sysParam, "参数不存在"); return "";
AssertUtil.isBlank(sysParam.getParamValue(), "参数值为空"); }
if (sysParam.getParamValue() == null) {
log.error("参数值为空,参数编码:{}", code);
return "";
}
return sysParam.getParamValue(); return sysParam.getParamValue();
} }