Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-cost-system
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
bltdc
dc-cost-system
Commits
fd03ecb9
Commit
fd03ecb9
authored
Jan 05, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
bf1f053d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
CostDetailServiceImpl.java
...other/module/cost/service/impl/CostDetailServiceImpl.java
+19
-1
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/CostDetailServiceImpl.java
View file @
fd03ecb9
...
@@ -4,10 +4,13 @@ import com.bailuntec.common.BeanUtils;
...
@@ -4,10 +4,13 @@ import com.bailuntec.common.BeanUtils;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.blt.other.common.util.PathUtil
;
import
com.blt.other.common.util.PathUtil
;
import
com.blt.other.module.cost.dao.CostDao
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.module.cost.dao.AccountingSubjectMapper
;
import
com.blt.other.module.cost.dao.CostDetailDao
;
import
com.blt.other.module.cost.dao.CostDetailDao
;
import
com.blt.other.module.cost.dao.CostTypeDao
;
import
com.blt.other.module.cost.dto.request.ResetReq
;
import
com.blt.other.module.cost.dto.request.ResetReq
;
import
com.blt.other.module.cost.dto.response.ResetResp
;
import
com.blt.other.module.cost.dto.response.ResetResp
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.CostDetailDomain
;
import
com.blt.other.module.cost.model.CostDetailDomain
;
import
com.blt.other.module.cost.service.CostDetailService
;
import
com.blt.other.module.cost.service.CostDetailService
;
import
com.blt.other.module.cost.service.CostService
;
import
com.blt.other.module.cost.service.CostService
;
...
@@ -50,6 +53,11 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
...
@@ -50,6 +53,11 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
.
eq
(
CostDetailDomain:
:
getDetailNo
,
domain
.
getDetailNo
()));
.
eq
(
CostDetailDomain:
:
getDetailNo
,
domain
.
getDetailNo
()));
}
}
@Resource
CostTypeDao
costTypeDao
;
@Resource
AccountingSubjectMapper
accountingSubjectMapper
;
@Override
@Override
public
ResetResp
reset
(
ResetReq
req
)
{
public
ResetResp
reset
(
ResetReq
req
)
{
CostDetailDomain
costDetailDomain
=
this
.
getCostDetailByDetailNo
(
req
.
getDetailNo
());
CostDetailDomain
costDetailDomain
=
this
.
getCostDetailByDetailNo
(
req
.
getDetailNo
());
...
@@ -62,6 +70,16 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
...
@@ -62,6 +70,16 @@ public class CostDetailServiceImpl extends ServiceImpl<CostDetailDao, CostDetail
String
path
=
CostFileUtil
.
upload
(
req
.
getFileSelect2
(),
filePath
);
String
path
=
CostFileUtil
.
upload
(
req
.
getFileSelect2
(),
filePath
);
costDetailDomain
.
setFilePath
(
path
);
costDetailDomain
.
setFilePath
(
path
);
}
}
if
(
req
.
getTypeNo
()
!=
null
)
{
CostTypeDomain
costTypeDomain
=
costTypeDao
.
selectByNo
(
req
.
getTypeNo
());
costDetailDomain
.
setTypeName
(
costTypeDomain
.
getTypeName
());
}
if
(
req
.
getAccountingSubjectNo
()
!=
null
)
{
AccountingSubject
accountingSubject
=
accountingSubjectMapper
.
selectByNo
(
req
.
getAccountingSubjectNo
());
costDetailDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
}
baseMapper
.
updateById
(
costDetailDomain
);
baseMapper
.
updateById
(
costDetailDomain
);
costService
.
resetCost
(
costDetailDomain
.
getCostNo
());
costService
.
resetCost
(
costDetailDomain
.
getCostNo
());
...
...
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