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
60c88e7c
Commit
60c88e7c
authored
Nov 25, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
eeadc9d1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
AbstractCostPlanService.java
...e/cost/service/impl/costplan/AbstractCostPlanService.java
+9
-1
CostPlanNewLend1ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
+1
-0
CostPlanNewLend2ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
+1
-3
CostPlanNewPayServiceImpl.java
...cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
+2
-0
CostPlanNewReceiptServiceImpl.java
.../service/impl/costplan/CostPlanNewReceiptServiceImpl.java
+1
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/AbstractCostPlanService.java
View file @
60c88e7c
...
@@ -2,6 +2,7 @@ package com.blt.other.module.cost.service.impl.costplan;
...
@@ -2,6 +2,7 @@ package com.blt.other.module.cost.service.impl.costplan;
import
com.bailuntec.common.ListUtil
;
import
com.bailuntec.common.ListUtil
;
import
com.bailuntec.cost.api.dto.CostPlanDto
;
import
com.bailuntec.cost.api.dto.CostPlanDto
;
import
com.blt.other.common.exception.BizRuntimeException
;
import
com.blt.other.module.auth.dao.UserDao
;
import
com.blt.other.module.auth.dao.UserDao
;
import
com.blt.other.module.cost.dao.*
;
import
com.blt.other.module.cost.dao.*
;
import
com.blt.other.module.cost.dto.CostPlanApiDto
;
import
com.blt.other.module.cost.dto.CostPlanApiDto
;
...
@@ -15,9 +16,9 @@ import com.github.pagehelper.PageHelper;
...
@@ -15,9 +16,9 @@ import com.github.pagehelper.PageHelper;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
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.beans.factory.annotation.Value
;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.math.BigDecimal
;
import
java.text.SimpleDateFormat
;
import
java.text.SimpleDateFormat
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -63,6 +64,13 @@ public abstract class AbstractCostPlanService implements CostPlanService {
...
@@ -63,6 +64,13 @@ public abstract class AbstractCostPlanService implements CostPlanService {
CostDetailDao
costDetailDao
;
CostDetailDao
costDetailDao
;
void
check
(
CostPlanDomain
planDomain
)
{
if
(
planDomain
.
getPlanAmount
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
throw
new
BizRuntimeException
(
"金额必须大于0元"
);
}
}
/**
/**
* <p>
* <p>
* 保存填写的财务信息到历史记录
* 保存填写的财务信息到历史记录
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
View file @
60c88e7c
...
@@ -44,6 +44,7 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
...
@@ -44,6 +44,7 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
this
.
check
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
View file @
60c88e7c
...
@@ -33,10 +33,8 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
...
@@ -33,10 +33,8 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setCostPlanStatus
(
0
);
if
(
null
==
planDomain
.
getIsTax
())
{
planDomain
.
setIsTax
(
0
);
}
this
.
check
(
planDomain
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewPayServiceImpl.java
View file @
60c88e7c
...
@@ -40,6 +40,8 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
...
@@ -40,6 +40,8 @@ public class CostPlanNewPayServiceImpl extends AbstractCostPlanService implement
BigDecimal
planAmount
=
list
.
stream
().
map
(
CostPlanTempDomain:
:
getAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
BigDecimal
planAmount
=
list
.
stream
().
map
(
CostPlanTempDomain:
:
getAmount
).
reduce
(
BigDecimal
.
ZERO
,
BigDecimal:
:
add
);
planDomain
.
setPlanAmount
(
planAmount
);
planDomain
.
setPlanAmount
(
planAmount
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setCostPlanStatus
(
0
);
this
.
check
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewReceiptServiceImpl.java
View file @
60c88e7c
...
@@ -36,6 +36,7 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
...
@@ -36,6 +36,7 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
this
.
check
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
...
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