记得上下班打卡 | 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
12a397e1
Commit
12a397e1
authored
Jul 22, 2021
by
jiangxiulong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单订单的批量
parent
b5814eda
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
11 deletions
+45
-11
ry-ui.js
...ent-admin-web/src/main/resources/static/ruoyi/js/ry-ui.js
+7
-3
performanceOrderList.html
...ngzai/kylin/performancesExpress/performanceOrderList.html
+20
-5
PerformancesExpressServiceImpl.java
...ai/kylin/service/impl/PerformancesExpressServiceImpl.java
+17
-3
KylinOrderExpressMapper.xml
...iquidnet.service.kylin.mapper/KylinOrderExpressMapper.xml
+1
-0
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
12a397e1
...
@@ -1037,9 +1037,13 @@ var table = {
...
@@ -1037,9 +1037,13 @@ var table = {
});
});
},
},
// 批量删除信息
// 批量删除信息
removeAll
:
function
(
message
,
url
)
{
removeAll
:
function
(
message
,
url
,
uniqueId
)
{
table
.
set
();
table
.
set
();
if
(
uniqueId
)
{
var
rows
=
$
.
table
.
selectColumns
(
uniqueId
);
}
else
{
var
rows
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
var
rows
=
$
.
common
.
isEmpty
(
table
.
options
.
uniqueId
)
?
$
.
table
.
selectFirstColumns
()
:
$
.
table
.
selectColumns
(
table
.
options
.
uniqueId
);
}
message
=
message
??
"确认要删除选中的"
+
rows
.
length
+
"条数据吗?"
;
message
=
message
??
"确认要删除选中的"
+
rows
.
length
+
"条数据吗?"
;
if
(
rows
.
length
==
0
)
{
if
(
rows
.
length
==
0
)
{
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
$
.
modal
.
alertWarning
(
"请至少选择一条记录"
);
...
...
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/kylin/performancesExpress/performanceOrderList.html
View file @
12a397e1
...
@@ -61,6 +61,21 @@
...
@@ -61,6 +61,21 @@
</form>
</form>
</div>
</div>
<div
class=
"btn-group-sm"
id=
"toolbar"
role=
"group"
>
<a
class=
"btn btn-success multiple disabled"
onclick=
"$.operate.removeAll('确定下单吗?', '/kylin/performancesExpress/placeOrder')"
shiro:hasPermission=
"kylin:performancesExpress:placeOrder"
>
批量下单
</a>
<a
class=
"btn btn-danger multiple disabled"
onclick=
"$.operate.removeAll('确定取消吗?', '/kylin/performancesExpress/cancelOrder', 'orderExpressId')"
shiro:hasPermission=
"kylin:performancesExpress:cancelOrder"
>
批量取消
</a>
<a
class=
"btn btn-info multiple disabled"
onclick=
"$.operate.removeAll('确定打印吗?', '/kylin/performancesExpress/printExpress', 'orderExpressId')"
shiro:hasPermission=
"kylin:performancesExpress:printExpress"
>
批量打印
</a>
</div>
<div
class=
"col-sm-12 select-table table-bordered"
>
<div
class=
"col-sm-12 select-table table-bordered"
>
<table
id=
"bootstrap-table"
></table>
<table
id=
"bootstrap-table"
></table>
</div>
</div>
...
@@ -324,15 +339,15 @@
...
@@ -324,15 +339,15 @@
generateImageUrl
:
prefix
+
"/generateImage"
,
generateImageUrl
:
prefix
+
"/generateImage"
,
columns
:
[{
columns
:
[{
checkbox
:
true
checkbox
:
true
},
{
field
:
'orderExpressId'
,
title
:
'快递ID'
},
},
{
{
field
:
'orderTicketsId'
,
field
:
'orderTicketsId'
,
title
:
'订单ID'
title
:
'订单ID'
},
},
{
field
:
'orderExpressId'
,
title
:
'快递ID'
},
{
{
field
:
'orderCode'
,
field
:
'orderCode'
,
title
:
'订单编号'
title
:
'订单编号'
...
@@ -426,7 +441,7 @@
...
@@ -426,7 +441,7 @@
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.orderExpressId + '
\
',
\
'确定取消快递单吗?
\
', table.options.cancelOrderUrl)"
><
/i>取消</
a
>
');
actions.push('
<
a
class
=
"btn btn-danger btn-xs ' + cancelOrderFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定取消快递单吗?
\
', table.options.cancelOrderUrl)"
><
/i>取消</
a
>
');
// actions.push('
<
a
class
=
"btn btn-warning btn-xs ' + generateImageFlag + '"
href
=
"javascript:void(0)"
onclick
=
"generateImage(
\
'' + row.orderExpressId + '
\
',)"
><
/i>下载快递单</
a
>
');
// actions.push('
<
a
class
=
"btn btn-warning btn-xs ' + generateImageFlag + '"
href
=
"javascript:void(0)"
onclick
=
"generateImage(
\
'' + row.orderExpressId + '
\
',)"
><
/i>下载快递单</
a
>
');
actions.push('
<
a
class
=
"btn btn-
warning
btn-xs ' + printExpressFlag + '"
href
=
"javascript:void(0)"
onclick
=
"printExpress(
\
'' + row.orderExpressId + '
\
',)"
><
/i>打印快递单</
a
>
');
actions.push('
<
a
class
=
"btn btn-
info
btn-xs ' + printExpressFlag + '"
href
=
"javascript:void(0)"
onclick
=
"printExpress(
\
'' + row.orderExpressId + '
\
',)"
><
/i>打印快递单</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getResultFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取快递信息吗?
\
', table.options.getResultUrl)"
><
/i>主动获取下单信息</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getResultFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取快递信息吗?
\
', table.options.getResultUrl)"
><
/i>主动获取下单信息</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getFreightFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取估算运费吗?
\
', table.options.getFreightUrl)"
><
/i>运费估算</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getFreightFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取估算运费吗?
\
', table.options.getFreightUrl)"
><
/i>运费估算</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getListFreightFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取运费信息吗?
\
', table.options.getListFreightUrl)"
><
/i>主动获取运费</
a
>
');
// actions.push('
<
a
class
=
"btn btn-success btn-xs ' + getListFreightFlag + '"
href
=
"javascript:void(0)"
onclick
=
"$.operate.remove(
\
'' + row.orderExpressId + '
\
',
\
'确定获取运费信息吗?
\
', table.options.getListFreightUrl)"
><
/i>主动获取运费</
a
>
');
...
...
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 @
12a397e1
...
@@ -141,6 +141,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -141,6 +141,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
public
ResponseDto
placeOrder
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
public
ResponseDto
placeOrder
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
Integer
idCount
=
ids
.
size
();
for
(
String
orderTicketsId
:
ids
)
{
for
(
String
orderTicketsId
:
ids
)
{
// 已经存在未取消的下单数据过滤掉
// 已经存在未取消的下单数据过滤掉
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
Integer
[]
expressStatus
=
{
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS1
,
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
};
...
@@ -161,8 +162,12 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -161,8 +162,12 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
Wrappers
.
lambdaQuery
(
KylinOrderTicketRelations
.
class
).
eq
(
KylinOrderTicketRelations:
:
getOrderId
,
orderTicketsId
)
Wrappers
.
lambdaQuery
(
KylinOrderTicketRelations
.
class
).
eq
(
KylinOrderTicketRelations:
:
getOrderId
,
orderTicketsId
)
);
);
if
(
orderStatus
.
getStatus
()
!=
KylinTableStatusConst
.
ORDER_STATUS1
&&
orderStatus
.
getStatus
()
!=
KylinTableStatusConst
.
ORDER_STATUS6
)
{
if
(
orderStatus
.
getStatus
()
!=
KylinTableStatusConst
.
ORDER_STATUS1
&&
orderStatus
.
getStatus
()
!=
KylinTableStatusConst
.
ORDER_STATUS6
)
{
if
(
idCount
>
1
)
{
continue
;
}
else
{
return
ResponseDto
.
failure
(
"当前状态不能下单"
);
return
ResponseDto
.
failure
(
"当前状态不能下单"
);
}
}
}
// 生成预快递单 防止因失败没办法再次发起也不能主动获取数据
// 生成预快递单 防止因失败没办法再次发起也不能主动获取数据
KylinOrderExpress
kylinOrderExpressPre
=
new
KylinOrderExpress
();
KylinOrderExpress
kylinOrderExpressPre
=
new
KylinOrderExpress
();
String
orderExpressId
=
IDGenerator
.
nextSnowId
();
String
orderExpressId
=
IDGenerator
.
nextSnowId
();
...
@@ -217,7 +222,11 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -217,7 +222,11 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
}
else
{
}
else
{
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
}
}
if
(
idCount
>
1
)
{
continue
;
}
else
{
return
ResponseDto
.
failure
(
msg
);
return
ResponseDto
.
failure
(
msg
);
}
}
else
{
}
else
{
HashMap
hashMapResult
=
(
HashMap
)
hashMap
.
get
(
"result"
);
HashMap
hashMapResult
=
(
HashMap
)
hashMap
.
get
(
"result"
);
KylinOrderExpress
kylinOrderExpress
=
new
KylinOrderExpress
();
KylinOrderExpress
kylinOrderExpress
=
new
KylinOrderExpress
();
...
@@ -299,6 +308,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -299,6 +308,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
public
ResponseDto
cancelOrder
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
public
ResponseDto
cancelOrder
(
PerformanceExpressSearchAdminParam
performanceExpressSearchAdminParam
)
{
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
List
<
String
>
ids
=
performanceExpressSearchAdminParam
.
getIds
();
Integer
idCount
=
ids
.
size
();
for
(
String
orderExpressId
:
ids
)
{
for
(
String
orderExpressId
:
ids
)
{
KylinOrderExpress
orderExpressInfo
=
kylinOrderExpressMapper
.
selectOne
(
KylinOrderExpress
orderExpressInfo
=
kylinOrderExpressMapper
.
selectOne
(
Wrappers
.
lambdaQuery
(
KylinOrderExpress
.
class
).
eq
(
KylinOrderExpress:
:
getOrderExpressId
,
orderExpressId
)
Wrappers
.
lambdaQuery
(
KylinOrderExpress
.
class
).
eq
(
KylinOrderExpress:
:
getOrderExpressId
,
orderExpressId
)
...
@@ -313,7 +323,11 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
...
@@ -313,7 +323,11 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
HashMap
hashMap
=
JsonUtils
.
fromJson
(
result
,
HashMap
.
class
);
HashMap
hashMap
=
JsonUtils
.
fromJson
(
result
,
HashMap
.
class
);
if
(
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
if
(
hashMap
.
get
(
"succ"
).
equals
(
"fail"
))
{
String
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
String
msg
=
(
String
)
hashMap
.
get
(
"msg"
);
if
(
idCount
>
1
)
{
continue
;
}
else
{
return
ResponseDto
.
failure
(
msg
);
return
ResponseDto
.
failure
(
msg
);
}
}
else
{
}
else
{
KylinOrderExpress
kylinOrderExpress
=
new
KylinOrderExpress
();
KylinOrderExpress
kylinOrderExpress
=
new
KylinOrderExpress
();
kylinOrderExpress
.
setExpressStatus
(
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
);
kylinOrderExpress
.
setExpressStatus
(
KylinTableStatusConst
.
ORDER_EXPRESS_STATUS3
);
...
...
liquidnet-bus-do/liquidnet-service-kylin-do/src/main/resources/com.liquidnet.service.kylin.mapper/KylinOrderExpressMapper.xml
View file @
12a397e1
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
<foreach
collection=
"ids"
item=
"orderExpressId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"ids"
item=
"orderExpressId"
index=
"index"
open=
"("
close=
")"
separator=
","
>
${orderExpressId}
${orderExpressId}
</foreach>
</foreach>
AND express_status NOT IN (1, 3)
</where>
</where>
ORDER BY a.mid DESC
ORDER BY a.mid DESC
</select>
</select>
...
...
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