Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
1d40694de7
|
|
@ -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