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
55853c14
Commit
55853c14
authored
Jan 20, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
5615042b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
AccountingSubjectController.java
...r/module/cost/controller/AccountingSubjectController.java
+7
-4
CostTypeController.java
.../blt/other/module/cost/controller/CostTypeController.java
+2
-2
CostTypeAddReq.java
...com/blt/other/module/cost/dto/request/CostTypeAddReq.java
+2
-2
CostTypeServiceImpl.java
...t/other/module/cost/service/impl/CostTypeServiceImpl.java
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/AccountingSubjectController.java
View file @
55853c14
...
...
@@ -10,10 +10,7 @@ import com.blt.other.module.cost.service.IAccountingSubjectService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
java.util.List
;
...
...
@@ -59,4 +56,10 @@ public class AccountingSubjectController {
return
CostResult
.
success
(
list
);
}
@ApiOperation
(
"根据id获取会计一级科目"
)
@PostMapping
(
"/queryById"
)
public
CostResult
<
AccountingSubject
>
queryById
(
@RequestParam
Integer
id
)
{
AccountingSubject
accountingSubject
=
accountingSubjectService
.
getById
(
id
);
return
CostResult
.
success
(
accountingSubject
);
}
}
cost-service/src/main/java/com/blt/other/module/cost/controller/CostTypeController.java
View file @
55853c14
...
...
@@ -92,9 +92,9 @@ public class CostTypeController {
}
@ApiOperation
(
"导出excel"
)
@
Pos
tMapping
(
"/exportExcel"
)
@
Ge
tMapping
(
"/exportExcel"
)
public
CostResult
<
Void
>
exportExcel
(
HttpServletResponse
response
,
@RequestBody
CostTypeExportExcelReq
req
)
throws
IOException
{
CostTypeExportExcelReq
req
)
throws
IOException
{
costTypeService
.
exportExcel
(
response
,
req
);
return
CostResult
.
success
();
}
...
...
cost-service/src/main/java/com/blt/other/module/cost/dto/request/CostTypeAddReq.java
View file @
55853c14
...
...
@@ -21,8 +21,8 @@ public class CostTypeAddReq {
@ApiModelProperty
(
"描述"
)
private
String
description
;
@ApiModelProperty
(
"会计
一级科目
"
)
private
String
accountingSubjectNo
;
@ApiModelProperty
(
"会计
科目id
"
)
private
Integer
accountingSubjectId
;
@ApiModelProperty
(
"1-费用类型 2-收入类型"
)
private
Integer
type
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostTypeServiceImpl.java
View file @
55853c14
...
...
@@ -44,7 +44,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
public
void
addCostType
(
CostTypeAddReq
req
)
{
CostTypeDomain
costTypeDomain
=
new
CostTypeDomain
();
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectBy
No
(
req
.
getAccountingSubjectNo
());
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectBy
Id
(
req
.
getAccountingSubjectId
());
costTypeDomain
.
setAccountingSubjectId
(
accountingSubject
.
getId
());
costTypeDomain
.
setTypeNo
(
IdWorker
.
getIdStr
());
costTypeDomain
.
setTypeName
(
req
.
getTypeName
());
...
...
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