Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
7142c1ce
Commit
7142c1ce
authored
6 years ago
by
kangxiaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大后天
parent
d86e028f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
ContractServiceImpl.java
src/main/java/common/service/impl/ContractServiceImpl.java
+13
-4
No files found.
src/main/java/common/service/impl/ContractServiceImpl.java
View file @
7142c1ce
...
...
@@ -301,12 +301,16 @@ public class ContractServiceImpl implements ContractService {
}
resource
.
setPayMoney
(
0L
);
resource
.
setInvoice
(
0L
);
Long
extraFlow
=
resource
.
getExtraFlow
();
if
(
extraFlow
==
null
){
extraFlow
=
0L
;
}
if
(
resource
.
getPayMoney
()==
null
){
resource
.
setPayMoney
(
0L
);
}
resource
.
setDs
(
DateUtil
.
getBeforeDays
(
0
));
...
...
@@ -1078,6 +1082,10 @@ public class ContractServiceImpl implements ContractService {
Contract
contract
=
contractRepository
.
findByCode
(
resource
.
getContractCode
());
if
(
resource
.
getType
().
equals
(
"pay"
))
{
contract
.
setPayMoney
(
contract
.
getPayMoney
()+
resource
.
getMoney
());
//判断回款状态
this
.
dealContractStatus
(
contract
,
loginUser
,
"update"
);
}
else
{
contract
.
setInvoiceMoney
(
contract
.
getInvoiceMoney
().
add
(
new
BigDecimal
(
resource
.
getMoney
().
toString
()))
);
}
...
...
@@ -1111,7 +1119,7 @@ public class ContractServiceImpl implements ContractService {
resource
.
setContent
(
packageMap
.
get
(
contract
.
getPriceLevel
())+
"改为"
+
packageMap
.
get
(
resource
.
getLevel
()));
resource
.
setMarke
(
contract
.
getMoney
()+
"元改为"
+
resource
.
getMoney
()+
"元"
);
contract
.
setMoney
(
resource
.
getMoney
()
+
contract
.
getMoney
()
);
contract
.
setMoney
(
resource
.
getMoney
());
contract
.
setPriceLevel
(
resource
.
getLevel
());
// Double rebat = getRebat(contract.getProduct(), contract.getPriceLevel().intValue(), contract.getMoney());
...
...
@@ -1243,7 +1251,6 @@ public class ContractServiceImpl implements ContractService {
contract
.
setPayMoney
(
contract
.
getPayMoney
()
+
resource
.
getMoney
()
-
contractMoney
.
getMoney
());
}
else
{
// contract.setInvoice(contract.getInvoice() + resource.getMoney() - contractMoney.getMoney());
contract
.
setInvoiceMoney
(
contract
.
getInvoiceMoney
().
add
(
new
BigDecimal
(
resource
.
getMoney
())).
subtract
(
new
BigDecimal
(
contractMoney
.
getMoney
())));
}
...
...
@@ -1329,6 +1336,7 @@ public class ContractServiceImpl implements ContractService {
if
(
ids
!=
null
)
{
// 已关联合同 字典
Map
<
String
,
String
>
filterMap
=
new
HashMap
();
for
(
ContractRelation
relation
:
ids
){
...
...
@@ -1338,11 +1346,12 @@ public class ContractServiceImpl implements ContractService {
}
// 所有可关联合同
List
<
Map
>
resultBefore
=
contractRepository
.
contractCodePlatform
(
plats
);
for
(
Map
m
:
resultBefore
)
{
String
m_id
=
m
.
get
(
"id"
).
toString
()
+
"_"
;
if
(
filterMap
.
get
(
m_id
)
==
null
&&
m_id
.
equals
(
contractId
+
"_"
))
{
if
(
filterMap
.
get
(
m_id
)
==
null
&&
!
m_id
.
equals
(
contractId
+
"_"
))
{
result
.
add
(
m
);
}
}
...
...
This diff is collapsed.
Click to expand it.
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