盘点入库youhua

This commit is contained in:
mashuai 2024-04-02 15:15:33 +08:00
parent 111ac4ab8f
commit fc6d449566
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
while (codeList.size() < dto.getNum()) {
String code = FieldGenerator.generateField();
int count = selectByCode(code);
if (count == 0) {
if (count == 0 && !codeList.contains(code)) {
codeList.add(code);
}
}