记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
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
董敬伟
liquidnet-bus-v1
Commits
7f062c93
Commit
7f062c93
authored
Jun 30, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台快递
parent
5a77df95
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
81 deletions
+57
-81
PerformancesExpressController.java
...troller/zhengzai/kylin/PerformancesExpressController.java
+12
-24
performanceOrderList.html
...ngzai/kylin/performancesExpress/performanceOrderList.html
+4
-4
PerformancesExpressServiceImpl.java
...ai/kylin/service/impl/PerformancesExpressServiceImpl.java
+41
-53
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/java/com/liquidnet/client/admin/web/controller/zhengzai/kylin/PerformancesExpressController.java
View file @
7f062c93
...
@@ -108,13 +108,13 @@ public class PerformancesExpressController extends BaseController {
...
@@ -108,13 +108,13 @@ public class PerformancesExpressController extends BaseController {
}
}
/**
/**
*
订单运费估算
*
下单结果主动查询
*/
*/
@RequiresPermissions
(
"kylin:performancesExpress:get
Freigh
t"
)
@RequiresPermissions
(
"kylin:performancesExpress:get
Resul
t"
)
@PostMapping
(
"/get
Freigh
t"
)
@PostMapping
(
"/get
Resul
t"
)
@ResponseBody
@ResponseBody
public
AjaxResult
get
Freigh
t
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
public
AjaxResult
get
Resul
t
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
ResponseDto
res
=
performancesExpressServiceImpl
.
get
Freigh
t
(
performanceExpressSearchAdminParam
);
ResponseDto
res
=
performancesExpressServiceImpl
.
get
Resul
t
(
performanceExpressSearchAdminParam
);
try
{
try
{
if
(
res
.
isSuccess
())
{
if
(
res
.
isSuccess
())
{
return
success
();
return
success
();
...
@@ -127,13 +127,13 @@ public class PerformancesExpressController extends BaseController {
...
@@ -127,13 +127,13 @@ public class PerformancesExpressController extends BaseController {
}
}
/**
/**
*
下单结果主动查询
*
订单运费估算
*/
*/
@RequiresPermissions
(
"kylin:performancesExpress:get
Resul
t"
)
@RequiresPermissions
(
"kylin:performancesExpress:get
Freigh
t"
)
@PostMapping
(
"/get
Resul
t"
)
@PostMapping
(
"/get
Freigh
t"
)
@ResponseBody
@ResponseBody
public
AjaxResult
get
Resul
t
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
public
AjaxResult
get
Freigh
t
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
ResponseDto
res
=
performancesExpressServiceImpl
.
get
Resul
t
(
performanceExpressSearchAdminParam
);
ResponseDto
res
=
performancesExpressServiceImpl
.
get
Freigh
t
(
performanceExpressSearchAdminParam
);
try
{
try
{
if
(
res
.
isSuccess
())
{
if
(
res
.
isSuccess
())
{
return
success
();
return
success
();
...
@@ -146,7 +146,7 @@ public class PerformancesExpressController extends BaseController {
...
@@ -146,7 +146,7 @@ public class PerformancesExpressController extends BaseController {
}
}
/**
/**
* 运费主动查询
*
实际
运费主动查询
*/
*/
@RequiresPermissions
(
"kylin:performancesExpress:getListFreight"
)
@RequiresPermissions
(
"kylin:performancesExpress:getListFreight"
)
@PostMapping
(
"/getListFreight"
)
@PostMapping
(
"/getListFreight"
)
...
@@ -165,7 +165,7 @@ public class PerformancesExpressController extends BaseController {
...
@@ -165,7 +165,7 @@ public class PerformancesExpressController extends BaseController {
}
}
/**
/**
* 路由主动查询
* 路由
信息
主动查询
*/
*/
@RequiresPermissions
(
"kylin:performancesExpress:listOrderRoute"
)
@RequiresPermissions
(
"kylin:performancesExpress:listOrderRoute"
)
@PostMapping
(
"/listOrderRoute"
)
@PostMapping
(
"/listOrderRoute"
)
...
@@ -183,18 +183,6 @@ public class PerformancesExpressController extends BaseController {
...
@@ -183,18 +183,6 @@ public class PerformancesExpressController extends BaseController {
}
}
}
}
/**
* 订单状态推送
*/
/**
* 路由推送
*/
/**
* 清单运费推送
*/
/**
/**
* 预计派件时间
* 预计派件时间
*/
*/
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performancesExpress/performanceOrderList.html
View file @
7f062c93
...
@@ -147,10 +147,10 @@
...
@@ -147,10 +147,10 @@
var
actions
=
[];
var
actions
=
[];
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
placeOrderFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定下单吗?
\'
, table.options.placeOrderUrl)"></i>下单</a> '
);
actions
.
push
(
'<a class="btn btn-success btn-xs '
+
placeOrderFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定下单吗?
\'
, table.options.placeOrderUrl)"></i>下单</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
cancelOrderFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定取消快递单吗?
\'
, table.options.cancelOrderUrl)"></i>取消</a> '
);
actions
.
push
(
'<a class="btn btn-danger btn-xs '
+
cancelOrderFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定取消快递单吗?
\'
, table.options.cancelOrderUrl)"></i>取消</a> '
);
actions
.
push
(
'<a class="btn btn-
default
btn-xs '
+
getResultFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取快递信息吗?
\'
, table.options.getResultUrl)"></i>主动获取下单信息</a> '
);
actions
.
push
(
'<a class="btn btn-
success
btn-xs '
+
getResultFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取快递信息吗?
\'
, table.options.getResultUrl)"></i>主动获取下单信息</a> '
);
actions
.
push
(
'<a class="btn btn-
default
btn-xs '
+
getFreightFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取估算运费吗?
\'
, table.options.getFreightUrl)"></i>运费估算</a> '
);
actions
.
push
(
'<a class="btn btn-
success
btn-xs '
+
getFreightFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取估算运费吗?
\'
, table.options.getFreightUrl)"></i>运费估算</a> '
);
actions
.
push
(
'<a class="btn btn-
default
btn-xs '
+
getListFreightFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取运费信息吗?
\'
, table.options.getListFreightUrl)"></i>主动获取运费</a> '
);
actions
.
push
(
'<a class="btn btn-
success
btn-xs '
+
getListFreightFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取运费信息吗?
\'
, table.options.getListFreightUrl)"></i>主动获取运费</a> '
);
actions
.
push
(
'<a class="btn btn-
default
btn-xs '
+
listOrderRouteFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取路由信息吗?
\'
, table.options.listOrderRouteUrl)"></i>路由主动查询</a> '
);
actions
.
push
(
'<a class="btn btn-
success
btn-xs '
+
listOrderRouteFlag
+
'" href="javascript:void(0)" onclick="$.operate.remove(
\'
'
+
row
.
orderTicketsId
+
'
\'
,
\'
确定获取路由信息吗?
\'
, table.options.listOrderRouteUrl)"></i>路由主动查询</a> '
);
return
actions
.
join
(
''
);
return
actions
.
join
(
''
);
}
}
}]
}]
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/kylin/service/impl/PerformancesExpressServiceImpl.java
View file @
7f062c93
...
@@ -140,6 +140,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -140,6 +140,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
hBody
.
put
(
"jCity"
,
jCity
);
hBody
.
put
(
"jCity"
,
jCity
);
hBody
.
put
(
"jAddress"
,
jAddress
);
hBody
.
put
(
"jAddress"
,
jAddress
);
// TODO: 2021/6/30 前端选择
hBody
.
put
(
"payMethod"
,
0
);
// 运费付款方式:0-寄付月结;1-寄付现结;2-收方付;3-第三方付;
hBody
.
put
(
"payMethod"
,
0
);
// 运费付款方式:0-寄付月结;1-寄付现结;2-收方付;3-第三方付;
hBody
.
put
(
"expressType"
,
expressType
);
// 顺丰特快
hBody
.
put
(
"expressType"
,
expressType
);
// 顺丰特快
...
@@ -258,6 +259,46 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -258,6 +259,46 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
public
ResponseDto
getFreight
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
for
(
String
orderTicketsId
:
ids
)
{
KylinOrderExpress
orderExpressInfo
=
kylinOrderExpressMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderExpress
>().
eq
(
"order_tickets_id"
,
orderTicketsId
)
.
notIn
(
"express_status"
,
expressStatus
)
);
KylinOrderTickets
orderInfo
=
kylinOrderTicketsMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_tickets_id"
,
orderTicketsId
)
);
if
(
null
!=
orderExpressInfo
)
{
HashMap
<
String
,
Object
>
hBody
=
new
HashMap
<>();
hBody
.
put
(
"jProvince"
,
jProvince
);
hBody
.
put
(
"jCity"
,
jCity
);
hBody
.
put
(
"jAddress"
,
jAddress
);
hBody
.
put
(
"dProvince"
,
orderInfo
.
getProvince
());
hBody
.
put
(
"dCity"
,
orderInfo
.
getCity
());
hBody
.
put
(
"dAddress"
,
orderInfo
.
getExpressAddress
());
hBody
.
put
(
"expressType"
,
expressType
);
// hBody.put("parcelWeighs", 2.00);
// hBody.put("volume", "10,10,20");
// 生成签名并请求
String
result
=
shunfengSignUtils
.
generateSignatureAndRequest
(
hBody
,
"/public/order/v1/getFreight"
);
HashMap
hashMap
=
JsonUtils
.
fromJson
(
result
,
HashMap
.
class
);
System
.
out
.
println
(
result
);
if
(
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
String
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
return
ResponseDto
.
failure
(
msg
);
}
else
{
// TODO: 2021/6/30 储存金额
// {"result":{"deliverTime":"2021-07-01 18:00:00,2021-07-01 18:00:00","price":"23元","businessTypeDesc":"顺丰特快","businessType":"1"},"succ":"ok","msg":null}
}
}
}
return
ResponseDto
.
success
();
}
public
ResponseDto
getListFreight
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
public
ResponseDto
getListFreight
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
...
@@ -344,57 +385,4 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -344,57 +385,4 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return
ResponseDto
.
success
();
return
ResponseDto
.
success
();
}
}
public
ResponseDto
getFreight
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
for
(
String
orderTicketsId
:
ids
)
{
KylinOrderExpress
orderExpressInfo
=
kylinOrderExpressMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderExpress
>().
eq
(
"order_tickets_id"
,
orderTicketsId
)
.
notIn
(
"express_status"
,
expressStatus
)
);
KylinOrderTickets
orderInfo
=
kylinOrderTicketsMapper
.
selectOne
(
new
QueryWrapper
<
KylinOrderTickets
>().
eq
(
"order_tickets_id"
,
orderTicketsId
)
);
if
(
null
!=
orderExpressInfo
)
{
HashMap
<
String
,
Object
>
hBody
=
new
HashMap
<>();
hBody
.
put
(
"jProvince"
,
jProvince
);
hBody
.
put
(
"jCity"
,
jCity
);
hBody
.
put
(
"jAddress"
,
jAddress
);
hBody
.
put
(
"dProvince"
,
"北京市"
);
hBody
.
put
(
"dCity"
,
"北京城区"
);
hBody
.
put
(
"dAddress"
,
orderInfo
.
getExpressAddress
());
hBody
.
put
(
"expressType"
,
expressType
);
// hBody.put("parcelWeighs", 2.00);
// hBody.put("volume", "10,10,20");
// 生成签名并请求
String
result
=
shunfengSignUtils
.
generateSignatureAndRequest
(
hBody
,
"/public/order/v1/getFreight"
);
HashMap
hashMap
=
JsonUtils
.
fromJson
(
result
,
HashMap
.
class
);
System
.
out
.
println
(
result
);
if
(
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
String
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
return
ResponseDto
.
failure
(
msg
);
}
else
{
/*HashMap resultResult = (HashMap) hashMap.get("result");
List<HashMap> feeList = (List) resultResult.get("feeList");
if (!CollectionUtil.isEmpty(feeList)) {
for (HashMap feeInfo : feeList) {
KylinOrderExpressFeeInfo kylinOrderExpressFeeInfo = new KylinOrderExpressFeeInfo();
String orderExpressFeeInfoId = IDGenerator.nextSnowId();
kylinOrderExpressFeeInfo.setOrderExpressFeeInfoId(orderExpressFeeInfoId);
kylinOrderExpressFeeInfo.setOrderExpressId(orderExpressInfo.getOrderExpressId());
kylinOrderExpressFeeInfo.setType((String) feeInfo.get("type"));
kylinOrderExpressFeeInfo.setName((String) feeInfo.get("name"));
kylinOrderExpressFeeInfo.setValue(new BigDecimal(feeInfo.get("value").toString()));
kylinOrderExpressFeeInfo.setCreatedAt(DateUtil.getNowTime());
kylinOrderExpressFeeInfoMapper.insert(kylinOrderExpressFeeInfo);
}
}*/
}
}
}
return
ResponseDto
.
success
();
}
}
}
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