资产授权
parent
137371bbd8
commit
b2bb3997fb
|
@ -42,6 +42,7 @@ public class TableInfoController {
|
||||||
* @return 查询的结果
|
* @return 查询的结果
|
||||||
*/
|
*/
|
||||||
@GetMapping("/findAsset")
|
@GetMapping("/findAsset")
|
||||||
|
@Operation(summary = "查询资产信息", description = "查询资产信息")
|
||||||
public Result findAsset() {
|
public Result findAsset() {
|
||||||
// 从tableInfoService中获取所有的TableInfo对象列表
|
// 从tableInfoService中获取所有的TableInfo对象列表
|
||||||
List<TableInfo> list = tableInfoService.list();
|
List<TableInfo> list = tableInfoService.list();
|
||||||
|
@ -82,6 +83,7 @@ public class TableInfoController {
|
||||||
* @return 查询的结果
|
* @return 查询的结果
|
||||||
*/
|
*/
|
||||||
@GetMapping("findAssetByTableName")
|
@GetMapping("findAssetByTableName")
|
||||||
|
@Operation(summary = "查询授权表信息", description = "查询资产信息")
|
||||||
public Result findAsserByTableName(){
|
public Result findAsserByTableName(){
|
||||||
// 从tableInfoService中获取所有的TableInfo对象列表
|
// 从tableInfoService中获取所有的TableInfo对象列表
|
||||||
List<TableInfo> list = tableInfoService.list();
|
List<TableInfo> list = tableInfoService.list();
|
||||||
|
|
|
@ -66,10 +66,10 @@ public class AssetAuthorizationServiceImpl extends ServiceImpl<AssetAuthorizatio
|
||||||
Long tableId = assetAuthorizationReq.getTableId();
|
Long tableId = assetAuthorizationReq.getTableId();
|
||||||
Long basicId = assetAuthorizationReq.getBasicId();
|
Long basicId = assetAuthorizationReq.getBasicId();
|
||||||
if (tableId != null) {
|
if (tableId != null) {
|
||||||
queryWrapper.eq("aa.table_id", tableId);
|
queryWrapper.eq("table_id", tableId);
|
||||||
}
|
}
|
||||||
if (basicId != null) {
|
if (basicId != null) {
|
||||||
queryWrapper.eq("aa.basic_id", basicId);
|
queryWrapper.eq("basic_id", basicId);
|
||||||
}
|
}
|
||||||
return userMapper.selectList(queryWrapper)
|
return userMapper.selectList(queryWrapper)
|
||||||
.stream()
|
.stream()
|
||||||
|
|
|
@ -12,4 +12,5 @@ import com.muyu.source.domain.SysUser;
|
||||||
* @author Lenovo
|
* @author Lenovo
|
||||||
*/
|
*/
|
||||||
public interface UserService extends IService<SysUser> {
|
public interface UserService extends IService<SysUser> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue