find:()优化展示后台代码
parent
1a5eb171ca
commit
593442417f
|
@ -11,6 +11,7 @@ import lombok.NoArgsConstructor;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author:yang
|
* @Author:yang
|
||||||
|
@ -47,7 +48,7 @@ public class TableNames {
|
||||||
* 数据库表字段
|
* 数据库表字段
|
||||||
*/
|
*/
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private ArrayList<TableFie> tableFie;
|
private List<TableFie> tableFie;
|
||||||
|
|
||||||
public TableNames(String name, Integer dataId) {
|
public TableNames(String name, Integer dataId) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|
|
@ -35,13 +35,6 @@ public class AssetAuthorizationServiceImpl
|
||||||
@Override
|
@Override
|
||||||
public Long delUserAssetAccredit(AssetAuthorization req) {
|
public Long delUserAssetAccredit(AssetAuthorization req) {
|
||||||
LambdaQueryWrapper<AssetAuthorization> queryWrapper = new LambdaQueryWrapper<>();
|
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()) {
|
if (null==req.getUserId()) {
|
||||||
return 0L;
|
return 0L;
|
||||||
}
|
}
|
||||||
|
@ -53,8 +46,6 @@ public class AssetAuthorizationServiceImpl
|
||||||
public Long delDeptAssetAccredit(AssetAuthorization req) {
|
public Long delDeptAssetAccredit(AssetAuthorization req) {
|
||||||
LambdaQueryWrapper<AssetAuthorization> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<AssetAuthorization> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
if (null==req.getDeptId()) {
|
if (null==req.getDeptId()) {
|
||||||
// queryWrapper.eq(AssetAuthorization::getDeptId,req.getDeptId())
|
|
||||||
// .eq(AssetAuthorization::getTableId,req.getTableId());
|
|
||||||
return 0L;
|
return 0L;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -183,7 +183,8 @@ public class DataRunNameServiceImpl implements DataRunNameService {
|
||||||
if (CollectionUtils.isEmpty(dataName.getTableNames())) {return null;}
|
if (CollectionUtils.isEmpty(dataName.getTableNames())) {return null;}
|
||||||
//在内部封装方法
|
//在内部封装方法
|
||||||
dataName.getTableNames().forEach(tableName1 -> {
|
dataName.getTableNames().forEach(tableName1 -> {
|
||||||
this.tableStructureShow(tableName1);
|
List<TableFie> tableFies = this.tableStructureShow(tableName1);
|
||||||
|
tableName1.setTableFie(tableFies);
|
||||||
});
|
});
|
||||||
return tableNamesList;
|
return tableNamesList;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue