盘点入库youhua
This commit is contained in:
parent
111ac4ab8f
commit
fc6d449566
|
|
@ -55,7 +55,7 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
|
||||||
while (codeList.size() < dto.getNum()) {
|
while (codeList.size() < dto.getNum()) {
|
||||||
String code = FieldGenerator.generateField();
|
String code = FieldGenerator.generateField();
|
||||||
int count = selectByCode(code);
|
int count = selectByCode(code);
|
||||||
if (count == 0) {
|
if (count == 0 && !codeList.contains(code)) {
|
||||||
codeList.add(code);
|
codeList.add(code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue