09061506:对数据库结构的数据量做一个实时
parent
3372011c64
commit
95392b55b8
|
@ -73,12 +73,10 @@ public class TableDataController extends BaseController {
|
|||
long count = structureService.count(new LambdaQueryWrapper<>() {{
|
||||
eq(Structure::getTableId, id);
|
||||
}});
|
||||
if (count!=0L) {
|
||||
tableInfoService.update(new LambdaUpdateWrapper<>() {{
|
||||
eq(TableInfo::getId, id)
|
||||
.set(TableInfo::getDataNum, count);
|
||||
}});
|
||||
}
|
||||
List<Structure> structureList =tableInfoService.selectTableInfoById(id);
|
||||
return success(structureList);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue