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
eb7ff1de
Commit
eb7ff1de
authored
Dec 18, 2024
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-权限修改
parent
eb16fdc5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
3 deletions
+56
-3
TEmpChangeInfoController.java
...v1/yifu/archives/controller/TEmpChangeInfoController.java
+14
-1
TEmpChangeInfoService.java
.../plus/v1/yifu/archives/service/TEmpChangeInfoService.java
+12
-2
TEmpChangeInfoServiceImpl.java
...yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
+30
-0
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/TEmpChangeInfoController.java
View file @
eb7ff1de
...
...
@@ -23,7 +23,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.pig4cloud.plugin.excel.annotation.RequestExcel
;
import
com.pig4cloud.plugin.excel.vo.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCutsomerDataPermisson
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TSettleDomain
;
import
com.yifu.cloud.plus.v1.yifu.archives.service.TEmpChangeInfoService
;
...
...
@@ -145,6 +144,20 @@ public class TEmpChangeInfoController {
,
@RequestParam
(
required
=
false
)
String
customerId
,
@RequestParam
(
required
=
false
)
String
flag
)
{
return
new
R
<>(
tEmpChangeInfoService
.
getAllDeptPagePermission
(
page
,
departName
,
nameOrNo
,
customerId
,
flag
));
}
/**
* 分页查询获取所有项目名称(缩小范围)
* @param page 分页对象
* @return
*/
@Operation
(
description
=
"分页查询缩小范围"
)
@GetMapping
(
"/getDeptPagePermission"
)
public
R
<
IPage
<
TSettleDomain
>>
getDeptPagePermission
(
Page
page
,
@RequestParam
(
required
=
false
)
String
departName
,
@RequestParam
(
required
=
false
)
String
nameOrNo
,
@RequestParam
(
required
=
false
)
String
customerId
,
@RequestParam
(
required
=
false
)
String
flag
)
{
return
new
R
<>(
tEmpChangeInfoService
.
getDeptPagePermission
(
page
,
departName
,
nameOrNo
,
customerId
,
flag
));
}
/**
* 获取所有项目名称
* @return R
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TEmpChangeInfoService.java
View file @
eb7ff1de
...
...
@@ -22,7 +22,6 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.pig4cloud.plugin.excel.vo.ErrorMessage
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCustomerInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TCutsomerDataPermisson
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TEmpChangeInfo
;
import
com.yifu.cloud.plus.v1.yifu.archives.entity.TSettleDomain
;
import
com.yifu.cloud.plus.v1.yifu.archives.vo.TEmpChangeInfoNewVO
;
...
...
@@ -86,7 +85,18 @@ public interface TEmpChangeInfoService extends IService<TEmpChangeInfo> {
*/
IPage
<
TSettleDomain
>
getAllDeptPagePermission
(
Page
page
,
String
departName
,
String
nameOrNo
,
String
customerId
,
String
flag
);
/**
* 分页获取项目名称缩小可见范围
*
* @author wzb
* @param page
* @param departName
* @param nameOrNo
* @param customerId
* @param flag
* @return {@link IPage< TSettleDomain>}
*/
IPage
<
TSettleDomain
>
getDeptPagePermission
(
Page
page
,
String
departName
,
String
nameOrNo
,
String
customerId
,
String
flag
);
IPage
<
TSettleDomain
>
getAllDeptPage
(
Page
page
,
String
deptName
,
String
nameOrNo
,
String
customerId
,
String
flag
);
R
<
Boolean
>
changeEmpProArcNew
(
TEmpChangeInfoNewVO
changeVo
);
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TEmpChangeInfoServiceImpl.java
View file @
eb7ff1de
...
...
@@ -368,6 +368,36 @@ public class TEmpChangeInfoServiceImpl extends ServiceImpl<TEmpChangeInfoMapper,
}
/**
* 分页获取项目名称缩小可见范围
*
* @author wzb
* @param page
* @param departName
* @param nameOrNo
* @param customerId
* @param flag
* @return {@link IPage< TSettleDomain>}
*/
@Override
public
IPage
<
TSettleDomain
>
getDeptPagePermission
(
Page
page
,
String
departName
,
String
nameOrNo
,
String
customerId
,
String
flag
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
String
userId
=
user
.
getId
();
// SSC开发组-1668092146875969537L 超管1
long
roleId
=
1668092146875969537L
;
boolean
isSsc
=
this
.
haveRole
(
user
,
roleId
);
long
roleIdMan
=
1839501715787390978L
;
boolean
isAdmin
=
this
.
haveRole
(
user
,
roleIdMan
);
if
(!
isSsc
)
{
isSsc
=
this
.
haveRole
(
user
,
1L
);
}
if
(
isSsc
||
isAdmin
)
{
userId
=
"-999"
;
}
return
tSettleDomainMapper
.
getPagePerMission
(
page
,
userId
,
departName
,
nameOrNo
,
customerId
,
flag
);
}
/**
* @Description: 检测是否有某个角色权限
* @Author: hgw
...
...
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