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
65538619
Commit
65538619
authored
Sep 04, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into base-modify
parents
2d78b8a3
143fb12a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
60 additions
and
31 deletions
+60
-31
.gitignore
.gitignore
+2
-4
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+0
-1
OrderDepositRefundRecordBiz.java
.../xxfc/platform/order/biz/OrderDepositRefundRecordBiz.java
+4
-2
OrderMsgBiz.java
...n/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
+5
-1
AliYunSmsBiz.java
...in/java/com/xxfc/platform/universal/biz/AliYunSmsBiz.java
+1
-1
SmsService.java
.../java/com/xxfc/platform/universal/service/SmsService.java
+42
-17
VehicleBiz.java
...c/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
+4
-4
BranchCompanyMapper.xml
...-server/src/main/resources/mapper/BranchCompanyMapper.xml
+2
-1
No files found.
.gitignore
View file @
65538619
...
@@ -7,8 +7,6 @@ target/
...
@@ -7,8 +7,6 @@ target/
.settings/
.settings/
.classpath
.classpath
ace-modules/ace-tool/src/main/resources/application-dev.yml
ace-modules/ace-tool/src/main/resources/application-dev.yml
/src/main/test/**
**/logs
logs/**
**/src/test
xx-order/xx-order-server/logs/**
*.log
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
65538619
...
@@ -123,7 +123,6 @@ public class MsgBiz {
...
@@ -123,7 +123,6 @@ public class MsgBiz {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
public
ObjectRestResponse
getMsgListByUserId
(
Integer
page
,
Integer
limit
)
{
public
ObjectRestResponse
getMsgListByUserId
(
Integer
page
,
Integer
limit
)
{
//获取所有朋友圈
//获取所有朋友圈
page
=
page
==
null
?
1
:
page
;
page
=
page
==
null
?
1
:
page
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/OrderDepositRefundRecordBiz.java
View file @
65538619
...
@@ -115,8 +115,10 @@ public class OrderDepositRefundRecordBiz extends BaseBiz<DepositRefundRecordMapp
...
@@ -115,8 +115,10 @@ public class OrderDepositRefundRecordBiz extends BaseBiz<DepositRefundRecordMapp
if
(
depositRefundRecord
.
getStatus
()
==
DepositRefundStatus
.
VIOLATIONARRIVAL
.
getCode
())
{
if
(
depositRefundRecord
.
getStatus
()
==
DepositRefundStatus
.
VIOLATIONARRIVAL
.
getCode
())
{
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
());
depositRefundRecord
.
setRentDepositAutoRefundTime
(
depositRefundRecord
.
getCrtTime
()
+
(
rentDepositAutoRefundTime
==
null
?
0
:
rentDepositAutoRefundTime
*
60
*
60
*
1000
));
if
(
rentDepositAutoRefundTime
!=
null
)
{
Long
time
=
Long
.
parseLong
(
rentDepositAutoRefundTime
+
""
);
depositRefundRecord
.
setRentDepositAutoRefundTime
(
depositRefundRecord
.
getCrtTime
()
+
time
*
60
*
60
*
1000
);
}
}
}
}
}
return
list
;
return
list
;
...
...
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
View file @
65538619
...
@@ -307,7 +307,10 @@ public class OrderMsgBiz {
...
@@ -307,7 +307,10 @@ public class OrderMsgBiz {
//发送用户取消消息
//发送用户取消消息
sms2AppUser
(
startCompanyDetail
,
endCompanyDetail
,
orvd
,
otd
,
omd
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
sms2AppUser
(
startCompanyDetail
,
endCompanyDetail
,
orvd
,
otd
,
omd
,
baseOrder
,
appUserDTO
,
smstype
,
smsParams
);
//sms2RefundAppUser(BigDecimal.ZERO, orderRefund.getDeductAmount(), depositOrderRefund.getRefundAmount().add(orderRefund.getRefundAmount()), BigDecimal.ZERO, baseOrder, appUserDTO, smstype, smsParams);
//发送用户退款消息
// smsParams.clear();
// sms2RefundAppUser(BigDecimal.ZERO, orderRefund.getDeductAmount(), depositOrderRefund.getRefundAmount().add(orderRefund.getRefundAmount()), BigDecimal.ZERO, baseOrder, appUserDTO, smstype, smsParams);
//后台发送消息(出车人)
//后台发送消息(出车人)
smsParams
.
clear
();
smsParams
.
clear
();
...
@@ -479,6 +482,7 @@ public class OrderMsgBiz {
...
@@ -479,6 +482,7 @@ public class OrderMsgBiz {
smsParams
.
add
(
startCompanyDetail
.
detailAddr
());
smsParams
.
add
(
startCompanyDetail
.
detailAddr
());
break
;
break
;
case
SmsTemplateDTO
.
PAY_B
:
case
SmsTemplateDTO
.
PAY_B
:
smsParams
.
add
(
appUserDTO
.
getRealname
());
smsParams
.
add
(
orvd
.
getFreeDays
().
toString
());
smsParams
.
add
(
orvd
.
getFreeDays
().
toString
());
smsParams
.
add
(
appUserDTO
.
getRentFreeDays
().
toString
());
smsParams
.
add
(
appUserDTO
.
getRentFreeDays
().
toString
());
smsParams
.
add
(
baseOrder
.
getRealAmount
().
toString
());
smsParams
.
add
(
baseOrder
.
getRealAmount
().
toString
());
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/biz/AliYunSmsBiz.java
View file @
65538619
...
@@ -125,7 +125,7 @@ public class AliYunSmsBiz {
...
@@ -125,7 +125,7 @@ public class AliYunSmsBiz {
SmsService
.
sendTemplateToJson
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_D
);
SmsService
.
sendTemplateToJson
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_D
);
break
;
break
;
case
14
:
case
14
:
SmsService
.
sendTemplateToJson
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_E
);
SmsService
.
sendTemplateToJson
14
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_E
);
break
;
break
;
case
15
:
case
15
:
SmsService
.
sendTemplateToJson
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_F
);
SmsService
.
sendTemplateToJson
(
phoneNumbers
,
params
,
TEMPLATE_ID_PAY_F
);
...
...
xx-universal/xx-universal-server/src/main/java/com/xxfc/platform/universal/service/SmsService.java
View file @
65538619
...
@@ -178,7 +178,7 @@ public class SmsService {
...
@@ -178,7 +178,7 @@ public class SmsService {
//request.setOutId("yourOutId");
//request.setOutId("yourOutId");
//hint 此处可能会抛出异常,注意catch
//hint 此处可能会抛出异常,注意catch
SendSmsResponse
sendSmsResponse
=
acsClient
.
getAcsResponse
(
request
);
SendSmsResponse
sendSmsResponse
=
acsClient
.
getAcsResponse
(
request
);
log
.
info
(
"短信接口返回的数据--
------
--------mobile======"
+
PhoneNumbers
+
"----templateParam===="
+
params
);
log
.
info
(
"短信接口返回的数据--
templateCode===="
+
templateCode
+
"
--------mobile======"
+
PhoneNumbers
+
"----templateParam===="
+
params
);
log
.
info
(
"Code="
+
sendSmsResponse
.
getCode
());
log
.
info
(
"Code="
+
sendSmsResponse
.
getCode
());
log
.
info
(
"Message="
+
sendSmsResponse
.
getMessage
());
log
.
info
(
"Message="
+
sendSmsResponse
.
getMessage
());
log
.
info
(
"RequestId="
+
sendSmsResponse
.
getRequestId
());
log
.
info
(
"RequestId="
+
sendSmsResponse
.
getRequestId
());
...
@@ -192,22 +192,47 @@ public class SmsService {
...
@@ -192,22 +192,47 @@ public class SmsService {
}
}
public
static
void
sendTemplateToJson
(
String
PhoneNumbers
,
String
[]
params
,
String
templateCode
){
public
static
void
sendTemplateToJson
(
String
PhoneNumbers
,
String
[]
params
,
String
templateCode
){
try
{
try
{
JSONObject
jsonParams
=
new
JSONObject
();
JSONObject
jsonParams
=
new
JSONObject
();
for
(
int
i
=
0
;
i
<
params
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
params
.
length
;
i
++){
String
para
=
params
[
i
];
String
para
=
params
[
i
];
if
(
para
.
contains
(
"【"
)){
if
(
para
.
contains
(
"【"
)){
para
=
para
.
replaceAll
(
"【"
,
""
);
para
=
para
.
replaceAll
(
"【"
,
""
);
}
}
if
(
para
.
contains
(
"】"
)){
if
(
para
.
contains
(
"】"
)){
para
=
para
.
replaceAll
(
"】"
,
""
);
para
=
para
.
replaceAll
(
"】"
,
""
);
}
}
jsonParams
.
put
(
param
+(
i
+
1
),
para
);
jsonParams
.
put
(
param
+(
i
+
1
),
para
);
}
}
sendTemplate
(
PhoneNumbers
,
jsonParams
.
toJSONString
(),
templateCode
);
sendTemplate
(
PhoneNumbers
,
jsonParams
.
toJSONString
(),
templateCode
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
public
static
void
sendTemplateToJson14
(
String
PhoneNumbers
,
String
[]
params
,
String
templateCode
){
try
{
JSONObject
jsonParams
=
new
JSONObject
();
for
(
int
i
=
0
;
i
<
params
.
length
;
i
++){
String
para
=
params
[
i
];
if
(
para
.
contains
(
"【"
)){
para
=
para
.
replaceAll
(
"【"
,
""
);
}
if
(
para
.
contains
(
"】"
)){
para
=
para
.
replaceAll
(
"】"
,
""
);
}
if
(
i
>
3
){
jsonParams
.
put
(
param
+(
i
+
2
),
para
);
}
else
{
jsonParams
.
put
(
param
+(
i
+
1
),
para
);
}
}
sendTemplate
(
PhoneNumbers
,
jsonParams
.
toJSONString
(),
templateCode
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleBiz.java
View file @
65538619
...
@@ -639,10 +639,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
...
@@ -639,10 +639,10 @@ public class VehicleBiz extends BaseBiz<VehicleMapper, Vehicle> implements UserR
if
(
vehicleBookRecord
==
null
)
{
if
(
vehicleBookRecord
==
null
)
{
return
RestResponse
.
codeAndMessage
(
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getCode
(),
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getDesc
());
return
RestResponse
.
codeAndMessage
(
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getCode
(),
ResCode
.
VEHICLE_BOOK_RECORD_IS_NOT_EXIST
.
getDesc
());
}
}
//已通过审核的可以取消预定
//
//已通过审核的可以取消预定
if
(!
VehicleBookRecordStatus
.
APPROVE
.
getCode
().
equals
(
vehicleBookRecord
.
getStatus
()))
{
//
if (!VehicleBookRecordStatus.APPROVE.getCode().equals(vehicleBookRecord.getStatus())) {
return
RestResponse
.
code
(
ResCode
.
VEHICLE_BOOKED_RECORD_ALREADY_CHANGED
.
getCode
());
//
return RestResponse.code(ResCode.VEHICLE_BOOKED_RECORD_ALREADY_CHANGED.getCode());
}
//
}
//转换为相应取消预定参数
//转换为相应取消预定参数
BookVehicleVO
bookVehicleVo
=
new
BookVehicleVO
();
BookVehicleVO
bookVehicleVo
=
new
BookVehicleVO
();
BeanUtils
.
copyProperties
(
bookVehicleVo
,
vehicleBookRecord
);
BeanUtils
.
copyProperties
(
bookVehicleVo
,
vehicleBookRecord
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
65538619
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<result
column=
"longitude"
property=
"longitude"
/>
<result
column=
"longitude"
property=
"longitude"
/>
<result
column=
"latitude"
property=
"latitude"
/>
<result
column=
"latitude"
property=
"latitude"
/>
<result
column=
"zone_id"
property=
"zoneId"
/>
<result
column=
"zone_id"
property=
"zoneId"
/>
<result
column=
"state"
property=
"state"
/>
</resultMap>
</resultMap>
<select
id=
"search"
resultType=
"com.xxfc.platform.vehicle.pojo.CompanySearchVO"
>
<select
id=
"search"
resultType=
"com.xxfc.platform.vehicle.pojo.CompanySearchVO"
>
...
@@ -69,7 +70,7 @@
...
@@ -69,7 +70,7 @@
bc.longitude,
bc.longitude,
bc.latitude
bc.latitude
FROM
FROM
(SELECT * FROM `branch_company` WHERE `is_del`=0) AS `bc`
(SELECT * FROM `branch_company` WHERE `is_del`=0
AND `state`=1
) AS `bc`
INNER JOIN (SELECT * FROM `company_base` WHERE `is_del`=0
INNER JOIN (SELECT * FROM `company_base` WHERE `is_del`=0
<if
test=
"provinceCode != null"
>
<if
test=
"provinceCode != null"
>
AND `addr_province`=#{provinceCode}
AND `addr_province`=#{provinceCode}
...
...
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