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
21a00185
Commit
21a00185
authored
Aug 23, 2022
by
李灿灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into feature-licancan
parents
67e7e849
e92d3241
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
TSalaryStandardController.java
.../v1/yifu/salary/controller/TSalaryStandardController.java
+26
-16
SalaryConstants.java
.../yifu/cloud/plus/v1/yifu/salary/util/SalaryConstants.java
+1
-0
TSalaryStandardMapper.xml
...y-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
+2
-2
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/controller/TSalaryStandardController.java
View file @
21a00185
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord;
...
@@ -30,6 +30,7 @@ import com.yifu.cloud.plus.v1.yifu.salary.entity.TApprovalRecord;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryStandard
;
import
com.yifu.cloud.plus.v1.yifu.salary.entity.TSalaryStandard
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TApprovalRecordService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TApprovalRecordService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryStandardService
;
import
com.yifu.cloud.plus.v1.yifu.salary.service.TSalaryStandardService
;
import
com.yifu.cloud.plus.v1.yifu.salary.util.SalaryConstants
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardSearchVo
;
import
com.yifu.cloud.plus.v1.yifu.salary.vo.TSalaryStandardSearchVo
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
import
io.swagger.v3.oas.annotations.tags.Tag
;
...
@@ -159,23 +160,32 @@ public class TSalaryStandardController {
...
@@ -159,23 +160,32 @@ public class TSalaryStandardController {
@PostMapping
(
"/doSubmit"
)
@PostMapping
(
"/doSubmit"
)
public
R
salaryStandardAudit
(
@RequestBody
TSalaryStandard
tSalaryStandard
)
{
public
R
salaryStandardAudit
(
@RequestBody
TSalaryStandard
tSalaryStandard
)
{
if
(
tSalaryStandard
!=
null
&&
Common
.
isNotNull
(
tSalaryStandard
.
getId
()))
{
if
(
tSalaryStandard
!=
null
&&
Common
.
isNotNull
(
tSalaryStandard
.
getId
()))
{
YifuUser
user
=
SecurityUtils
.
getUser
();
TSalaryStandard
s
=
tSalaryStandardService
.
getById
(
tSalaryStandard
.
getId
());
if
(
user
!=
null
)
{
if
(
s
==
null
)
{
TApprovalRecord
tApprovalRecord
=
new
TApprovalRecord
();
return
R
.
failed
(
"未找到工资表"
);
tApprovalRecord
.
setApprovalResult
(
CommonConstants
.
TWO_STRING
);
}
else
if
(
s
.
getStatus
()
==
SalaryConstants
.
STATUS
[
0
]
tApprovalRecord
.
setApprovalOpinion
(
"提交审核"
);
||
s
.
getStatus
()
==
SalaryConstants
.
STATUS
[
5
]
tApprovalRecord
.
setSalaryId
(
tSalaryStandard
.
getId
());
||
s
.
getStatus
()
==
SalaryConstants
.
STATUS
[
7
])
{
tApprovalRecord
.
setNodeId
(
"提交审核"
);
YifuUser
user
=
SecurityUtils
.
getUser
();
tApprovalRecord
.
setApprovalMan
(
user
.
getId
());
if
(
user
!=
null
)
{
tApprovalRecord
.
setApprovalManName
(
user
.
getNickname
());
TApprovalRecord
tApprovalRecord
=
new
TApprovalRecord
();
tApprovalRecord
.
setApprovalTime
(
DateUtil
.
getCurrentDateTime
());
tApprovalRecord
.
setApprovalResult
(
CommonConstants
.
TWO_STRING
);
auditLogService
.
save
(
tApprovalRecord
);
tApprovalRecord
.
setApprovalOpinion
(
"提交审核"
);
tSalaryStandard
.
setSubmitTime
(
new
Date
());
tApprovalRecord
.
setSalaryId
(
tSalaryStandard
.
getId
());
tSalaryStandard
.
setStatus
(
CommonConstants
.
ONE_INT
);
tApprovalRecord
.
setNodeId
(
"提交审核"
);
tSalaryStandardService
.
updateById
(
tSalaryStandard
);
tApprovalRecord
.
setApprovalMan
(
user
.
getId
());
return
R
.
ok
(
"提交成功!"
);
tApprovalRecord
.
setApprovalManName
(
user
.
getNickname
());
tApprovalRecord
.
setApprovalTime
(
DateUtil
.
getCurrentDateTime
());
auditLogService
.
save
(
tApprovalRecord
);
tSalaryStandard
.
setSubmitTime
(
new
Date
());
tSalaryStandard
.
setStatus
(
CommonConstants
.
ONE_INT
);
tSalaryStandardService
.
updateById
(
tSalaryStandard
);
return
R
.
ok
(
"提交成功!"
);
}
else
{
return
R
.
failed
(
"请登录!"
);
}
}
else
{
}
else
{
return
R
.
failed
(
"请
登录
!"
);
return
R
.
failed
(
"请
刷新后检查薪资表状态
!"
);
}
}
}
else
{
}
else
{
return
R
.
failed
(
"请传参!"
);
return
R
.
failed
(
"请传参!"
);
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/util/SalaryConstants.java
View file @
21a00185
...
@@ -33,6 +33,7 @@ public class SalaryConstants {
...
@@ -33,6 +33,7 @@ public class SalaryConstants {
* @return:
* @return:
**/
**/
public
static
final
Integer
[]
AUDIT_STATUS
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
public
static
final
Integer
[]
AUDIT_STATUS
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
public
static
final
int
[]
STATUS
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
public
static
final
String
[]
AUDIT_STATUS_STRING
=
{
"待提交"
,
"待审核"
,
"-"
,
"待发放"
,
"已发放"
,
"审核不通过"
,
"确认不通过"
,
"财务退回"
,
"结算单调整待审核"
,
"结算单调整待打印"
};
public
static
final
String
[]
AUDIT_STATUS_STRING
=
{
"待提交"
,
"待审核"
,
"-"
,
"待发放"
,
"已发放"
,
"审核不通过"
,
"确认不通过"
,
"财务退回"
,
"结算单调整待审核"
,
"结算单调整待打印"
};
//发放失败-认领状态 0待认领1待出账2已发放3再次失败待认领
//发放失败-认领状态 0待认领1待出账2已发放3再次失败待认领
public
static
final
Integer
[]
LOST_STATUS
=
{
0
,
1
,
2
,
3
};
public
static
final
Integer
[]
LOST_STATUS
=
{
0
,
1
,
2
,
3
};
...
...
yifu-salary/yifu-salary-biz/src/main/resources/mapper/TSalaryStandardMapper.xml
View file @
21a00185
...
@@ -294,7 +294,7 @@
...
@@ -294,7 +294,7 @@
<sql
id=
"where_page"
>
<sql
id=
"where_page"
>
<if
test=
"tSalaryStandard != null"
>
<if
test=
"tSalaryStandard != null"
>
<if
test=
"tSalaryStandard.deptName != null and tSalaryStandard.deptName.trim() != ''"
>
<if
test=
"tSalaryStandard.deptName != null and tSalaryStandard.deptName.trim() != ''"
>
AND a.DEPT_NAME like concat(
#{
'%',#{tSalaryStandard.deptName},'%')
AND a.DEPT_NAME like concat('%',#{tSalaryStandard.deptName},'%')
</if>
</if>
<if
test=
"tSalaryStandard.deptNo != null and tSalaryStandard.deptNo.trim() != ''"
>
<if
test=
"tSalaryStandard.deptNo != null and tSalaryStandard.deptNo.trim() != ''"
>
AND a.DEPT_NO = #{tSalaryStandard.deptNo}
AND a.DEPT_NO = #{tSalaryStandard.deptNo}
...
@@ -313,7 +313,7 @@
...
@@ -313,7 +313,7 @@
<sql
id=
"where_export"
>
<sql
id=
"where_export"
>
<if
test=
"searchVo != null"
>
<if
test=
"searchVo != null"
>
<if
test=
"searchVo.deptName != null and searchVo.deptName.trim() != ''"
>
<if
test=
"searchVo.deptName != null and searchVo.deptName.trim() != ''"
>
AND a.DEPT_NAME like concat(
#{
'%',#{searchVo.deptName},'%')
AND a.DEPT_NAME like concat('%',#{searchVo.deptName},'%')
</if>
</if>
<if
test=
"searchVo.deptNo != null and searchVo.deptNo.trim() != ''"
>
<if
test=
"searchVo.deptNo != null and searchVo.deptNo.trim() != ''"
>
AND a.DEPT_NO = #{searchVo.deptNo}
AND a.DEPT_NO = #{searchVo.deptNo}
...
...
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