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
de962659
Commit
de962659
authored
Aug 05, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
0ac8f7a4
c6edc737
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
99 additions
and
48 deletions
+99
-48
AppUsersManageController.java
...wxiaoqi/security/admin/rest/AppUsersManageController.java
+0
-2
IntegralUserStatus.java
...com/xxfc/platform/activity/entity/IntegralUserStatus.java
+6
-0
IntegralRuleBiz.java
.../java/com/xxfc/platform/activity/biz/IntegralRuleBiz.java
+9
-14
IntegralUserStatusBiz.java
...com/xxfc/platform/activity/biz/IntegralUserStatusBiz.java
+6
-0
IntegralRuleMapper.xml
...y-server/src/main/resources/mapper/IntegralRuleMapper.xml
+1
-5
IntegralUserStatusMapper.xml
...er/src/main/resources/mapper/IntegralUserStatusMapper.xml
+1
-0
DailyMembersOrderStatisticsBiz.java
...fc/platform/order/biz/DailyMembersOrderStatisticsBiz.java
+11
-3
DailyOrderStatisticsBiz.java
.../com/xxfc/platform/order/biz/DailyOrderStatisticsBiz.java
+1
-1
DailyTravelOrderStatisticsBiz.java
...xfc/platform/order/biz/DailyTravelOrderStatisticsBiz.java
+13
-4
DailyVehicleOrderStatisticsBiz.java
...fc/platform/order/biz/DailyVehicleOrderStatisticsBiz.java
+10
-4
BaseOrderStatisticsJobHandler.java
...tform/order/jobhandler/BaseOrderStatisticsJobHandler.java
+9
-7
DepositRefundRecordMapper.xml
...r/src/main/resources/mapper/DepositRefundRecordMapper.xml
+1
-0
CertificationController.java
...latform/universal/controller/CertificationController.java
+18
-8
TrafficViolationsService.java
.../platform/universal/service/TrafficViolationsService.java
+13
-0
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rest/AppUsersManageController.java
View file @
de962659
...
@@ -126,7 +126,5 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
...
@@ -126,7 +126,5 @@ public class AppUsersManageController extends BaseController<AppUserManageBiz,Ap
appUserLoginBiz
.
deleteAppUserById
(
id
);
appUserLoginBiz
.
deleteAppUserById
(
id
);
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
}
}
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/entity/IntegralUserStatus.java
View file @
de962659
...
@@ -21,4 +21,10 @@ public class IntegralUserStatus {
...
@@ -21,4 +21,10 @@ public class IntegralUserStatus {
private
Long
crtTime
;
private
Long
crtTime
;
private
Long
updTime
;
private
Long
updTime
;
@Transient
private
Long
startTime
;
@Transient
private
Long
endTime
;
}
}
\ No newline at end of file
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/IntegralRuleBiz.java
View file @
de962659
...
@@ -8,11 +8,10 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
...
@@ -8,11 +8,10 @@ import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import
com.github.wxiaoqi.security.common.util.Query
;
import
com.github.wxiaoqi.security.common.util.Query
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.activity.entity.IntegralRule
;
import
com.xxfc.platform.activity.entity.IntegralRule
;
import
com.xxfc.platform.activity.entity.IntegralUser
Record
;
import
com.xxfc.platform.activity.entity.IntegralUser
Status
;
import
com.xxfc.platform.activity.mapper.IntegralRuleMapper
;
import
com.xxfc.platform.activity.mapper.IntegralRuleMapper
;
import
com.xxfc.platform.activity.user.UserInfoBiz
;
import
com.xxfc.platform.activity.user.UserInfoBiz
;
import
com.xxfc.platform.activity.vo.IntegralRuleDto
;
import
com.xxfc.platform.activity.vo.IntegralRuleDto
;
import
com.xxfc.platform.activity.vo.IntegralUserRecordDto
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -27,7 +26,8 @@ public class IntegralRuleBiz extends BaseBiz<IntegralRuleMapper, IntegralRule> {
...
@@ -27,7 +26,8 @@ public class IntegralRuleBiz extends BaseBiz<IntegralRuleMapper, IntegralRule> {
UserInfoBiz
userInfoBiz
;
UserInfoBiz
userInfoBiz
;
@Autowired
@Autowired
IntegralUserRecordBiz
integralUserRecordBiz
;
IntegralUserRecordBiz
integralUserRecordBiz
;
@Autowired
IntegralUserStatusBiz
integralUserStatusBiz
;
/**
/**
* 添加、更新积分规则
* 添加、更新积分规则
* @param integralRule
* @param integralRule
...
@@ -97,22 +97,17 @@ public class IntegralRuleBiz extends BaseBiz<IntegralRuleMapper, IntegralRule> {
...
@@ -97,22 +97,17 @@ public class IntegralRuleBiz extends BaseBiz<IntegralRuleMapper, IntegralRule> {
Query
query
=
new
Query
(
integralRule
);
Query
query
=
new
Query
(
integralRule
);
PageDataVO
<
IntegralRule
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
selectAllByParam
(
integralRule
));
PageDataVO
<
IntegralRule
>
pageDataVO
=
PageDataVO
.
pageInfo
(
query
,
()
->
mapper
.
selectAllByParam
(
integralRule
));
//添加个人积分状态
//添加个人积分状态
pageDataVO
.
getData
().
forEach
((
a
)
->
getIntegralStatus
(
appUserDTO
,
a
));
return
ObjectRestResponse
.
succ
(
pageDataVO
);
return
ObjectRestResponse
.
succ
(
pageDataVO
);
}
}
public
boolean
getIntegralStatus
(
AppUserDTO
appUserDTO
,
IntegralRule
integralRule
)
{
public
void
getIntegralStatus
(
AppUserDTO
appUserDTO
,
IntegralRule
integralRule
)
{
IntegralUserRecordDto
integralUserRecordDto
=
new
IntegralUserRecordDto
();
IntegralUserStatus
integralUserStatus1
=
integralUserStatusBiz
.
selectByUserAndCode
(
integralRule
.
getCode
(),
appUserDTO
.
getUserid
());
integralUserRecordDto
.
setUserId
(
appUserDTO
.
getUserid
());
if
(
integralUserStatus1
!=
null
)
{
integralUserRecordDto
.
setIntegralRuleCode
(
integralRule
.
getCode
());
integralRule
.
setIntegralStatus
(
integralUserStatus1
.
getIntegralStatus
());
List
<
IntegralUserRecord
>
integralUserRecords
=
integralUserRecordBiz
.
getByUserAndTime
(
integralUserRecordDto
).
getData
();
if
(
integralUserRecords
==
null
||
integralUserRecords
.
size
()
<=
0
)
{
return
false
;
}
else
if
(
integralUserRecords
.
size
()
==
integralRule
.
getNumber
()){
//记录 == 规则数 代表已经完成
return
true
;
}
else
{
return
false
;
}
}
}
}
}
}
xx-activity/xx-activity-server/src/main/java/com/xxfc/platform/activity/biz/IntegralUserStatusBiz.java
View file @
de962659
...
@@ -10,6 +10,8 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -10,6 +10,8 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.TimeZone
;
@Service
@Service
@Transactional
@Transactional
public
class
IntegralUserStatusBiz
extends
BaseBiz
<
IntegralUserStatusMapper
,
IntegralUserStatus
>
{
public
class
IntegralUserStatusBiz
extends
BaseBiz
<
IntegralUserStatusMapper
,
IntegralUserStatus
>
{
...
@@ -28,9 +30,13 @@ public class IntegralUserStatusBiz extends BaseBiz<IntegralUserStatusMapper, Int
...
@@ -28,9 +30,13 @@ public class IntegralUserStatusBiz extends BaseBiz<IntegralUserStatusMapper, Int
public
IntegralUserStatus
selectByUserAndCode
(
String
code
,
Integer
userId
)
{
public
IntegralUserStatus
selectByUserAndCode
(
String
code
,
Integer
userId
)
{
if
(!
StringUtils
.
isAllBlank
(
code
,
userId
+
""
))
{
if
(!
StringUtils
.
isAllBlank
(
code
,
userId
+
""
))
{
long
current
=
System
.
currentTimeMillis
();
long
startTime
=
current
/
(
1000
*
3600
*
24
)
*
(
1000
*
3600
*
24
)
-
TimeZone
.
getDefault
().
getRawOffset
();
IntegralUserStatus
integralUserStatus
=
new
IntegralUserStatus
();
IntegralUserStatus
integralUserStatus
=
new
IntegralUserStatus
();
integralUserStatus
.
setIntegralRuleCode
(
code
);
integralUserStatus
.
setIntegralRuleCode
(
code
);
integralUserStatus
.
setUserId
(
userId
);
integralUserStatus
.
setUserId
(
userId
);
integralUserStatus
.
setStartTime
(
startTime
);
integralUserStatus
.
setEndTime
(
startTime
+
24
*
60
*
60
*
1000
-
1
);
return
mapper
.
selectByUserAndCode
(
integralUserStatus
);
return
mapper
.
selectByUserAndCode
(
integralUserStatus
);
}
}
return
null
;
return
null
;
...
...
xx-activity/xx-activity-server/src/main/resources/mapper/IntegralRuleMapper.xml
View file @
de962659
...
@@ -31,15 +31,11 @@
...
@@ -31,15 +31,11 @@
<select
id=
"selectAllByParam"
resultType=
"com.xxfc.platform.activity.entity.IntegralRule"
parameterType=
"com.xxfc.platform.activity.vo.IntegralRuleDto"
>
<select
id=
"selectAllByParam"
resultType=
"com.xxfc.platform.activity.entity.IntegralRule"
parameterType=
"com.xxfc.platform.activity.vo.IntegralRuleDto"
>
select i1.*, i2.integral_status from integral_rule i1
select i1.* from integral_rule i1
left join integral_user_status i2 on i1.code = i2.integral_rule_code
<where>
<where>
<if
test=
"id != null"
>
<if
test=
"id != null"
>
and i1.id = #{id}
and i1.id = #{id}
</if>
</if>
<if
test=
"userId != null"
>
and i2.user_id = #{userId}
</if>
<if
test=
"code != null"
>
<if
test=
"code != null"
>
and i1.code = #{code}
and i1.code = #{code}
</if>
</if>
...
...
xx-activity/xx-activity-server/src/main/resources/mapper/IntegralUserStatusMapper.xml
View file @
de962659
...
@@ -11,5 +11,6 @@
...
@@ -11,5 +11,6 @@
<select
id=
"selectByUserAndCode"
resultType=
"com.xxfc.platform.activity.entity.IntegralUserStatus"
parameterType=
"com.xxfc.platform.activity.entity.IntegralUserStatus"
>
<select
id=
"selectByUserAndCode"
resultType=
"com.xxfc.platform.activity.entity.IntegralUserStatus"
parameterType=
"com.xxfc.platform.activity.entity.IntegralUserStatus"
>
select * from integral_user_status
select * from integral_user_status
where integral_rule_code = #{integralRuleCode} and user_id = #{userId}
where integral_rule_code = #{integralRuleCode} and user_id = #{userId}
and crt_time between #{startTime} and #{endTime} and integral_status =1
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/DailyMembersOrderStatisticsBiz.java
View file @
de962659
...
@@ -9,24 +9,26 @@ import org.apache.commons.beanutils.BeanUtils;
...
@@ -9,24 +9,26 @@ import org.apache.commons.beanutils.BeanUtils;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* 每日购买会员订单统计
* 每日购买会员订单统计
*
* @author Administrator
* @author Administrator
*/
*/
@Service
@Service
public
class
DailyMembersOrderStatisticsBiz
extends
BaseBiz
<
DailyMembersOrderStatisticsMapper
,
DailyMembersOrderStatistics
>
{
public
class
DailyMembersOrderStatisticsBiz
extends
BaseBiz
<
DailyMembersOrderStatisticsMapper
,
DailyMembersOrderStatistics
>
{
public
boolean
memberOrderStatistics
()
{
public
boolean
memberOrderStatistics
()
{
try
{
try
{
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
travelGmv
=
mapper
.
getTravelGmv
();
Map
<
String
,
Object
>
travelGmv
=
mapper
.
getTravelGmv
();
resultMap
.
putAll
(
travelGmv
);
resultMap
.
putAll
(
travelGmv
);
DailyMembersOrderStatistics
MembersStatistics
=
new
DailyMembersOrderStatistics
();
DailyMembersOrderStatistics
MembersStatistics
=
new
DailyMembersOrderStatistics
();
BeanUtils
.
copyProperties
(
MembersStatistics
,
resultMap
);
BeanUtils
.
copyProperties
(
MembersStatistics
,
resultMap
);
insertSelective
(
MembersStatistics
);
insertSelective
(
MembersStatistics
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -34,4 +36,10 @@ public class DailyMembersOrderStatisticsBiz extends BaseBiz<DailyMembersOrderSta
...
@@ -34,4 +36,10 @@ public class DailyMembersOrderStatisticsBiz extends BaseBiz<DailyMembersOrderSta
return
false
;
return
false
;
}
}
}
}
@Override
public
int
insertSelectiveRe
(
DailyMembersOrderStatistics
entity
)
{
entity
.
setCrtTime
(
new
Date
());
return
mapper
.
insertSelective
(
entity
);
}
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/DailyOrderStatisticsBiz.java
View file @
de962659
...
@@ -25,7 +25,7 @@ public class DailyOrderStatisticsBiz extends BaseBiz<DailyOrderStatisticsMapper,
...
@@ -25,7 +25,7 @@ public class DailyOrderStatisticsBiz extends BaseBiz<DailyOrderStatisticsMapper,
@Autowired
@Autowired
private
DailyMembersOrderStatisticsBiz
membersStatisticsBiz
;
private
DailyMembersOrderStatisticsBiz
membersStatisticsBiz
;
// @Scheduled(cron = "0 0/1 *
* * ?")
@Scheduled
(
cron
=
"0 0 2
* * ?"
)
public
boolean
statisticalOrder
(){
public
boolean
statisticalOrder
(){
boolean
vehicleFlag
=
vehicleStatisticsBiz
.
StatisticsOfCarRentalOrders
();
boolean
vehicleFlag
=
vehicleStatisticsBiz
.
StatisticsOfCarRentalOrders
();
boolean
travelFlag
=
travelStatisticsBiz
.
StatisticsOfTravelOrders
();
boolean
travelFlag
=
travelStatisticsBiz
.
StatisticsOfTravelOrders
();
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/DailyTravelOrderStatisticsBiz.java
View file @
de962659
package
com
.
xxfc
.
platform
.
order
.
biz
;
package
com
.
xxfc
.
platform
.
order
.
biz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.util.EntityUtils
;
import
com.xxfc.platform.order.entity.DailyTravelOrderStatistics
;
import
com.xxfc.platform.order.entity.DailyTravelOrderStatistics
;
import
com.xxfc.platform.order.mapper.DailyTravelOrderStatisticsMapper
;
import
com.xxfc.platform.order.mapper.DailyTravelOrderStatisticsMapper
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.apache.commons.beanutils.BeanUtils
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
* 每日旅游订单统计
* 每日旅游订单统计
*
* @author Administrator
* @author Administrator
*/
*/
@Service
@Service
public
class
DailyTravelOrderStatisticsBiz
extends
BaseBiz
<
DailyTravelOrderStatisticsMapper
,
DailyTravelOrderStatistics
>
{
public
class
DailyTravelOrderStatisticsBiz
extends
BaseBiz
<
DailyTravelOrderStatisticsMapper
,
DailyTravelOrderStatistics
>
{
public
boolean
StatisticsOfTravelOrders
()
{
public
boolean
StatisticsOfTravelOrders
()
{
try
{
try
{
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
HashMap
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
travelGmv
=
mapper
.
getTravelGmv
();
Map
<
String
,
Object
>
travelGmv
=
mapper
.
getTravelGmv
();
BigDecimal
travelPenalSum
=
mapper
.
getTravelPenalSum
();
BigDecimal
travelPenalSum
=
mapper
.
getTravelPenalSum
();
resultMap
.
putAll
(
travelGmv
);
resultMap
.
putAll
(
travelGmv
);
resultMap
.
put
(
"penalSum"
,
travelPenalSum
);
resultMap
.
put
(
"penalSum"
,
travelPenalSum
);
DailyTravelOrderStatistics
TravelStatistics
=
new
DailyTravelOrderStatistics
();
DailyTravelOrderStatistics
TravelStatistics
=
new
DailyTravelOrderStatistics
();
BeanUtils
.
copyProperties
(
TravelStatistics
,
resultMap
);
BeanUtils
.
copyProperties
(
TravelStatistics
,
resultMap
);
insertSelective
(
TravelStatistics
);
insertSelective
(
TravelStatistics
);
return
true
;
return
true
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
@@ -34,4 +37,10 @@ public class DailyTravelOrderStatisticsBiz extends BaseBiz<DailyTravelOrderStati
...
@@ -34,4 +37,10 @@ public class DailyTravelOrderStatisticsBiz extends BaseBiz<DailyTravelOrderStati
return
false
;
return
false
;
}
}
}
}
@Override
public
int
insertSelectiveRe
(
DailyTravelOrderStatistics
entity
)
{
entity
.
setCrtTime
(
new
Date
());
return
mapper
.
insertSelective
(
entity
);
}
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/DailyVehicleOrderStatisticsBiz.java
View file @
de962659
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
...
@@ -2,6 +2,7 @@ package com.xxfc.platform.order.biz;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.xxfc.platform.order.entity.DailyMembersOrderStatistics
;
import
com.xxfc.platform.order.entity.DailyVehicleOrderStatistics
;
import
com.xxfc.platform.order.entity.DailyVehicleOrderStatistics
;
import
com.xxfc.platform.order.mapper.DailyVehicleOrderStatisticsMapper
;
import
com.xxfc.platform.order.mapper.DailyVehicleOrderStatisticsMapper
;
import
com.xxfc.platform.order.pojo.DedDetailDTO
;
import
com.xxfc.platform.order.pojo.DedDetailDTO
;
...
@@ -12,10 +13,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -12,10 +13,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
org.springframework.transaction.interceptor.TransactionAspectSupport
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/** 每日租车订单统计
/** 每日租车订单统计
* @author Administrator
* @author Administrator
...
@@ -102,4 +100,12 @@ public class DailyVehicleOrderStatisticsBiz extends BaseBiz<DailyVehicleOrderSta
...
@@ -102,4 +100,12 @@ public class DailyVehicleOrderStatisticsBiz extends BaseBiz<DailyVehicleOrderSta
return
null
;
return
null
;
}
}
@Override
public
int
insertSelectiveRe
(
DailyVehicleOrderStatistics
entity
)
{
Date
date
=
new
Date
();
entity
.
setCrtTime
(
new
Date
());
return
mapper
.
insertSelective
(
entity
);
}
}
}
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/jobhandler/BaseOrderStatisticsJobHandler.java
View file @
de962659
...
@@ -28,17 +28,19 @@ public class BaseOrderStatisticsJobHandler extends IJobHandler {
...
@@ -28,17 +28,19 @@ 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
();
ReturnT
returnT
=
new
ReturnT
();
if
(
flag
)
{
//
if (flag) {
returnT
.
setCode
(
100
);
returnT
.
setCode
(
100
);
returnT
.
setMsg
(
"成功"
);
returnT
.
setMsg
(
"成功"
);
return
returnT
;
return
returnT
;
}
else
{
// }
returnT
.
setCode
(
500
);
returnT
.
setMsg
(
"失败"
);
// else {
return
returnT
;
// returnT.setCode(500);
}
// 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/resources/mapper/DepositRefundRecordMapper.xml
View file @
de962659
...
@@ -11,5 +11,6 @@
...
@@ -11,5 +11,6 @@
parameterType=
"java.lang.Integer"
>
parameterType=
"java.lang.Integer"
>
select * from deposit_refund_record
select * from deposit_refund_record
where crosstown_id = #{crossId} and isshow = 1
where crosstown_id = #{crossId} and isshow = 1
order by status
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/controller/CertificationController.java
View file @
de962659
...
@@ -12,6 +12,7 @@ import com.xxfc.platform.universal.biz.MQServiceBiZ;
...
@@ -12,6 +12,7 @@ import com.xxfc.platform.universal.biz.MQServiceBiZ;
import
com.xxfc.platform.universal.entity.IdInformation
;
import
com.xxfc.platform.universal.entity.IdInformation
;
import
com.xxfc.platform.universal.service.CertificationService
;
import
com.xxfc.platform.universal.service.CertificationService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.aop.framework.AopContext
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.beans.factory.annotation.Qualifier
;
import
org.springframework.core.task.TaskExecutor
;
import
org.springframework.core.task.TaskExecutor
;
...
@@ -21,6 +22,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
...
@@ -21,6 +22,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
/**
/**
...
@@ -46,9 +50,11 @@ public class CertificationController {
...
@@ -46,9 +50,11 @@ public class CertificationController {
private
TaskExecutor
executor
;
private
TaskExecutor
executor
;
@Autowired
@Autowired
MQServiceBiZ
mqServiceBiZ
;
private
MQServiceBiZ
mqServiceBiZ
;
private
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
/**
/**
* 实名认证
* 实名认证
* @param idInformation
* @param idInformation
...
@@ -90,13 +96,17 @@ public class CertificationController {
...
@@ -90,13 +96,17 @@ public class CertificationController {
if
(
type
!=
null
&&
type
==
0
){
if
(
type
!=
null
&&
type
==
0
){
ObjectRestResponse
<
Integer
>
result
=
certificationService
.
certificate
(
idInformation
);
ObjectRestResponse
<
Integer
>
result
=
certificationService
.
certificate
(
idInformation
);
if
(
result
.
getRel
())
{
if
(
result
.
getRel
())
{
Thread
thread
=
new
Thread
(
new
Runnable
()
{
CompletableFuture
.
supplyAsync
(()->{
@Override
setIntegral
(
appUserDTO
.
getUserid
(),
result
.
getData
());
public
void
run
()
{
return
null
;
setIntegral
(
appUserDTO
.
getUserid
(),
result
.
getData
());
},
executorService
);
}
// Thread thread = new Thread(new Runnable() {
});
// @Override
thread
.
start
();
// public void run() {
// setIntegral(appUserDTO.getUserid(),result.getData());
// }
// });
// thread.start();
}
}
return
result
;
return
result
;
}
}
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/TrafficViolationsService.java
View file @
de962659
...
@@ -23,6 +23,10 @@ import org.springframework.stereotype.Service;
...
@@ -23,6 +23,10 @@ import org.springframework.stereotype.Service;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.Executor
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.regex.Matcher
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
import
java.util.regex.Pattern
;
...
@@ -41,6 +45,8 @@ public class TrafficViolationsService {
...
@@ -41,6 +45,8 @@ public class TrafficViolationsService {
private
String
CODE
;
private
String
CODE
;
@Value
(
"${RETURN.TYPE}"
)
@Value
(
"${RETURN.TYPE}"
)
private
String
TYPE
;
private
String
TYPE
;
private
ExecutorService
executorService
=
Executors
.
newCachedThreadPool
();
/**
/**
* 下列参数,根据使用不同的公司的接口进行修改
* 下列参数,根据使用不同的公司的接口进行修改
*/
*/
...
@@ -190,6 +196,13 @@ public class TrafficViolationsService {
...
@@ -190,6 +196,13 @@ public class TrafficViolationsService {
List
<
LicensePlateType
>
finalLicensePlateTypes
=
licensePlateTypes
;
List
<
LicensePlateType
>
finalLicensePlateTypes
=
licensePlateTypes
;
CompletableFuture
.
supplyAsync
(()->{
insertLicensePlateType
(
finalLicensePlateTypes
);
return
null
;
},
executorService
);
Thread
thread
=
new
Thread
(
new
Runnable
()
{
Thread
thread
=
new
Thread
(
new
Runnable
()
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
...
...
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