## 调整部门获取下个编号方法;
This commit is contained in:
parent
2feb0076e1
commit
af9a71f31a
|
@ -3,6 +3,7 @@ package com.hzs.system.sys.service.impl;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.hzs.common.core.constant.SysConstants;
|
||||||
import com.hzs.common.domain.system.sys.SysDept;
|
import com.hzs.common.domain.system.sys.SysDept;
|
||||||
import com.hzs.system.sys.param.SysDeptQueryParam;
|
import com.hzs.system.sys.param.SysDeptQueryParam;
|
||||||
import com.hzs.system.sys.vo.SysDeptQueryVO;
|
import com.hzs.system.sys.vo.SysDeptQueryVO;
|
||||||
|
@ -117,9 +118,9 @@ public class SysDeptServiceImpl implements ISysDeptService {
|
||||||
DecimalFormat decimalFormat = new DecimalFormat("0000");
|
DecimalFormat decimalFormat = new DecimalFormat("0000");
|
||||||
String deptCode = sysDeptMapper.getMaxDeptCode();
|
String deptCode = sysDeptMapper.getMaxDeptCode();
|
||||||
if (StringUtils.isEmpty(deptCode)) {
|
if (StringUtils.isEmpty(deptCode)) {
|
||||||
return "HZS" + decimalFormat.format(1);
|
return SysConstants.RETAIL_PREFIX + decimalFormat.format(1);
|
||||||
} else {
|
} else {
|
||||||
return "HZS" + decimalFormat.format(Integer.parseInt(deptCode.replace("HZS", "")) + 1);
|
return SysConstants.RETAIL_PREFIX + decimalFormat.format(Integer.parseInt(deptCode.replace(SysConstants.RETAIL_PREFIX, "")) + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -275,15 +275,6 @@ public class PayController {
|
||||||
|
|
||||||
OnlinePayConfigVO payConfigVO = new OnlinePayConfigVO();
|
OnlinePayConfigVO payConfigVO = new OnlinePayConfigVO();
|
||||||
|
|
||||||
if (SecurityUtils.getUserId().equals(443418L)) {
|
|
||||||
// 指定线上测试用户: HZS38355685
|
|
||||||
payConfigVO.setPay81(Boolean.TRUE);
|
|
||||||
payConfigVO.setPay82(Boolean.TRUE);
|
|
||||||
payConfigVO.setPay83(Boolean.TRUE);
|
|
||||||
payConfigVO.setPay84(Boolean.TRUE);
|
|
||||||
return AjaxResult.success(payConfigVO);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 各支付方式: true=显示,false=隐藏
|
// 各支付方式: true=显示,false=隐藏
|
||||||
|
|
||||||
// 新汇付PC微信扫码支付
|
// 新汇付PC微信扫码支付
|
||||||
|
|
Loading…
Reference in New Issue