Commit 2a9eff09 authored by 刘林's avatar 刘林

fix(jg):96333重复问题修复,处理错误数据接口开发

parent 19b297aa
......@@ -902,9 +902,13 @@ public class EquipmentCategoryServiceImpl extends BaseService<EquipmentCategoryD
//}
//zero.append(num);
//elevatorCode.append(zero);
String newCode;
Integer repeatCheck;
do {
elevatorCode = new StringBuilder(generateCodeService.createElevatorCode("96333_" + prefix));
} while (categoryOtherInfoMapper.checkElevatorCodeRepeat(elevatorCode.toString(), "0") > 0);
newCode = generateCodeService.createElevatorCode("96333_" + prefix);
repeatCheck = categoryOtherInfoMapper.checkElevatorCodeRepeat(newCode, "0");
} while (repeatCheck != null && repeatCheck > 0);
elevatorCode = new StringBuilder(newCode);
}
stopWatch.stop();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment