记得上下班打卡 | 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
fbb9fe44
Commit
fbb9fe44
authored
Jun 30, 2021
by
胡佳晨
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
795a1287
898475b7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
70 additions
and
84 deletions
+70
-84
db_liquidnet_admin_data.sql
...quidnet-client-admin-web/docu/db_liquidnet_admin_data.sql
+10
-0
PerformancesExpressController.java
...troller/zhengzai/kylin/PerformancesExpressController.java
+12
-24
SwaggerConfig.java
...liquidnet/client/admin/web/core/config/SwaggerConfig.java
+3
-3
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/docu/db_liquidnet_admin_data.sql
View file @
fbb9fe44
...
@@ -33,6 +33,16 @@ INSERT INTO test_ln_scene.sys_menu (menu_id, menu_name, parent_id, order_num, ur
...
@@ -33,6 +33,16 @@ INSERT INTO test_ln_scene.sys_menu (menu_id, menu_name, parent_id, order_num, ur
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2029
,
'编辑'
,
2027
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:banners:update'
,
'#'
,
'admin'
,
'2021-06-07 20:05:58'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2029
,
'编辑'
,
2027
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:banners:update'
,
'#'
,
'admin'
,
'2021-06-07 20:05:58'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2031
,
'删除'
,
2027
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:banners:delete'
,
'#'
,
'admin'
,
'2021-06-07 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2031
,
'删除'
,
2027
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:banners:delete'
,
'#'
,
'admin'
,
'2021-06-07 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2032
,
'快递管理'
,
2000
,
4
,
'#'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:performancesExpress:view'
,
'#'
,
'admin'
,
'2021-06-30 20:01:36'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2033
,
'演出快递列表'
,
2032
,
0
,
'/kylin/performancesExpress'
,
'menuItem'
,
'C'
,
'0'
,
'1'
,
'kylin:performancesExpress:list'
,
'#'
,
'admin'
,
'2021-06-30 20:03:59'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2034
,
'查看演出订单'
,
2033
,
0
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:performanceOrderList'
,
'#'
,
'admin'
,
'2021-06-30 20:05:33'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2035
,
'下单'
,
2034
,
1
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:placeOrder'
,
'#'
,
'admin'
,
'2021-06-30 20:05:58'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2036
,
'取消'
,
2034
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:cancelOrder'
,
'#'
,
'admin'
,
'2021-06-30 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2037
,
'下单结果主动查询'
,
2034
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:getResult'
,
'#'
,
'admin'
,
'2021-06-30 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2038
,
'运费估算'
,
2034
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:getFreight'
,
'#'
,
'admin'
,
'2021-06-30 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2039
,
'实际运费主动查询'
,
2034
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:getListFreight'
,
'#'
,
'admin'
,
'2021-06-30 20:07:07'
,
''
,
null
,
''
);
INSERT
INTO
test_ln_scene
.
sys_menu
(
menu_id
,
menu_name
,
parent_id
,
order_num
,
url
,
target
,
menu_type
,
visible
,
is_refresh
,
perms
,
icon
,
create_by
,
create_time
,
update_by
,
update_time
,
remark
)
VALUES
(
2040
,
'路由信息主动查询'
,
2034
,
2
,
'#'
,
'menuItem'
,
'F'
,
'0'
,
'1'
,
'kylin:performancesExpress:listOrderRoute'
,
'#'
,
'admin'
,
'2021-06-30 20:07:07'
,
''
,
null
,
''
);
-- sys_role_menu
-- sys_role_menu
INSERT
INTO
test_ln_scene
.
sys_role_menu
(
role_id
,
menu_id
)
VALUES
(
2
,
2000
);
INSERT
INTO
test_ln_scene
.
sys_role_menu
(
role_id
,
menu_id
)
VALUES
(
2
,
2000
);
INSERT
INTO
test_ln_scene
.
sys_role_menu
(
role_id
,
menu_id
)
VALUES
(
2
,
2001
);
INSERT
INTO
test_ln_scene
.
sys_role_menu
(
role_id
,
menu_id
)
VALUES
(
2
,
2001
);
...
...
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 @
fbb9fe44
...
@@ -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/java/com/liquidnet/client/admin/web/core/config/SwaggerConfig.java
View file @
fbb9fe44
...
@@ -57,13 +57,13 @@ public class SwaggerConfig
...
@@ -57,13 +57,13 @@ public class SwaggerConfig
// 用ApiInfoBuilder进行定制
// 用ApiInfoBuilder进行定制
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
// 设置标题
// 设置标题
.
title
(
"
标题:正在映画管理系统_
接口文档"
)
.
title
(
"
正在映画管理系统
接口文档"
)
// 描述
// 描述
.
description
(
"
描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块
..."
)
.
description
(
"
用于管理集团旗下公司的业务信息
..."
)
// 作者信息
// 作者信息
.
contact
(
new
Contact
(
RuoYiConfig
.
getName
(),
null
,
null
))
.
contact
(
new
Contact
(
RuoYiConfig
.
getName
(),
null
,
null
))
// 版本
// 版本
.
version
(
"版本号:"
+
RuoYiConfig
.
getVersion
())
//
.version("版本号:" + RuoYiConfig.getVersion())
.
build
();
.
build
();
}
}
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performancesExpress/performanceOrderList.html
View file @
fbb9fe44
...
@@ -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 @
fbb9fe44
...
@@ -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