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
8c7de394
Commit
8c7de394
authored
Jan 16, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# fee
parent
edef6ab3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
4 deletions
+12
-4
AccountingSubjectController.java
...r/module/cost/controller/AccountingSubjectController.java
+2
-1
AccountingSubjectModifyReq.java
...r/module/cost/dto/request/AccountingSubjectModifyReq.java
+3
-0
IAccountingSubjectService.java
.../other/module/cost/service/IAccountingSubjectService.java
+2
-1
AccountingSubjectServiceImpl.java
...odule/cost/service/impl/AccountingSubjectServiceImpl.java
+5
-2
No files found.
cost-service/src/main/java/com/blt/other/module/cost/controller/AccountingSubjectController.java
View file @
8c7de394
...
@@ -4,6 +4,7 @@ package com.blt.other.module.cost.controller;
...
@@ -4,6 +4,7 @@ package com.blt.other.module.cost.controller;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.bailuntec.common.JsonUtilByFsJson
;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.bailuntec.cost.api.response.CostResult
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectModifyReq
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.service.IAccountingSubjectService
;
import
com.blt.other.module.cost.service.IAccountingSubjectService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -45,7 +46,7 @@ public class AccountingSubjectController {
...
@@ -45,7 +46,7 @@ public class AccountingSubjectController {
@ApiOperation
(
"更新会计一级科目"
)
@ApiOperation
(
"更新会计一级科目"
)
@PostMapping
(
"/modify"
)
@PostMapping
(
"/modify"
)
public
CostResult
<
Void
>
modify
(
@RequestBody
AccountingSubject
Add
Req
req
)
{
public
CostResult
<
Void
>
modify
(
@RequestBody
AccountingSubject
Modify
Req
req
)
{
log
.
info
(
"新增会计一级科目:{}"
,
JsonUtilByFsJson
.
beanToJson
(
req
));
log
.
info
(
"新增会计一级科目:{}"
,
JsonUtilByFsJson
.
beanToJson
(
req
));
accountingSubjectService
.
modify
(
req
);
accountingSubjectService
.
modify
(
req
);
return
CostResult
.
success
();
return
CostResult
.
success
();
...
...
cost-service/src/main/java/com/blt/other/module/cost/dto/request/AccountingSubjectModifyReq.java
View file @
8c7de394
...
@@ -14,6 +14,9 @@ import lombok.Data;
...
@@ -14,6 +14,9 @@ import lombok.Data;
@Data
@Data
public
class
AccountingSubjectModifyReq
{
public
class
AccountingSubjectModifyReq
{
@ApiModelProperty
(
value
=
"会计一级类目id"
)
private
String
id
;
@ApiModelProperty
(
value
=
"会计一级类目编号"
)
@ApiModelProperty
(
value
=
"会计一级类目编号"
)
private
String
subjectNo
;
private
String
subjectNo
;
...
...
cost-service/src/main/java/com/blt/other/module/cost/service/IAccountingSubjectService.java
View file @
8c7de394
...
@@ -2,6 +2,7 @@ package com.blt.other.module.cost.service;
...
@@ -2,6 +2,7 @@ package com.blt.other.module.cost.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectModifyReq
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.AccountingSubject
;
/**
/**
...
@@ -26,5 +27,5 @@ public interface IAccountingSubjectService extends IService<AccountingSubject> {
...
@@ -26,5 +27,5 @@ public interface IAccountingSubjectService extends IService<AccountingSubject> {
*
*
* @param req req
* @param req req
*/
*/
void
modify
(
AccountingSubject
Add
Req
req
);
void
modify
(
AccountingSubject
Modify
Req
req
);
}
}
cost-service/src/main/java/com/blt/other/module/cost/service/impl/AccountingSubjectServiceImpl.java
View file @
8c7de394
...
@@ -5,6 +5,7 @@ import com.blt.other.module.auth.dao.OaUserMapper;
...
@@ -5,6 +5,7 @@ import com.blt.other.module.auth.dao.OaUserMapper;
import
com.blt.other.module.auth.model.OaUser
;
import
com.blt.other.module.auth.model.OaUser
;
import
com.blt.other.module.cost.dao.AccountingSubjectMapper
;
import
com.blt.other.module.cost.dao.AccountingSubjectMapper
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectAddReq
;
import
com.blt.other.module.cost.dto.request.AccountingSubjectModifyReq
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.service.IAccountingSubjectService
;
import
com.blt.other.module.cost.service.IAccountingSubjectService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -47,9 +48,11 @@ public class AccountingSubjectServiceImpl extends ServiceImpl<AccountingSubjectM
...
@@ -47,9 +48,11 @@ public class AccountingSubjectServiceImpl extends ServiceImpl<AccountingSubjectM
@Override
@Override
public
void
modify
(
AccountingSubject
Add
Req
req
)
{
public
void
modify
(
AccountingSubject
Modify
Req
req
)
{
AccountingSubject
accountingSubject
=
baseMapper
.
selectByNo
(
req
.
getSubjectNo
());
AccountingSubject
accountingSubject
=
baseMapper
.
selectById
(
req
.
getId
());
accountingSubject
.
setSubjectNo
(
req
.
getSubjectNo
());
accountingSubject
.
setUpdateUserId
(
req
.
getUpdateUserId
());
accountingSubject
.
setUpdateUserId
(
req
.
getUpdateUserId
());
OaUser
oaUser
=
oaUserMapper
.
selectByOaUserId
(
req
.
getUpdateUserId
());
OaUser
oaUser
=
oaUserMapper
.
selectByOaUserId
(
req
.
getUpdateUserId
());
...
...
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