|
@@ -1,6 +1,7 @@
|
|
package org.eco.generator.service;
|
|
package org.eco.generator.service;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
+import cn.hutool.core.util.IdUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSON;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
@@ -566,10 +567,9 @@ public class GenTableServiceImpl extends BaseServiceImpl<GenTableMapper, GenTabl
|
|
* @param table table
|
|
* @param table table
|
|
*/
|
|
*/
|
|
private void setMenuIds(GenTable table) {
|
|
private void setMenuIds(GenTable table) {
|
|
- String nowStr = DateUtils.dateTimeNow();
|
|
|
|
List<Long> menuIds = new ArrayList<>();
|
|
List<Long> menuIds = new ArrayList<>();
|
|
for (int i = 0; i < 7; i++) {
|
|
for (int i = 0; i < 7; i++) {
|
|
- menuIds.add(Long.valueOf(nowStr + "0" + i));
|
|
|
|
|
|
+ menuIds.add(Long.valueOf(IdUtil.getSnowflakeNextIdStr()));
|
|
}
|
|
}
|
|
table.setMenuIds(menuIds);
|
|
table.setMenuIds(menuIds);
|
|
}
|
|
}
|