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
d23f33b8
Commit
d23f33b8
authored
Jan 11, 2023
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
B端调优---人员信息 及 角色 菜单优化
parent
9ffc22d9
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
10 deletions
+25
-10
TBusinessEmployeeExtendInfoMapper.xml
...in/resources/mapper/TBusinessEmployeeExtendInfoMapper.xml
+5
-5
TBusDept.java
...m/yifu/cloud/plus/v1/business/entity/system/TBusDept.java
+4
-0
TBusLable.java
.../yifu/cloud/plus/v1/business/entity/system/TBusLable.java
+4
-0
RoleController.java
...u/cloud/plus/v1/yifu/admin/controller/RoleController.java
+4
-1
SysMenuServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysMenuServiceImpl.java
+5
-1
SysRoleServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
+2
-2
SysUserMapper.xml
...yifu-upms-biz/src/main/resources/mapper/SysUserMapper.xml
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/resources/mapper/TBusinessEmployeeExtendInfoMapper.xml
View file @
d23f33b8
...
...
@@ -64,7 +64,7 @@
<select
id=
"getNotLeaveExtendList"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from
hrms.
t_business_employee_extend_info a
from t_business_employee_extend_info a
<where>
1=1
and a.BUSINESS_WORKING_STATUS
<![CDATA[<>]]>
'1'
...
...
@@ -108,8 +108,8 @@
a.BUSINESS_WORKING_STATUS,
a.DOCUMENT_TYPE,
a.ARCHIVES_ADDR
from
hrms.
t_business_employee_extend_info a
left join
hrms.
t_employee_info b on a.EMP_IDCARD = b.EMP_IDCARD
from t_business_employee_extend_info a
left join t_employee_info b on a.EMP_IDCARD = b.EMP_IDCARD
where 1=1
and a.EMP_IDCARD = #{empIdcard}
and b.DELETE_FLAG = '0'
...
...
@@ -136,8 +136,8 @@
a.BUSINESS_WORKING_STATUS,
a.DOCUMENT_TYPE,
a.ARCHIVES_ADDR
from
hrms.
t_business_employee_extend_info a
left join
hrms.
t_employee_info b on a.EMP_IDCARD = b.EMP_IDCARD
from t_business_employee_extend_info a
left join t_employee_info b on a.EMP_IDCARD = b.EMP_IDCARD
where 1=1
and a.ID = #{extendId}
and b.DELETE_FLAG = '0'
...
...
yifu-business/yifu-business-api/src/main/java/com/yifu/cloud/plus/v1/business/entity/system/TBusDept.java
View file @
d23f33b8
...
...
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
...
...
@@ -14,6 +15,7 @@ import java.time.LocalDateTime;
import
java.util.List
;
import
org.hibernate.validator.constraints.Length
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
...
...
@@ -75,6 +77,8 @@ public class TBusDept extends Model<TBusDept> {
/**
* 创建时间
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ExcelAttribute
(
name
=
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
...
...
yifu-business/yifu-business-api/src/main/java/com/yifu/cloud/plus/v1/business/entity/system/TBusLable.java
View file @
d23f33b8
...
...
@@ -4,11 +4,13 @@ import com.baomidou.mybatisplus.annotation.IdType;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ExcelAttribute
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
org.hibernate.validator.constraints.Length
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
javax.validation.constraints.NotBlank
;
import
java.time.LocalDateTime
;
...
...
@@ -70,6 +72,8 @@ public class TBusLable extends Model<TBusLable> {
/**
* 创建时间
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@ExcelAttribute
(
name
=
"创建时间"
)
@Schema
(
description
=
"创建时间"
)
private
LocalDateTime
createTime
;
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/RoleController.java
View file @
d23f33b8
...
...
@@ -27,6 +27,7 @@ import com.yifu.cloud.plus.v1.yifu.admin.api.vo.RoleVo;
import
com.yifu.cloud.plus.v1.yifu.admin.service.SysRoleMenuService
;
import
com.yifu.cloud.plus.v1.yifu.admin.service.SysRoleService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ClientNameConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.Common
;
import
com.yifu.cloud.plus.v1.yifu.common.core.util.R
;
import
com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog
;
...
...
@@ -119,7 +120,9 @@ public class RoleController {
*/
@GetMapping
(
"/list"
)
public
R
<
List
<
SysRole
>>
listRoles
()
{
return
R
.
ok
(
sysRoleService
.
list
(
Wrappers
.
emptyWrapper
()));
return
R
.
ok
(
sysRoleService
.
list
(
Wrappers
.<
SysRole
>
query
().
lambda
()
.
eq
(
SysRole:
:
getClientId
,
ClientNameConstants
.
CLIENT_MVP
)
.
eq
(
SysRole:
:
getDelFlag
,
CommonConstants
.
ZERO_STRING
)));
}
/**
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysMenuServiceImpl.java
View file @
d23f33b8
...
...
@@ -32,6 +32,7 @@ import com.yifu.cloud.plus.v1.yifu.admin.mapper.SysMenuMapper;
import
com.yifu.cloud.plus.v1.yifu.admin.mapper.SysRoleMenuMapper
;
import
com.yifu.cloud.plus.v1.yifu.admin.service.SysMenuService
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CacheConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.ClientNameConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.CommonConstants
;
import
com.yifu.cloud.plus.v1.yifu.common.core.constant.enums.MenuTypeEnum
;
import
com.yifu.cloud.plus.v1.yifu.common.core.exception.ErrorCodes
;
...
...
@@ -116,7 +117,9 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
public
List
<
Tree
<
Long
>>
treeMenu
(
boolean
lazy
,
Long
parentId
)
{
if
(!
lazy
)
{
List
<
TreeNode
<
Long
>>
collect
=
baseMapper
.
selectList
(
Wrappers
.<
SysMenu
>
lambdaQuery
().
orderByAsc
(
SysMenu:
:
getSortOrder
)).
stream
()
.
selectList
(
Wrappers
.<
SysMenu
>
lambdaQuery
()
.
eq
(
SysMenu:
:
getClientId
,
ClientNameConstants
.
CLIENT_MVP
)
.
orderByAsc
(
SysMenu:
:
getSortOrder
)).
stream
()
.
map
(
getNodeFunction
()).
collect
(
Collectors
.
toList
());
return
TreeUtil
.
build
(
collect
,
CommonConstants
.
MENU_TREE_ROOT_ID
);
...
...
@@ -126,6 +129,7 @@ public class SysMenuServiceImpl extends ServiceImpl<SysMenuMapper, SysMenu> impl
List
<
TreeNode
<
Long
>>
collect
=
baseMapper
.
selectList
(
Wrappers
.<
SysMenu
>
lambdaQuery
().
eq
(
SysMenu:
:
getParentId
,
parent
)
.
eq
(
SysMenu:
:
getClientId
,
ClientNameConstants
.
CLIENT_MVP
)
.
orderByAsc
(
SysMenu:
:
getSortOrder
))
.
stream
().
map
(
getNodeFunction
()).
collect
(
Collectors
.
toList
());
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysRoleServiceImpl.java
View file @
d23f33b8
...
...
@@ -220,12 +220,12 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
}
if
(
CommonConstants
.
ZERO_STRING
.
equals
(
type
)){
if
(
StrUtil
.
isNotBlank
(
sysRole
.
getRoleName
())){
wrapper
.
likeRight
(
SysRole:
:
getRoleName
,
sysRole
.
getRoleName
());
wrapper
.
eq
(
SysRole:
:
getRoleName
,
sysRole
.
getRoleName
());
}
}
if
(
CommonConstants
.
ONE_STRING
.
equals
(
type
)){
if
(
StrUtil
.
isNotBlank
(
sysRole
.
getRoleCode
())){
wrapper
.
likeRight
(
SysRole:
:
getRoleCode
,
sysRole
.
getRoleCode
());
wrapper
.
eq
(
SysRole:
:
getRoleCode
,
sysRole
.
getRoleCode
());
}
}
wrapper
.
last
(
CommonConstants
.
LAST_ONE_SQL
);
...
...
yifu-upms/yifu-upms-biz/src/main/resources/mapper/SysUserMapper.xml
View file @
d23f33b8
...
...
@@ -165,7 +165,7 @@
FROM sys_user
LEFT JOIN sys_dept ON sys_dept.dept_id = sys_user.dept_id
<where>
sys_user.del_flag = '0' and
sys_user.type != '2'
sys_user.del_flag = '0' and
(sys_user.type = '0' or sys_user.type = '1')
<if
test=
"query.username != null and query.username != ''"
>
<bind
name=
"usernameLike"
value=
"'%' + query.username + '%'"
/>
and sys_user.username LIKE #{usernameLike}
...
...
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