## 签呈编号前缀替换;
This commit is contained in:
parent
12a5cbe101
commit
4b218e7737
|
@ -117,9 +117,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 "BD" + decimalFormat.format(1);
|
||||||
} else {
|
} else {
|
||||||
return "HZS" + decimalFormat.format(Integer.parseInt(deptCode.replace("HZS", "")) + 1);
|
return "BD" + decimalFormat.format(Integer.parseInt(deptCode.replace("BD", "")) + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import lombok.Getter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: 订单前缀
|
* Description: 订单前缀
|
||||||
* Author: sui q
|
|
||||||
* Time: 2022/9/8 11:09
|
|
||||||
* Classname: EOrderPrefix
|
* Classname: EOrderPrefix
|
||||||
* PackageName: com.hzs.common.core.enums
|
* PackageName: com.hzs.common.core.enums
|
||||||
* @author sshcode
|
* @author sshcode
|
||||||
|
@ -134,7 +132,7 @@ public enum EOrderPrefix {
|
||||||
/**
|
/**
|
||||||
* 审批
|
* 审批
|
||||||
*/
|
*/
|
||||||
APPROVAL_CODE("HZS", "审批"),
|
APPROVAL_CODE("BD", "审批"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 在线支付
|
* 在线支付
|
||||||
|
|
Loading…
Reference in New Issue