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
648f42c3
Commit
648f42c3
authored
Sep 03, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into jrz_dev
parents
a8a69c09
1854bb59
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
83 additions
and
20 deletions
+83
-20
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
CompanyBaseBiz.java
...in/java/com/xxfc/platform/vehicle/biz/CompanyBaseBiz.java
+28
-0
CompanyController.java
...m/xxfc/platform/vehicle/rest/admin/CompanyController.java
+6
-0
CompanyBaseMapper.xml
...le-server/src/main/resources/mapper/CompanyBaseMapper.xml
+1
-1
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/inner/OrderMsgBiz.java
View file @
648f42c3
...
@@ -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 @
648f42c3
...
@@ -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 @
648f42c3
...
@@ -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/CompanyBaseBiz.java
View file @
648f42c3
...
@@ -116,6 +116,34 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
...
@@ -116,6 +116,34 @@ public class CompanyBaseBiz extends BaseBiz<CompanyBaseMapper, CompanyBase> {
return
ObjectRestResponse
.
succ
();
return
ObjectRestResponse
.
succ
();
}
}
//临时数据同步3
public
ObjectRestResponse
synchro3
(){
List
<
BranchCompanyStockInfo
>
list
=
stockInfoMapper
.
selectAll
();
if
(
list
.
size
()>
0
){
int
num
=
0
;
for
(
BranchCompanyStockInfo
companyStockInfo:
list
){
Integer
id
=
companyStockInfo
.
getId
();
Integer
balance
=
companyStockInfo
.
getBalance
();
Integer
total
=
companyStockInfo
.
getTotal
();
BigDecimal
price
=
companyStockInfo
.
getPrice
();
Integer
state
=
companyStockInfo
.
getState
();
BranchCompanyStockRight
branchCompanyStockRight
=
stockRightBiz
.
selectById
(
id
);
if
(
branchCompanyStockRight
!=
null
){
branchCompanyStockRight
=
new
BranchCompanyStockRight
();
branchCompanyStockRight
.
setId
(
id
);
branchCompanyStockRight
.
setBalance
(
balance
);
branchCompanyStockRight
.
setStockState
(
state
);
branchCompanyStockRight
.
setTotal
(
total
);
branchCompanyStockRight
.
setPrice
(
price
);
stockRightBiz
.
updateSelectiveById
(
branchCompanyStockRight
);
num
++;
}
log
.
info
(
"----成功---num=="
+
num
+
"---id==="
+
id
);
}
}
return
ObjectRestResponse
.
succ
();
}
//设置基础信息
//设置基础信息
public
ObjectRestResponse
updCompany
(
CompanyVo
companyVo
){
public
ObjectRestResponse
updCompany
(
CompanyVo
companyVo
){
if
(
companyVo
==
null
||
StringUtils
.
isBlank
(
companyVo
.
getCompanyName
())||
StringUtils
.
isBlank
(
companyVo
.
getName
())||
if
(
companyVo
==
null
||
StringUtils
.
isBlank
(
companyVo
.
getCompanyName
())||
StringUtils
.
isBlank
(
companyVo
.
getName
())||
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/CompanyController.java
View file @
648f42c3
...
@@ -31,6 +31,12 @@ public class CompanyController extends BaseController<CompanyBaseBiz> {
...
@@ -31,6 +31,12 @@ public class CompanyController extends BaseController<CompanyBaseBiz> {
return
baseBiz
.
synchro2
();
return
baseBiz
.
synchro2
();
}
}
@ApiOperation
(
"同步股权3"
)
@PostMapping
(
"synchro3"
)
public
ObjectRestResponse
<
String
>
synchro3
()
{
return
baseBiz
.
synchro3
();
}
@ApiOperation
(
"查询公司列表"
)
@ApiOperation
(
"查询公司列表"
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/list"
,
method
=
RequestMethod
.
GET
)
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/CompanyBaseMapper.xml
View file @
648f42c3
...
@@ -53,6 +53,6 @@
...
@@ -53,6 +53,6 @@
and (b.`name` like CONCAT('%',#{name},'%') or c.`name` like CONCAT('%',#{name},'%') )
and (b.`name` like CONCAT('%',#{name},'%') or c.`name` like CONCAT('%',#{name},'%') )
</if>
</if>
</where>
</where>
order by b.
id
desc
order by b.
upd_time
desc
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
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