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
12c4ca2a
Commit
12c4ca2a
authored
May 18, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5.4-SSC审核
parent
8e41410c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
115 additions
and
31 deletions
+115
-31
TDispatchInfo.java
.../yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
+14
-5
TDispatchInfoController.java
...us/v1/yifu/social/controller/TDispatchInfoController.java
+15
-1
TDispatchInfoService.java
...oud/plus/v1/yifu/social/service/TDispatchInfoService.java
+10
-0
TDispatchInfoServiceImpl.java
...v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
+72
-25
TDispatchInfoMapper.xml
...ial-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
+4
-0
No files found.
yifu-social/yifu-social-api/src/main/java/com/yifu/cloud/plus/v1/yifu/social/entity/TDispatchInfo.java
View file @
12c4ca2a
...
...
@@ -140,12 +140,12 @@ public class TDispatchInfo extends BaseEntity {
/**
* 0未提交1待审核2审核通过3审核不通过4办理完成
*/
@NotBlank
(
message
=
"0未提交1待审核2审核通过3审核不通过4办理完成不能为空"
)
@Length
(
max
=
1
,
message
=
"0未提交1待审核2审核通过3审核不通过4办理完成 不能超过1个字符"
)
@ExcelAttribute
(
name
=
"0未提交1待审核2审核通过3审核不通过4办理完成
"
,
isNotEmpty
=
true
,
errorInfo
=
"0未提交1待审核2审核通过3审核不通过4办理完成
不能为空"
,
maxLength
=
1
)
@Schema
(
description
=
"0未提交1待审核2审核通过3审核不通过4办理完成"
)
@NotBlank
(
message
=
"0未提交1待审核2审核通过3审核不通过4办理完成不能为空
5待SSC审核
"
)
@Length
(
max
=
1
,
message
=
"0未提交1待审核2审核通过3审核不通过4办理完成
5待SSC审核
不能超过1个字符"
)
@ExcelAttribute
(
name
=
"0未提交1待审核2审核通过3审核不通过4办理完成
5待SSC审核"
,
isNotEmpty
=
true
,
errorInfo
=
"0未提交1待审核2审核通过3审核不通过4办理完成5待SSC审核
不能为空"
,
maxLength
=
1
)
@Schema
(
description
=
"0未提交1待审核2审核通过3审核不通过4办理完成
5待SSC审核
"
)
@HeadFontStyle
(
fontHeightInPoints
=
11
)
@ExcelProperty
(
"0未提交1待审核2审核通过3审核不通过4办理完成"
)
@ExcelProperty
(
"0未提交1待审核2审核通过3审核不通过4办理完成
5待SSC审核
"
)
private
String
status
;
/**
* 0派增1派减
...
...
@@ -741,4 +741,13 @@ public class TDispatchInfo extends BaseEntity {
@ExcelProperty
(
"公积金是否已导出"
)
private
String
exportFundFlag
;
/**
* @Description: SSC 审核,不审核自己创建的
* @Author: hgw
* @Date: 2023/5/18 16:18
* @return:
**/
@TableField
(
exist
=
false
)
private
String
noCreateUser
;
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TDispatchInfoController.java
View file @
12c4ca2a
...
...
@@ -189,6 +189,13 @@ public class TDispatchInfoController {
tDispatchInfo
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
tDispatchInfo
.
setStatus
(
CommonConstants
.
ONE_STRING
);
YifuUser
user
=
SecurityUtils
.
getUser
();
// SSC派单组-1659015946137583618L SSC审核组-1659016108176130049L
long
roleId
=
1659016108176130049L
;
boolean
isSsc
=
tDispatchInfoService
.
haveRole
(
user
,
roleId
);
if
(
isSsc
)
{
tDispatchInfo
.
setStatus
(
CommonConstants
.
FIVE_STRING
);
tDispatchInfo
.
setNoCreateUser
(
user
.
getId
());
}
menuUtil
.
setAuthSql
(
user
,
tDispatchInfo
);
if
(
Common
.
isNotNull
(
tDispatchInfo
.
getAuthSql
()))
{
if
(
tDispatchInfo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
...
...
@@ -374,9 +381,16 @@ public class TDispatchInfoController {
public
void
auditExport
(
HttpServletResponse
response
,
@RequestBody
TDispatchInfoSearchVo
searchVo
,
@RequestParam
(
required
=
false
,
name
=
"mId"
)
String
mId
)
{
searchVo
.
setDeleteFlag
(
CommonConstants
.
ZERO_STRING
);
YifuUser
user
=
SecurityUtils
.
getUser
();
searchVo
.
setStatus
(
CommonConstants
.
ONE_STRING
);
// SSC派单组-1659015946137583618L SSC审核组-1659016108176130049L
long
roleId
=
1659016108176130049L
;
boolean
isSsc
=
tDispatchInfoService
.
haveRole
(
user
,
roleId
);
if
(
isSsc
)
{
searchVo
.
setStatus
(
CommonConstants
.
FIVE_STRING
);
searchVo
.
setNoCreateUser
(
user
.
getId
());
}
searchVo
.
setMId
(
mId
);
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
()))
{
if
(
searchVo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/TDispatchInfoService.java
View file @
12c4ca2a
...
...
@@ -114,4 +114,14 @@ public interface TDispatchInfoService extends IService<TDispatchInfo> {
R
<
Boolean
>
updateExportSocialFlagById
(
String
id
,
String
status
);
R
<
Boolean
>
updateExportFundFlagById
(
String
id
,
String
status
);
/**
* @param user
* @param roleId SSC派单组-1659015946137583618L SSC审核组-1659016108176130049L
* @Description: 判断用户是否含有某个角色
* @Author: hgw
* @Date: 2023/5/18 16:15
* @return: boolean
**/
boolean
haveRole
(
YifuUser
user
,
long
roleId
);
}
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/service/impl/TDispatchInfoServiceImpl.java
View file @
12c4ca2a
This diff is collapsed.
Click to expand it.
yifu-social/yifu-social-biz/src/main/resources/mapper/TDispatchInfoMapper.xml
View file @
12c4ca2a
...
...
@@ -520,6 +520,9 @@
<if
test=
"tDispatchInfo.authSql != null and tDispatchInfo.authSql.trim() != ''"
>
${tDispatchInfo.authSql}
</if>
<if
test=
"tDispatchInfo.noCreateUser != null and tDispatchInfo.noCreateUser.trim() != ''"
>
AND a.CREATE_BY != #{tDispatchInfo.noCreateUser}
</if>
</if>
</sql>
...
...
@@ -778,6 +781,7 @@
when a.STATUS = 2 then "审核通过"
when a.STATUS = 3 then "审核不通过"
when a.STATUS = 4 then "已办结"
when a.STATUS = 5 then "待SSC审核"
else null end as STATUS,
a.AUDIT_USER_NAME as AUDIT_USER,
a.AUDIT_TIME,
...
...
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