Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform
Commits
d41a3c88
Commit
d41a3c88
authored
Aug 04, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ebe07782
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
RentDepositJobHandler.java
...xxfc/platform/order/jobhandler/RentDepositJobHandler.java
+8
-8
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/RentDepositJobHandler.java
View file @
d41a3c88
...
...
@@ -63,7 +63,7 @@ public class RentDepositJobHandler extends IJobHandler {
Integer
rentDepositAutoRefundTime
=
new
Integer
(
dictionaryMap
.
get
(
APP_ORDER
+
"_"
+
DictionaryKey
.
RENT_DEPOSIT_AUTO_REFUND_TIME
).
getDetail
());
try
{
for
(
int
i
=
0
;
i
<
10
;
i
++)
{
//
for(int i = 0; i < 10; i++) {
// if(IntervalUtil.staticIsInTheInterval(String.valueOf(i), idLastNumInterval)) {
//三十天
List
<
BaseOrder
>
lists
=
baseOrderBiz
.
selectByExample
(
new
Example
.
Builder
(
BaseOrder
.
class
)
...
...
@@ -72,7 +72,8 @@ public class RentDepositJobHandler extends IJobHandler {
.
andEqualTo
(
BaseOrder:
:
getStatus
,
OrderStatusEnum
.
ORDER_FINISH
)
//已完成的订单
.
andEqualTo
(
BaseOrder:
:
getRefundStatus
,
RefundStatusEnum
.
RESIDUE_ILLEGAL
)
//已归还了部分押金
.
andLessThanOrEqualTo
(
BaseOrder:
:
getRefundTime
,
System
.
currentTimeMillis
()
-
(
rentDepositAutoRefundTime
*
60
*
1000
))
.
andLike
(
BaseOrder:
:
getId
,
"%"
+
i
)).
build
());
// .andLike(BaseOrder::getId, "%"+ i)
).
build
());
//处理自动退剩余押金
for
(
BaseOrder
baseOrder
:
lists
)
{
...
...
@@ -93,12 +94,11 @@ public class RentDepositJobHandler extends IJobHandler {
}
// }
}
ReturnT
returnT
=
new
ReturnT
(){{
setCode
(
100
);
setMsg
(
"成功"
);
setContent
(
idLastNumInterval
);
}};
// }
ReturnT
returnT
=
new
ReturnT
();
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
returnT
.
setContent
(
idLastNumInterval
);
return
returnT
;
}
catch
(
Exception
e
)
{
XxlJobLogger
.
log
(
e
);
...
...
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