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
aef1f734
Commit
aef1f734
authored
Feb 23, 2023
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MVP1.5.1-收入证明等
parent
a9a7cec5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
SalaryProveController.java
...us/v1/yifu/archives/controller/SalaryProveController.java
+8
-8
TProveApplyService.java
...oud/plus/v1/yifu/archives/service/TProveApplyService.java
+1
-1
TProveApplyServiceImpl.java
...v1/yifu/archives/service/impl/TProveApplyServiceImpl.java
+1
-1
No files found.
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/controller/SalaryProveController.java
View file @
aef1f734
...
...
@@ -87,7 +87,7 @@ public class SalaryProveController {
@Operation
(
summary
=
"新增(tproveapply_add)"
)
@PostMapping
@PreAuthorize
(
"@pms.hasPermission('tproveapply_add')"
)
public
R
save
(
@Valid
@RequestBody
TProveApply
tProveApply
)
{
public
R
<
Boolean
>
save
(
@Valid
@RequestBody
TProveApply
tProveApply
)
{
return
new
R
<>(
tProveApplyService
.
save
(
tProveApply
));
}
...
...
@@ -101,7 +101,7 @@ public class SalaryProveController {
@SysLog
(
"修改"
)
@PutMapping
@PreAuthorize
(
"@pms.hasPermission('tproveapply_edit')"
)
public
R
update
(
@RequestBody
TProveApply
tProveApply
)
{
public
R
<
Boolean
>
update
(
@RequestBody
TProveApply
tProveApply
)
{
return
new
R
<>(
tProveApplyService
.
updateById
(
tProveApply
));
}
...
...
@@ -115,7 +115,7 @@ public class SalaryProveController {
@SysLog
(
"删除"
)
@DeleteMapping
(
"/{id}"
)
@PreAuthorize
(
"@pms.hasPermission('tproveapply_del')"
)
public
R
removeById
(
@PathVariable
String
id
)
{
public
R
<
Boolean
>
removeById
(
@PathVariable
String
id
)
{
return
new
R
<>(
tProveApplyService
.
removeById
(
id
));
}
...
...
@@ -232,7 +232,7 @@ public class SalaryProveController {
*/
@Operation
(
summary
=
"打印次数加一"
)
@GetMapping
(
value
=
"/addone/{id}"
)
public
R
addone
(
@PathVariable
String
id
)
{
public
R
<
String
>
addone
(
@PathVariable
String
id
)
{
TProveRecord
re
=
tProveRecordService
.
getById
(
id
);
if
(
null
!=
re
&&
null
!=
re
.
getNumber
())
{
re
.
setNumber
(
re
.
getNumber
()
+
1
);
...
...
@@ -307,7 +307,7 @@ public class SalaryProveController {
@SysLog
(
"收入证明修改作废状态"
)
@PostMapping
(
value
=
"/updateStatus"
)
@PreAuthorize
(
"@pms.hasPermission('tproveapply_invalid')"
)
public
R
updateStatus
(
String
id
,
String
status
,
String
invalidReason
)
{
public
R
<
String
>
updateStatus
(
String
id
,
String
status
,
String
invalidReason
)
{
if
(
id
!=
null
)
{
if
(
Common
.
isEmpty
(
status
))
{
return
R
.
failed
(
"作废状态不能为空!"
);
...
...
@@ -353,7 +353,7 @@ public class SalaryProveController {
@Operation
(
summary
=
"新增证明申请(tproveapply_apply)"
)
@PostMapping
(
value
=
"/proveApply"
)
@PreAuthorize
(
"@pms.hasPermission('tproveapply_apply')"
)
public
R
proveApply
(
@Valid
@RequestBody
TProveApply
proveApply
,
String
[]
attaIdArray
)
{
public
R
<
String
>
proveApply
(
@Valid
@RequestBody
TProveApply
proveApply
,
String
[]
attaIdArray
)
{
TEmployeeProject
em
=
employeeProjectService
.
getById
(
proveApply
.
getEmployeeInfo
());
if
(
null
==
em
)
{
return
R
.
failed
(
"无此员工!"
);
...
...
@@ -388,7 +388,7 @@ public class SalaryProveController {
@Operation
(
summary
=
"证明申请详情查询"
)
@GetMapping
(
"/lookApply/{id}"
)
public
R
<
TProveApply
>
lookApply
(
@PathVariable
(
value
=
"id"
,
required
=
true
)
String
id
)
{
return
new
R
(
tProveApplyService
.
getById
(
id
));
return
R
.
ok
(
tProveApplyService
.
getById
(
id
));
}
@Operation
(
summary
=
"证明申请附件查询"
)
...
...
@@ -403,7 +403,7 @@ public class SalaryProveController {
@Operation
(
summary
=
"审核接口(tproveapply_audit) auditStatus:审核结果(1审核通过2审核不通过)"
)
@GetMapping
(
"/updateApplyStatus"
)
@PreAuthorize
(
"@pms.hasPermission('tproveapply_audit')"
)
public
R
updateApplyStatus
(
@RequestParam
String
id
,
@RequestParam
String
auditStatus
)
{
public
R
<
String
>
updateApplyStatus
(
@RequestParam
String
id
,
@RequestParam
String
auditStatus
)
{
TProveApply
pa
=
tProveApplyService
.
getById
(
id
);
if
(
pa
!=
null
)
{
if
(!
CommonConstants
.
dingleDigitStrArray
[
1
].
equals
(
auditStatus
)
&&
!
CommonConstants
.
dingleDigitStrArray
[
2
].
equals
(
auditStatus
))
{
...
...
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/TProveApplyService.java
View file @
aef1f734
...
...
@@ -21,6 +21,6 @@ public interface TProveApplyService extends IService<TProveApply> {
IPage
<
TProveApply
>
getTProveApplyPage
(
Page
<
TProveApply
>
page
,
TProveApply
tProveApply
);
R
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
);
R
<
String
>
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
);
}
yifu-archives/yifu-archives-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/archives/service/impl/TProveApplyServiceImpl.java
View file @
aef1f734
...
...
@@ -43,7 +43,7 @@ public class TProveApplyServiceImpl extends ServiceImpl<TProveApplyMapper, TProv
}
@Override
public
R
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
)
{
public
R
<
String
>
validSave
(
TProveApply
proveApply
,
String
[]
attaIdArray
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
//查重
long
count
=
this
.
count
(
Wrappers
.<
TProveApply
>
lambdaQuery
()
...
...
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