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
ac6d4f69
Commit
ac6d4f69
authored
Aug 31, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改短信相关代码
parent
7cc50755
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
48 additions
and
29 deletions
+48
-29
WalletJobHandler.java
...b/wxiaoqi/security/admin/jobhandler/WalletJobHandler.java
+1
-4
BaseOrderStatisticsJobHandler.java
...tform/order/jobhandler/BaseOrderStatisticsJobHandler.java
+1
-4
RemindMsgJobHandler.java
...m/xxfc/platform/order/jobhandler/RemindMsgJobHandler.java
+43
-12
RentDepositJobHandler.java
...xxfc/platform/order/jobhandler/RentDepositJobHandler.java
+2
-5
VehicleJobHandler.java
...m/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
+1
-4
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/jobhandler/WalletJobHandler.java
View file @
ac6d4f69
...
@@ -31,10 +31,7 @@ public class WalletJobHandler extends IJobHandler {
...
@@ -31,10 +31,7 @@ public class WalletJobHandler extends IJobHandler {
XxlJobLogger
.
log
(
"-----定时器进入---walletHandler---"
);
XxlJobLogger
.
log
(
"-----定时器进入---walletHandler---"
);
log
.
info
(
"-----定时器进入---walletHandler---"
);
log
.
info
(
"-----定时器进入---walletHandler---"
);
myWaterBiz
.
updTodayAmount
();
myWaterBiz
.
updTodayAmount
();
ReturnT
returnT
=
new
ReturnT
();
return
ReturnT
.
SUCCESS
;
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
return
returnT
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
XxlJobLogger
.
log
(
e
);
XxlJobLogger
.
log
(
e
);
return
FAIL
;
return
FAIL
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/BaseOrderStatisticsJobHandler.java
View file @
ac6d4f69
...
@@ -29,11 +29,8 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
...
@@ -29,11 +29,8 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
XxlJobLogger
.
log
(
"-----定时器进入---baseOrderStatisticsHandler---"
);
XxlJobLogger
.
log
(
"-----定时器进入---baseOrderStatisticsHandler---"
);
log
.
info
(
"-----定时器进入---baseOrderStatisticsHandler---"
);
log
.
info
(
"-----定时器进入---baseOrderStatisticsHandler---"
);
// boolean flag = statisticsBiz.statisticalOrder();
// boolean flag = statisticsBiz.statisticalOrder();
ReturnT
returnT
=
new
ReturnT
();
// if (flag) {
// if (flag) {
returnT
.
setCode
(
100
);
return
ReturnT
.
SUCCESS
;
returnT
.
setMsg
(
"成功"
);
return
returnT
;
// }
// }
// else {
// else {
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/RemindMsgJobHandler.java
View file @
ac6d4f69
package
com
.
xxfc
.
platform
.
order
.
jobhandler
;
package
com
.
xxfc
.
platform
.
order
.
jobhandler
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.date.DateUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.UserFeign
;
import
com.github.wxiaoqi.security.admin.feign.dto.AppUserDTO
;
import
com.xxfc.platform.order.biz.*
;
import
com.xxfc.platform.order.biz.*
;
import
com.xxfc.platform.order.biz.inner.OrderMsgBiz
;
import
com.xxfc.platform.order.biz.inner.OrderMsgBiz
;
import
com.xxfc.platform.order.contant.enumerate.*
;
import
com.xxfc.platform.order.contant.enumerate.*
;
import
com.xxfc.platform.order.entity.BaseOrder
;
import
com.xxfc.platform.order.entity.*
;
import
com.xxfc.platform.order.entity.OrderRentVehicleDetail
;
import
com.xxfc.platform.order.entity.OrderVehicleCrosstown
;
import
com.xxfc.platform.order.entity.OrderViolation
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.constant.DictionaryKey
;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.entity.Dictionary
;
import
com.xxfc.platform.universal.feign.ThirdFeign
;
import
com.xxfc.platform.universal.feign.ThirdFeign
;
...
@@ -17,17 +17,18 @@ import com.xxl.job.core.handler.IJobHandler;
...
@@ -17,17 +17,18 @@ import com.xxl.job.core.handler.IJobHandler;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.handler.annotation.JobHandler
;
import
com.xxl.job.core.log.XxlJobLogger
;
import
com.xxl.job.core.log.XxlJobLogger
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.assertj.core.util.Lists
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.entity.Example
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
tk.mybatis.mapper.weekend.WeekendSqls
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_FALSE
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.*;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_TRUE
;
import
static
com
.
xxfc
.
platform
.
universal
.
constant
.
DictionaryKey
.
APP_ORDER
;
import
static
com
.
xxfc
.
platform
.
universal
.
constant
.
DictionaryKey
.
APP_ORDER
;
/**
/**
...
@@ -40,23 +41,53 @@ import static com.xxfc.platform.universal.constant.DictionaryKey.APP_ORDER;
...
@@ -40,23 +41,53 @@ import static com.xxfc.platform.universal.constant.DictionaryKey.APP_ORDER;
@Slf4j
@Slf4j
public
class
RemindMsgJobHandler
extends
IJobHandler
{
public
class
RemindMsgJobHandler
extends
IJobHandler
{
@Autowired
BaseOrderBiz
baseOrderBiz
;
@Autowired
OrderRentVehicleBiz
orderRentVehicleBiz
;
@Autowired
OrderTourDetailBiz
orderTourDetailBiz
;
@Autowired
OrderMsgBiz
orderMsgBiz
;
@Autowired
@Autowired
ThirdFeign
thirdFeign
;
ThirdFeign
thirdFeign
;
@Autowired
UserFeign
userFeign
;
@Override
@Override
public
ReturnT
<
String
>
execute
(
String
idLastNumInterval
)
{
public
ReturnT
<
String
>
execute
(
String
idLastNumInterval
)
{
Map
<
String
,
Dictionary
>
dictionaryMap
=
thirdFeign
.
dictionaryGetAll4Map
().
getData
();
Map
<
String
,
Dictionary
>
dictionaryMap
=
thirdFeign
.
dictionaryGetAll4Map
().
getData
();
Integer
rentDepositAutoRefundTime
=
new
Integer
(
dictionaryMap
.
get
(
APP_ORDER
+
"_"
+
DictionaryKey
.
RENT_DEPOSIT_AUTO_REFUND_TIME
).
getDetail
());
Integer
rentDepositAutoRefundTime
=
new
Integer
(
dictionaryMap
.
get
(
APP_ORDER
+
"_"
+
DictionaryKey
.
RENT_DEPOSIT_AUTO_REFUND_TIME
).
getDetail
());
try
{
try
{
Date
tomorrow
=
DateUtil
.
offsetDay
(
DateUtil
.
parse
(
DateUtil
.
today
(),
"yyyy-MM-dd"
),
1
);
//检索明天需要出车的订单
List
<
BaseOrder
>
lists
=
baseOrderBiz
.
selectByExample
(
new
Example
.
Builder
(
BaseOrder
.
class
)
//订单已完成的租车订单
.
where
(
WeekendSqls
.<
BaseOrder
>
custom
()
.
andIn
(
BaseOrder:
:
getType
,
CollectionUtil
.
newArrayList
(
OrderTypeEnum
.
RENT_VEHICLE
.
getCode
(),
OrderTypeEnum
.
TOUR
.
getCode
()))
.
andEqualTo
(
BaseOrder:
:
getStatus
,
OrderStatusEnum
.
ORDER_TOSTART
.
getCode
())
//待出发的订单
.
andLessThanOrEqualTo
(
BaseOrder:
:
getCrtTime
,
DateUtil
.
beginOfDay
(
tomorrow
))
.
andGreaterThanOrEqualTo
(
BaseOrder:
:
getCrtTime
,
DateUtil
.
endOfDay
(
tomorrow
))
).
build
());
for
(
BaseOrder
baseOrder
:
lists
)
{
AppUserDTO
appUserDTO
=
userFeign
.
userDetailById
(
baseOrder
.
getUserId
()).
getData
();
if
(
OrderTypeEnum
.
RENT_VEHICLE
.
getCode
().
equals
(
baseOrder
.
getType
()))
{
OrderRentVehicleDetail
orvd
=
orderRentVehicleBiz
.
selectById
(
baseOrder
.
getDetailId
());
orderMsgBiz
.
handelMsgStart
(
orvd
,
null
,
null
,
baseOrder
,
appUserDTO
);
}
else
{
OrderTourDetail
otd
=
orderTourDetailBiz
.
selectById
(
baseOrder
.
getDetailId
());
orderMsgBiz
.
handelMsgStart
(
null
,
otd
,
null
,
baseOrder
,
appUserDTO
);
}
}
return
ReturnT
.
SUCCESS
;
ReturnT
returnT
=
new
ReturnT
();
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
returnT
.
setContent
(
idLastNumInterval
);
return
returnT
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
XxlJobLogger
.
log
(
e
);
XxlJobLogger
.
log
(
e
);
return
FAIL
;
return
FAIL
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/RentDepositJobHandler.java
View file @
ac6d4f69
...
@@ -126,11 +126,8 @@ public class RentDepositJobHandler extends IJobHandler {
...
@@ -126,11 +126,8 @@ public class RentDepositJobHandler extends IJobHandler {
}
}
}
}
ReturnT
returnT
=
new
ReturnT
();
returnT
.
setCode
(
100
);
return
ReturnT
.
SUCCESS
;
returnT
.
setMsg
(
"成功"
);
returnT
.
setContent
(
idLastNumInterval
);
return
returnT
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
XxlJobLogger
.
log
(
e
);
XxlJobLogger
.
log
(
e
);
return
FAIL
;
return
FAIL
;
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/jobhandler/VehicleJobHandler.java
View file @
ac6d4f69
...
@@ -60,10 +60,7 @@ public class VehicleJobHandler extends IJobHandler {
...
@@ -60,10 +60,7 @@ public class VehicleJobHandler extends IJobHandler {
vehicleBookInfoBiz
.
InsertBatch
(
bookInfos
);
vehicleBookInfoBiz
.
InsertBatch
(
bookInfos
);
XxlJobLogger
.
log
(
"----插入车型对象:【{}】"
,
bookInfos
);
XxlJobLogger
.
log
(
"----插入车型对象:【{}】"
,
bookInfos
);
}
}
ReturnT
returnT
=
new
ReturnT
();
return
ReturnT
.
SUCCESS
;
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
return
returnT
;
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
XxlJobLogger
.
log
(
ex
);
XxlJobLogger
.
log
(
ex
);
return
FAIL
;
return
FAIL
;
...
...
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