Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
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
王衍超
cloud-fb
Commits
628aae2e
Commit
628aae2e
authored
Apr 22, 2022
by
杨清松
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
1eb3847a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
WarnSettingDao.java
...main/java/com/xyst/dinas/biz/warn/dao/WarnSettingDao.java
+10
-2
ArtificialRechargeServiceImpl.java
...nance/internal/service/ArtificialRechargeServiceImpl.java
+1
-1
No files found.
backend/xyst.dinas.biz/src/main/java/com/xyst/dinas/biz/warn/dao/WarnSettingDao.java
View file @
628aae2e
...
...
@@ -87,12 +87,20 @@ public class WarnSettingDao {
return
template
.
execute
(
session
->
{
StringBuilder
hql
=
new
StringBuilder
(
QUERY_HQL
);
if
(
billId
!=
null
)
hql
.
append
(
" and billId =:billId"
);
if
(
billId
!=
null
&&
(
target
.
equals
(
"保证金余额"
)
||
target
.
equals
(
"预付款余额"
)))
{
hql
.
append
(
" and JSON_EXTRACT(memo,'$.contractId')=:billId "
);
}
else
{
hql
.
append
(
" and billId =:billId"
);
}
if
(
target
!=
null
)
hql
.
append
(
" and target =:target"
);
Query
<
KObject
>
query
=
session
.
createQuery
(
hql
.
toString
(),
KObject
.
class
);
query
.
setParameter
(
"billType"
,
billType
);
if
(
billId
!=
null
)
query
.
setParameter
(
"billId"
,
billId
);
if
(
billId
!=
null
&&
(
target
.
equals
(
"保证金余额"
)
||
target
.
equals
(
"预付款余额"
)))
{
query
.
setParameter
(
"billId"
,
billId
.
toString
());
}
else
{
query
.
setParameter
(
"billId"
,
billId
);
}
if
(
target
!=
null
)
query
.
setParameter
(
"target"
,
target
);
Optional
<
KObject
>
kObject
=
query
.
uniqueResultOptional
();
return
warnSettingToEntity
(
kObject
.
orElse
(
null
));
...
...
backend/xyst.dinas.finance/src/main/java/com/xyst/dinas/finance/internal/service/ArtificialRechargeServiceImpl.java
View file @
628aae2e
...
...
@@ -52,7 +52,7 @@ public class ArtificialRechargeServiceImpl implements ArtificialRechargeService
contract
.
set
(
"depositBalance"
,
contract
.
getBigDecimal
(
"depositBalance"
)
==
null
?
new
BigDecimal
(
"0"
).
add
(
jsonObject
.
getBigDecimal
(
"rechargeAmount"
))
:
contract
.
getBigDecimal
(
"depositBalance"
).
add
(
jsonObject
.
getBigDecimal
(
"rechargeAmount"
)));
}
contractDao
.
update
(
contract
);
BaseBusinessWarn
warn
=
warningService
.
createWarn
(
"合同"
,
contract
.
getUuid
(
"
contractI
d"
),
"预付款余额"
);
BaseBusinessWarn
warn
=
warningService
.
createWarn
(
"合同"
,
contract
.
getUuid
(
"
i
d"
),
"预付款余额"
);
warn
.
setWarningCalculate
(
new
StockAmountWarnCalculate
(
contract
.
getDouble
(
"advanceBalance"
)));
warn
.
warn
();
return
ResponseObj
.
success
();
...
...
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