余额支付
This commit is contained in:
@@ -30,13 +30,14 @@ public class CountPayTypeVo {
|
||||
private static final Map<String, String> PAY_TYPE_MAPPING = new LinkedHashMap<>();
|
||||
|
||||
static {
|
||||
PAY_TYPE_MAPPING.put("memberPay", "会员支付");
|
||||
PAY_TYPE_MAPPING.put("cashPay", "现金支付");
|
||||
PAY_TYPE_MAPPING.put("wechatPay", "微信支付");
|
||||
PAY_TYPE_MAPPING.put("alipayPay", "支付宝支付");
|
||||
PAY_TYPE_MAPPING.put("mainScanPay", "主扫支付");
|
||||
PAY_TYPE_MAPPING.put("backScanPay", "被扫支付");
|
||||
PAY_TYPE_MAPPING.put("creditPay", "信用支付");
|
||||
PAY_TYPE_MAPPING.put("mainScanPay", "被扫支付");
|
||||
PAY_TYPE_MAPPING.put("backScanPay", "主扫支付");
|
||||
|
||||
PAY_TYPE_MAPPING.put("memberPay", "余额支付");
|
||||
PAY_TYPE_MAPPING.put("creditPay", "挂账支付");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -112,9 +112,14 @@ public class SysParamsServiceImpl extends ServiceImpl<SysParamsMapper, SysParams
|
||||
@Override
|
||||
public String getSysParamValue(String code) {
|
||||
SysParams sysParam = getSysParam(code);
|
||||
log.error("参数不存在,参数编码:{}", code);
|
||||
AssertUtil.isNull(sysParam, "参数不存在");
|
||||
AssertUtil.isBlank(sysParam.getParamValue(), "参数值为空");
|
||||
if (sysParam == null) {
|
||||
log.error("参数不存在,参数编码:{}", code);
|
||||
return "";
|
||||
}
|
||||
if (sysParam.getParamValue() == null) {
|
||||
log.error("参数值为空,参数编码:{}", code);
|
||||
return "";
|
||||
}
|
||||
return sysParam.getParamValue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user