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
a9613a15
Commit
a9613a15
authored
Dec 31, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f5ab27c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
16 deletions
+4
-16
CostController.java
.../com/blt/other/module/cost/controller/CostController.java
+3
-1
ResetItemReq.java
...a/com/blt/other/module/cost/dto/request/ResetItemReq.java
+0
-3
CostPlanTempServiceImpl.java
...e/cost/service/impl/costplan/CostPlanTempServiceImpl.java
+1
-12
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/controller/CostController.java
View file @
a9613a15
...
@@ -432,7 +432,9 @@ public class CostController {
...
@@ -432,7 +432,9 @@ public class CostController {
@RequestParam
Integer
hasInvoice
,
@RequestParam
Integer
hasInvoice
,
@RequestParam
Integer
updateuserid
)
{
@RequestParam
Integer
updateuserid
)
{
CostDomain
costDomain
=
new
CostDomain
();
costService
=
CostServiceFactory
.
getCostService
();
CostDomain
costDomain
=
costService
.
getCostByCostNo
(
costNo
);
costDomain
.
setHasInvoice
(
hasInvoice
);
costDomain
.
setHasInvoice
(
hasInvoice
);
costDomain
.
setCostNo
(
costNo
);
costDomain
.
setCostNo
(
costNo
);
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/dto/request/ResetItemReq.java
View file @
a9613a15
...
@@ -21,9 +21,6 @@ public class ResetItemReq {
...
@@ -21,9 +21,6 @@ public class ResetItemReq {
private
Integer
id
;
private
Integer
id
;
private
Boolean
delecteFile
;
private
MultipartFile
fileSelect2
;
@ApiModelProperty
(
"费用计划编号"
)
@ApiModelProperty
(
"费用计划编号"
)
private
String
costPlanNo
;
// 费用计划编号
private
String
costPlanNo
;
// 费用计划编号
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanTempServiceImpl.java
View file @
a9613a15
...
@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl.costplan;
...
@@ -3,7 +3,6 @@ package com.blt.other.module.cost.service.impl.costplan;
import
com.bailuntec.cost.api.dto.CostPlanTempDto
;
import
com.bailuntec.cost.api.dto.CostPlanTempDto
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.common.util.CurUtils
;
import
com.blt.other.common.util.PathUtil
;
import
com.blt.other.database.model.CostPlanDomain
;
import
com.blt.other.database.model.CostPlanDomain
;
import
com.blt.other.database.model.CostPlanTempDomain
;
import
com.blt.other.database.model.CostPlanTempDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
import
com.blt.other.database.model.CostTypeDomain
;
...
@@ -18,7 +17,6 @@ import com.blt.other.module.cost.dto.response.GetCostTempByPlanNoResp;
...
@@ -18,7 +17,6 @@ import com.blt.other.module.cost.dto.response.GetCostTempByPlanNoResp;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.model.AccountingSubject
;
import
com.blt.other.module.cost.service.CostPlanTempService
;
import
com.blt.other.module.cost.service.CostPlanTempService
;
import
com.blt.other.module.cost.service.CostTypeKindService
;
import
com.blt.other.module.cost.service.CostTypeKindService
;
import
com.blt.other.module.cost.utils.CostFileUtil
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.lang.NonNull
;
import
org.springframework.lang.NonNull
;
...
@@ -178,20 +176,11 @@ public class CostPlanTempServiceImpl implements CostPlanTempService {
...
@@ -178,20 +176,11 @@ public class CostPlanTempServiceImpl implements CostPlanTempService {
costPlanTempDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
costPlanTempDomain
.
setAccountingSubjectNo
(
accountingSubject
.
getSubjectNo
());
costPlanTempDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
costPlanTempDomain
.
setAccountingSubjectName
(
accountingSubject
.
getName
());
if
(
req
.
getDelecteFile
())
{
costPlanTempDao
.
deletedFilePath
(
req
.
getTempNo
());
}
costPlanTempDao
.
updateById
(
costPlanTempDomain
);
costPlanTempDao
.
updateById
(
costPlanTempDomain
);
this
.
chalkResetDec
(
costPlanTempDomain
.
getCostPlanNo
());
this
.
chalkResetDec
(
costPlanTempDomain
.
getCostPlanNo
());
if
(
req
.
getFileSelect2
()
!=
null
)
{
String
filePath
=
PathUtil
.
getBasePath
()
+
PathUtil
.
getPath
(
"cost/"
+
costPlanTempDomain
.
getTempNo
()
+
"/"
);
String
path
=
CostFileUtil
.
upload
(
req
.
getFileSelect2
(),
filePath
);
costPlanTempDomain
.
setFilePath
(
path
);
}
// 同步更新费用计划金额
// 同步更新费用计划金额
CostPlanDomain
plan
=
costPlanDao
.
selectByNo
(
req
.
getCostPlanNo
());
CostPlanDomain
plan
=
costPlanDao
.
selectByNo
(
req
.
getCostPlanNo
());
if
(
plan
!=
null
)
{
if
(
plan
!=
null
)
{
...
...
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