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
7a9e78d7
Commit
7a9e78d7
authored
Oct 21, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
10bea416
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
4 deletions
+44
-4
AbstractCostPlanService.java
...e/cost/service/impl/costplan/AbstractCostPlanService.java
+0
-4
CostPlanNewLend1ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
+14
-0
CostPlanNewLend2ServiceImpl.java
...st/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
+14
-0
CostPlanNewReceiptServiceImpl.java
.../service/impl/costplan/CostPlanNewReceiptServiceImpl.java
+16
-0
No files found.
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/AbstractCostPlanService.java
View file @
7a9e78d7
...
@@ -89,11 +89,7 @@ public abstract class AbstractCostPlanService implements CostPlanService {
...
@@ -89,11 +89,7 @@ public abstract class AbstractCostPlanService implements CostPlanService {
costPlanDomain
.
setCreateUsername
(
user
.
getUsername
());
costPlanDomain
.
setCreateUsername
(
user
.
getUsername
());
costPlanDomain
.
setCreateTime
(
new
Date
());
costPlanDomain
.
setCreateTime
(
new
Date
());
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
costPlanDomain
.
getKindNo
());
costPlanDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
costPlanDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
costPlanDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
/*附件字段*/
/*附件字段*/
if
(
costPlanDomain
.
getFileSelect
()
!=
null
)
{
if
(
costPlanDomain
.
getFileSelect
()
!=
null
)
{
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend1ServiceImpl.java
View file @
7a9e78d7
...
@@ -5,6 +5,7 @@ import com.blt.other.common.util.CurUtils;
...
@@ -5,6 +5,7 @@ import com.blt.other.common.util.CurUtils;
import
com.blt.other.module.cost.service.CostPlanService
;
import
com.blt.other.module.cost.service.CostPlanService
;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostTypeKindDomain
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -28,6 +29,14 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
...
@@ -28,6 +29,14 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setLendStatus
(
1
);
planDomain
.
setLendStatus
(
1
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
@@ -35,6 +44,11 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
...
@@ -35,6 +44,11 @@ public class CostPlanNewLend1ServiceImpl extends AbstractCostPlanService impleme
public
void
update
(
CostPlanDomain
planDomain
)
{
public
void
update
(
CostPlanDomain
planDomain
)
{
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
update
(
planDomain
);
costPlanDao
.
update
(
planDomain
);
}
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewLend2ServiceImpl.java
View file @
7a9e78d7
...
@@ -6,6 +6,7 @@ import com.blt.other.module.cost.service.CostPlanService;
...
@@ -6,6 +6,7 @@ import com.blt.other.module.cost.service.CostPlanService;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostPlanTempDomain
;
import
com.blt.other.module.database.model.CostPlanTempDomain
;
import
com.blt.other.module.database.model.CostTypeKindDomain
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -31,6 +32,12 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
...
@@ -31,6 +32,12 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setCostPlanStatus
(
0
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
@@ -38,6 +45,13 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
...
@@ -38,6 +45,13 @@ public class CostPlanNewLend2ServiceImpl extends AbstractCostPlanService impleme
public
void
update
(
CostPlanDomain
planDomain
)
{
public
void
update
(
CostPlanDomain
planDomain
)
{
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
update
(
planDomain
);
costPlanDao
.
update
(
planDomain
);
}
}
...
...
bailuntec-cost-core/src/main/java/com/blt/other/module/cost/service/impl/costplan/CostPlanNewReceiptServiceImpl.java
View file @
7a9e78d7
...
@@ -5,6 +5,7 @@ import com.blt.other.common.util.CurUtils;
...
@@ -5,6 +5,7 @@ import com.blt.other.common.util.CurUtils;
import
com.blt.other.module.cost.service.CostPlanService
;
import
com.blt.other.module.cost.service.CostPlanService
;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostPlanDomain
;
import
com.blt.other.module.database.model.CostTypeKindDomain
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -27,6 +28,14 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
...
@@ -27,6 +28,14 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
planDomain
.
setCostPlanStatus
(
0
);
planDomain
.
setCostPlanStatus
(
0
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
insert
(
planDomain
);
costPlanDao
.
insert
(
planDomain
);
}
}
...
@@ -34,6 +43,13 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
...
@@ -34,6 +43,13 @@ public class CostPlanNewReceiptServiceImpl extends AbstractCostPlanService imple
public
void
update
(
CostPlanDomain
planDomain
)
{
public
void
update
(
CostPlanDomain
planDomain
)
{
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
doSaveFinansyRecord
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
this
.
completedCostPlan
(
planDomain
);
CostTypeKindDomain
costTypeKindDomain
=
costTypeKindDao
.
selectByKindNo
(
planDomain
.
getKindNo
());
planDomain
.
setKindName
(
costTypeKindDomain
.
getKindName
());
planDomain
.
setTypeNo
(
costTypeKindDomain
.
getTypeNo
());
planDomain
.
setTypeName
(
costTypeKindDomain
.
getTypeName
());
costPlanDao
.
update
(
planDomain
);
costPlanDao
.
update
(
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