Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
5ab61768
Commit
5ab61768
authored
Jun 12, 2024
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加批量财务审核,增加批量最终审核
parent
8edd47e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+34
-0
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
5ab61768
...
@@ -286,6 +286,23 @@ public class CostController {
...
@@ -286,6 +286,23 @@ public class CostController {
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
@GetMapping
(
"/check/batchFinancialCheck"
)
@ApiOperation
(
"财务审核通过"
)
public
CostResult
<
Void
>
batchFinancialCheck
(
@RequestParam
(
name
=
"costNos"
)
List
<
String
>
costNos
,
@RequestParam
Integer
userid
,
@RequestParam
(
required
=
false
)
String
reason
)
{
if
(
costNos
!=
null
&&
costNos
.
size
()
>
0
)
{
for
(
String
costNo
:
costNos
){
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
financialCheckState
);
costContext
.
handle
(
reason
);
}
return
CostResult
.
success
();
}
else
{
return
CostResult
.
error
();
}
}
@GetMapping
(
"/check/financialRefuse"
)
@GetMapping
(
"/check/financialRefuse"
)
@ApiOperation
(
"财务审核驳回"
)
@ApiOperation
(
"财务审核驳回"
)
public
CostResult
<
Void
>
financialRefuse
(
@RequestParam
String
costNo
,
public
CostResult
<
Void
>
financialRefuse
(
@RequestParam
String
costNo
,
...
@@ -308,6 +325,23 @@ public class CostController {
...
@@ -308,6 +325,23 @@ public class CostController {
return
CostResult
.
success
();
return
CostResult
.
success
();
}
}
@GetMapping
(
"/check/batchFinalCheck"
)
@ApiOperation
(
"最终审核通过"
)
public
CostResult
<
Void
>
batchFinalCheck
(
@RequestParam
(
name
=
"costNos"
)
List
<
String
>
costNos
,
@RequestParam
Integer
userid
,
@RequestParam
(
required
=
false
)
String
reason
)
{
if
(
costNos
!=
null
&&
costNos
.
size
()
>
0
)
{
for
(
String
costNo
:
costNos
){
CostContext
costContext
=
new
CostContext
(
costNo
,
userid
);
costContext
.
setCostState
(
finalCheckState
);
costContext
.
handle
(
reason
);
}
return
CostResult
.
success
();
}
else
{
return
CostResult
.
error
();
}
}
@GetMapping
(
"/check/finalRefuse"
)
@GetMapping
(
"/check/finalRefuse"
)
@ApiOperation
(
"最终审核人驳回"
)
@ApiOperation
(
"最终审核人驳回"
)
public
CostResult
<
Void
>
finalRefuse
(
@RequestParam
String
costNo
,
public
CostResult
<
Void
>
finalRefuse
(
@RequestParam
String
costNo
,
...
...
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