BUGFIX:retrieve;

This commit is contained in:
shahaibo
2023-12-22 11:17:35 +08:00
parent e45e63103f
commit a5d08e700a

View File

@@ -141,7 +141,11 @@ public class CollectionServiceImpl extends ServiceImpl<CollectionMapper, Collect
} else {
String[] idName = name.split("_");
if (idName.length > 1) {
d.setId(StringUtil.isNullOrEmpty(idName[0]) ? null : Integer.valueOf(idName[0]));
if (idName[0].equals("null")) {
d.setId(null);
}else {
d.setId(StringUtil.isNullOrEmpty(idName[0]) ? null : Integer.valueOf(idName[0]));
}
d.setName(idName[1]);
d.setTcx(idName[2]);
}