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
0db0bd60
Commit
0db0bd60
authored
Aug 17, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d3541485
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
CostApi.java
...erfaces/src/main/java/com/bailuntec/cost/api/CostApi.java
+4
-0
CostApiController.java
...m/blt/other/module/cost/controller/CostApiController.java
+24
-0
No files found.
cost-interfaces/src/main/java/com/bailuntec/cost/api/CostApi.java
View file @
0db0bd60
...
...
@@ -31,6 +31,10 @@ public interface CostApi {
@PostMapping
(
"/pushCost"
)
CostResult
<
Void
>
pushCost
(
@RequestBody
CostInputDto
input
)
throws
Exception
;
@ApiOperation
(
"提交费用单"
)
@PostMapping
(
"submitAudit"
)
CostResult
<
Void
>
submitAudit
(
@RequestParam
String
costNo
);
@ApiOperation
(
"获取所有费用单和采购单"
)
@PostMapping
(
"/cost/api/manageCostList"
)
CostResult
<
List
<
ManageCostDto
>>
manageCostList
(
@RequestBody
ManageCostListReq
req
);
...
...
cost-service/src/main/java/com/blt/other/module/cost/controller/CostApiController.java
View file @
0db0bd60
...
...
@@ -7,6 +7,10 @@ import com.bailuntec.cost.api.response.CostResult;
import
com.blt.other.common.annotation.LoginIgnore
;
import
com.blt.other.module.cost.model.CostDomain
;
import
com.blt.other.module.cost.service.CostApiService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.impl.cost.CostServiceFactory
;
import
com.blt.other.module.cost.service.impl.costcheck.CostContext
;
import
com.blt.other.module.cost.service.impl.costcheck.UnSubmitState
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.SneakyThrows
;
...
...
@@ -31,6 +35,11 @@ public class CostApiController implements CostApi {
private
CostApiService
costApiService
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
CostApiController
.
class
);
@Resource
private
CostService
costService
;
@Resource
private
UnSubmitState
unSubmitState
;
@LoginIgnore
@Override
@ApiOperation
(
"接受工资单,自动生成付款费用单到财务审核"
)
...
...
@@ -70,6 +79,21 @@ public class CostApiController implements CostApi {
return
CostResult
.
successMsg
(
costNo
);
}
@LoginIgnore
@Override
@ApiOperation
(
"提交费用单"
)
@PostMapping
(
"submitAudit"
)
public
CostResult
<
Void
>
submitAudit
(
@RequestParam
String
costNo
)
{
costService
=
CostServiceFactory
.
getCostService
(
costNo
);
CostDomain
costDomain
=
costService
.
getCostByCostNo
(
costNo
);
CostContext
costContext
=
new
CostContext
(
costNo
,
costDomain
.
getCreateUserid
());
costContext
.
setCostState
(
unSubmitState
);
costContext
.
handle
();
return
CostResult
.
successMsg
(
"success"
);
}
@LoginIgnore
@SneakyThrows
...
...
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