|
@@ -9,11 +9,11 @@ import com.boman.common.core.utils.obj.ObjectUtils;
|
|
|
import com.boman.common.core.web.domain.AjaxResult;
|
|
|
import com.boman.common.redis.RedisKey;
|
|
|
import com.boman.common.redis.service.RedisService;
|
|
|
+import com.boman.gen.api.RemoteGenTableService;
|
|
|
import com.boman.gen.controller.MyController;
|
|
|
import com.boman.gen.domain.GenTable;
|
|
|
import com.boman.gen.domain.GenTableColumn;
|
|
|
import com.boman.gen.domain.GenTableRelation;
|
|
|
-import com.boman.gen.service.IGenTableService;
|
|
|
import com.boman.system.domain.SysDictData;
|
|
|
import com.boman.system.service.*;
|
|
|
import com.boman.system.utils.IdUtils;
|
|
@@ -59,7 +59,7 @@ public class TableServiceCmdService {
|
|
|
@Resource
|
|
|
private ISysDictTypeService dictTypeService;
|
|
|
@Resource
|
|
|
- private IGenTableService genTableService;
|
|
|
+ private RemoteGenTableService remoteGenTableService;
|
|
|
|
|
|
private static final Logger LOGGER = LoggerFactory.getLogger(TableServiceCmdService.class);
|
|
|
|
|
@@ -506,7 +506,7 @@ public class TableServiceCmdService {
|
|
|
String key = requireNonNull(redisKeyPrefix) + requireNonNull(tableName);
|
|
|
GenTable genTable = redisService.getCacheObject(key);
|
|
|
if (ObjectUtils.isEmpty(genTable)) {
|
|
|
- genTable = genTableService.selectGenTableByName(tableName);
|
|
|
+ genTable = remoteGenTableService.getByTableName(tableName);
|
|
|
requireNonNull(genTable, "未找到表对应的信息");
|
|
|
// {@link com.boman.gen.controller.MyController.packTableAndInsertToRedis} 失效时间
|
|
|
redisService.setCacheObject(key, genTable, 12L, TimeUnit.DAYS);
|