Commit 2cbd18b7 authored by wei's avatar wei 🎱

后缀-

parent c7c4a42d
......@@ -201,12 +201,12 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
StringBuilder caseNumberBuilder = new StringBuilder();
int length = caseNumber.length();
// 正常输入补位后不能超过3位数字
if (!caseNumber.contains("=") && length > 3) {
if (!caseNumber.contains("-") && length > 3) {
throw new DxBusinessException("500", "案卷序号:" + caseNumber + "不能超过3位数");
}
// 无后缀-输入,位数3补齐0
if (!caseNumber.contains("=")) {
if (!caseNumber.contains("-")) {
// 不满足位数
if (length < LENGTH) {
for (int i = 0; i < LENGTH - length; i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment