资产授权

master
冷调 2024-09-02 19:16:51 +08:00
parent 137371bbd8
commit b2bb3997fb
3 changed files with 5 additions and 2 deletions

View File

@ -42,6 +42,7 @@ public class TableInfoController {
* @return
*/
@GetMapping("/findAsset")
@Operation(summary = "查询资产信息", description = "查询资产信息")
public Result findAsset() {
// 从tableInfoService中获取所有的TableInfo对象列表
List<TableInfo> list = tableInfoService.list();
@ -82,6 +83,7 @@ public class TableInfoController {
* @return
*/
@GetMapping("findAssetByTableName")
@Operation(summary = "查询授权表信息", description = "查询资产信息")
public Result findAsserByTableName(){
// 从tableInfoService中获取所有的TableInfo对象列表
List<TableInfo> list = tableInfoService.list();

View File

@ -66,10 +66,10 @@ public class AssetAuthorizationServiceImpl extends ServiceImpl<AssetAuthorizatio
Long tableId = assetAuthorizationReq.getTableId();
Long basicId = assetAuthorizationReq.getBasicId();
if (tableId != null) {
queryWrapper.eq("aa.table_id", tableId);
queryWrapper.eq("table_id", tableId);
}
if (basicId != null) {
queryWrapper.eq("aa.basic_id", basicId);
queryWrapper.eq("basic_id", basicId);
}
return userMapper.selectList(queryWrapper)
.stream()

View File

@ -12,4 +12,5 @@ import com.muyu.source.domain.SysUser;
* @author Lenovo
*/
public interface UserService extends IService<SysUser> {
}