|
|
|
@ -97,13 +97,17 @@ public class SysWorkplaceQueueService extends ServiceImpl<SysWorkplaceQueueMappe
|
|
|
|
|
//该摆货层没有出货槽
|
|
|
|
|
int result = 1;
|
|
|
|
|
String sixDigitResult = String.format("%02d", result);
|
|
|
|
|
code = layerCode + sixDigitResult;
|
|
|
|
|
code = layerCode + "-" + sixDigitResult;
|
|
|
|
|
} else {
|
|
|
|
|
String withoutDMQ = code.replace(layerCode, "");
|
|
|
|
|
Integer result = Integer.parseInt(withoutDMQ.trim());
|
|
|
|
|
// int dashIndex = layerCode.indexOf('-');
|
|
|
|
|
// String partAfterDash = code.substring(dashIndex + 1);
|
|
|
|
|
|
|
|
|
|
int secondDashIndex = code.indexOf('-', code.indexOf('-') + 1);
|
|
|
|
|
String partAfterSecondDash = code.substring(secondDashIndex + 1); // 截取第二个'-'后面的部分
|
|
|
|
|
Integer result = Integer.parseInt(partAfterSecondDash);
|
|
|
|
|
result += 1;
|
|
|
|
|
String sixDigitResult = String.format("%02d", result);
|
|
|
|
|
code = layerCode + sixDigitResult;
|
|
|
|
|
code = layerCode + "-" + sixDigitResult;
|
|
|
|
|
}
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|