find:()优化展示后台代码

master
Yueng 2024-09-07 21:29:10 +08:00
parent 1a5eb171ca
commit 593442417f
3 changed files with 4 additions and 11 deletions

View File

@ -11,6 +11,7 @@ import lombok.NoArgsConstructor;
import lombok.extern.log4j.Log4j2;
import java.util.ArrayList;
import java.util.List;
/**
* @Authoryang
@ -47,7 +48,7 @@ public class TableNames {
*
*/
@TableField(exist = false)
private ArrayList<TableFie> tableFie;
private List<TableFie> tableFie;
public TableNames(String name, Integer dataId) {
this.name = name;

View File

@ -35,13 +35,6 @@ public class AssetAuthorizationServiceImpl
@Override
public Long delUserAssetAccredit(AssetAuthorization req) {
LambdaQueryWrapper<AssetAuthorization> queryWrapper = new LambdaQueryWrapper<>();
// if (null==req.getBasicId()){
// queryWrapper.eq(AssetAuthorization::getUserId,req.getUserId())
// .eq(AssetAuthorization::getTableId,req.getTableId());
// }else if (null==req.getTableId()){
// queryWrapper.eq(AssetAuthorization::getUserId,req.getUserId())
// .eq(AssetAuthorization::getBasicId,req.getBasicId());
// }
if (null==req.getUserId()) {
return 0L;
}
@ -53,8 +46,6 @@ public class AssetAuthorizationServiceImpl
public Long delDeptAssetAccredit(AssetAuthorization req) {
LambdaQueryWrapper<AssetAuthorization> queryWrapper = new LambdaQueryWrapper<>();
if (null==req.getDeptId()) {
// queryWrapper.eq(AssetAuthorization::getDeptId,req.getDeptId())
// .eq(AssetAuthorization::getTableId,req.getTableId());
return 0L;
}

View File

@ -183,7 +183,8 @@ public class DataRunNameServiceImpl implements DataRunNameService {
if (CollectionUtils.isEmpty(dataName.getTableNames())) {return null;}
//在内部封装方法
dataName.getTableNames().forEach(tableName1 -> {
this.tableStructureShow(tableName1);
List<TableFie> tableFies = this.tableStructureShow(tableName1);
tableName1.setTableFie(tableFies);
});
return tableNamesList;
}