|
@@ -48,15 +48,15 @@ public class GenSceneNumService {
|
|
|
if(tbSceneNumList.size() <count){
|
|
|
HashSet<String> strings = GenerateZfbCode.generateOldZfbCode(count);
|
|
|
|
|
|
- String result2 = String.join(",", strings);
|
|
|
+ String result2 = String.join("','", strings);
|
|
|
|
|
|
QueryWrapper sceneNumQW = QueryWrapper.create()
|
|
|
- .where("code in (" + result2+" )");
|
|
|
+ .where("code in ('" + result2+"' )");
|
|
|
List<TbSceneNum> sceneNums = tbSceneNumMapper.selectListByQuery(sceneNumQW);
|
|
|
List<String> sceneNumList = sceneNums.stream().map(TbSceneNum::getCode).collect(Collectors.toList());
|
|
|
|
|
|
QueryWrapper sceneQW = QueryWrapper.create()
|
|
|
- .where("num in (" + result2+" )");
|
|
|
+ .where("num in ('" + result2+"' )");
|
|
|
List<TbScene> scenes = tbSceneMapper.selectListByQuery(sceneQW);
|
|
|
List<String> sceneList = scenes.stream().map(TbScene::getNum).collect(Collectors.toList());
|
|
|
|
|
@@ -88,15 +88,15 @@ public class GenSceneNumService {
|
|
|
|
|
|
if(tbSceneNumList.size() <count){
|
|
|
HashSet<String> strings = GenerateZfbCode.generateNewZfbCode(count);
|
|
|
- String result2 = String.join(",", strings);
|
|
|
+ String result2 = String.join("','", strings);
|
|
|
|
|
|
QueryWrapper sceneNumQW = QueryWrapper.create()
|
|
|
- .where("code in (" + result2+" )");
|
|
|
+ .where("code in ('" + result2+"' )");
|
|
|
List<TbScene3dNumNew> sceneNums = tbScene3dNumNewMapper.selectListByQuery(sceneNumQW);
|
|
|
List<String> sceneNumList = sceneNums.stream().map(TbScene3dNumNew::getCode).collect(Collectors.toList());
|
|
|
|
|
|
QueryWrapper sceneQW = QueryWrapper.create()
|
|
|
- .where("num in (" + result2+" )");
|
|
|
+ .where("num in ('" + result2+"' )");
|
|
|
List<TbScenePro> scenes = tbSceneProMapper.selectListByQuery(sceneQW);
|
|
|
List<String> sceneList = scenes.stream().map(TbScenePro::getNum).collect(Collectors.toList());
|
|
|
|