|
|
|
@ -78,11 +78,11 @@ public class SysWorkplaceFreightService extends ServiceImpl<SysWorkplaceFreightM
|
|
|
|
|
code = "DMQ00" + 1;
|
|
|
|
|
}else {
|
|
|
|
|
String code1 = sysWorkplaceQueue.getCode();
|
|
|
|
|
String withoutDMQ = code1.replace("DMQ", "");
|
|
|
|
|
String withoutDMQ = code1.replace("DMQ00", "");
|
|
|
|
|
Integer result = Integer.parseInt(withoutDMQ.trim());
|
|
|
|
|
result += 1;
|
|
|
|
|
String sixDigitResult = String.format("%03d", result);
|
|
|
|
|
code = "DMQ" + sixDigitResult;
|
|
|
|
|
// String sixDigitResult = String.format("%03d", result);
|
|
|
|
|
code = "DMQ00" + result;
|
|
|
|
|
}
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|