Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
028f8f2c
Commit
028f8f2c
authored
Dec 30, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
B端服务添加字典
parent
d7d5b6e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
+22
-3
BusinessUserController.java
...plus/v1/yifu/admin/controller/BusinessUserController.java
+12
-3
SysDictService.java
...yifu/cloud/plus/v1/yifu/admin/service/SysDictService.java
+4
-0
SysDictServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysDictServiceImpl.java
+6
-0
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/BusinessUserController.java
View file @
028f8f2c
...
...
@@ -2,9 +2,7 @@ package com.yifu.cloud.plus.v1.yifu.admin.controller;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysMenu
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUser
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysUserRole
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.*
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.util.TreeUtil
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.BusinessRoleMenuVo
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.BusinessUserVo
;
...
...
@@ -315,4 +313,15 @@ public class BusinessUserController {
}
return
new
R
<>(
userService
.
updateLockFlagById
(
user
,
lockFlag
));
}
/**
* 通过字典类型查找字典值
* @param itemType 类型
* @return 同类型字典
*/
@Operation
(
description
=
"通过字典类型查找字典值"
)
@GetMapping
(
"/itemType/{itemType}"
)
public
R
<
List
<
SysDictItem
>>
getDictByType
(
@PathVariable
String
itemType
)
{
return
new
R
<>(
sysDictService
.
findDetailsByItemType
(
itemType
));
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysDictService.java
View file @
028f8f2c
...
...
@@ -19,6 +19,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDict
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDictItem
;
import
com.yifu.cloud.plus.v1.yifu.admin.api.vo.DictRedisVo
;
import
java.util.List
;
...
...
@@ -57,4 +58,7 @@ public interface SysDictService extends IService<SysDict> {
int
selectChildDictItemCount
(
String
parentItemType
,
String
parentId
);
List
<
DictRedisVo
>
getDictRedisVo
();
List
<
SysDictItem
>
findDetailsByItemType
(
String
itemType
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysDictServiceImpl.java
View file @
028f8f2c
...
...
@@ -145,4 +145,10 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
wrapper
.
orderByDesc
(
BaseEntity:
:
getCreateTime
);
return
wrapper
;
}
@Override
public
List
<
SysDictItem
>
findDetailsByItemType
(
String
itemType
)
{
return
dictItemMapper
.
selectList
(
Wrappers
.<
SysDictItem
>
query
().
lambda
()
.
eq
(
SysDictItem:
:
getType
,
itemType
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment