Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-api-boot-master
Commits
31eb5ef1
Commit
31eb5ef1
authored
Aug 30, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善订单查询数据
parent
32e33865
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
336 additions
and
763 deletions
+336
-763
OrderMapper.java
...coder/yudao/module/order/dal/mysql/order/OrderMapper.java
+17
-17
OrderQueryService.java
...r/yudao/module/order/service/order/OrderQueryService.java
+1
-1
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+2
-2
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+6
-0
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+307
-740
OrderController.java
.../module/order/controller/admin/order/OrderController.java
+3
-3
No files found.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/mysql/order/OrderMapper.java
View file @
31eb5ef1
...
...
@@ -3833,7 +3833,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
// "</when>",
// "</script>"
// })
StatisticsOrderVO
statisticsMyOrder
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
StatisticsOrderVO
statisticsMyOrder
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
/**
...
...
@@ -4844,38 +4844,38 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
// "where whl.dest_warehouse_id = #{query.destWarehouseId} ",
// "))",
// "</when>",
" <if test=\"query.startWarehouseId
!=null and query.destWarehouseId
!=null \">\n"
+
" <if test=\"query.startWarehouseId
s !=null and query.destWarehouseIds
!=null \">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.start_warehouse_id in\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{warehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
" and whl.dest_warehouse_id in\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{destWarehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
" ))\n"
+
" </if>\n"
+
" <if test=\"query.startWarehouseId
!=null and query.destWarehouseId
==null\">\n"
+
" <if test=\"query.startWarehouseId
s !=null and query.destWarehouseIds
==null\">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.start_warehouse_id in\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{warehouseId}\n"
+
" </foreach>\n"
+
" ))\n"
+
" </if>\n"
+
" <if test=\"query.startWarehouseId
==null and query.destWarehouseId
!=null \">\n"
+
" <if test=\"query.startWarehouseId
s ==null and query.destWarehouseIds
!=null \">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.dest_warehouse_id in\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{destWarehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
...
...
@@ -4919,7 +4919,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
"</when>"
,
"</script>"
})
StatisticsOrderVO
statisticsMyWarehouseIn
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
StatisticsOrderVO
statisticsMyWarehouseIn
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
StatisticsOrderVO
.
class
)
@Select
({
...
...
@@ -5766,38 +5766,38 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
// "where whl.dest_warehouse_id = #{query.destWarehouseId} ",
// "))",
// "</when>",
" <if test=\"query.startWarehouseId
!=null and query.destWarehouseId
!=null \">\n"
+
" <if test=\"query.startWarehouseId
s !=null and query.destWarehouseIds
!=null \">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.start_warehouse_id in\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{warehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
" and whl.dest_warehouse_id in\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{destWarehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
" ))\n"
+
" </if>\n"
+
" <if test=\"query.startWarehouseId
!=null and query.destWarehouseId
==null\">\n"
+
" <if test=\"query.startWarehouseId
s !=null and query.destWarehouseIds
==null\">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.start_warehouse_id in\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='warehouseId' collection='query.startWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{warehouseId}\n"
+
" </foreach>\n"
+
" ))\n"
+
" </if>\n"
+
" <if test=\"query.startWarehouseId
==null and query.destWarehouseId
!=null \">\n"
+
" <if test=\"query.startWarehouseId
s ==null and query.destWarehouseIds
!=null \">\n"
+
" and (o.line_id in(\n"
+
" select whl.id\n"
+
" from ecw_warehouse_line whl\n"
+
" where whl.dest_warehouse_id in\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId' open='(' separator=',' close=')'>\n"
+
" <foreach item='destWarehouseId' collection='query.destWarehouseId
s
' open='(' separator=',' close=')'>\n"
+
" #{destWarehouseId}\n"
+
" </foreach>\n"
+
"\n"
+
...
...
@@ -5841,7 +5841,7 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
"</when>"
,
"</script>"
})
StatisticsOrderVO
statisticsMyPickUp
(
@Param
(
"query"
)
OrderQuery
DT
O
query
);
StatisticsOrderVO
statisticsMyPickUp
(
@Param
(
"query"
)
OrderQuery
V
O
query
);
@ResultType
(
OrderDO
.
class
)
@Select
({
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/OrderQueryService.java
View file @
31eb5ef1
...
...
@@ -314,7 +314,7 @@ public interface OrderQueryService {
List
<
OrderDO
>
getOrderChildren
(
List
<
Long
>
orderIds
);
StatisticsOrderVO
statisticsOrder
(
OrderQueryVO
query
);
StatisticsOrderVO
statisticsMyOrder
(
OrderQuery
DT
O
query
)
;
StatisticsOrderVO
statisticsMyOrder
(
OrderQuery
V
O
query
)
;
void
exportOrderExcel
(
HttpServletResponse
response
,
OrderQueryVO
query
)
throws
IOException
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
31eb5ef1
...
...
@@ -1767,8 +1767,8 @@ public class OrderQueryServiceImpl implements OrderQueryService {
}
@Override
public
StatisticsOrderVO
statisticsMyOrder
(
OrderQuery
DT
O
query
)
{
caseStatus
(
query
.
getStatus
(),
query
);
public
StatisticsOrderVO
statisticsMyOrder
(
OrderQuery
V
O
query
)
{
//
caseStatus(query.getStatus(), query);
StatisticsOrderVO
vo
=
orderMapper
.
statisticsMyOrder
(
query
);
if
(
Objects
.
nonNull
(
vo
))
{
vo
.
setTotalVolume
(
new
BigDecimal
(
vo
.
getTotalVolume
()).
setScale
(
2
,
RoundingMode
.
HALF_UP
).
toString
());
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
31eb5ef1
...
...
@@ -563,6 +563,12 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"产品备案属性:1有牌,2无牌,3中性,4混牌"
)
private
List
<
Integer
>
productRecords
;
@ApiModelProperty
(
value
=
"客户经理ids"
)
private
List
<
Long
>
salesmanIds
;
@ApiModelProperty
(
value
=
"渠道ids"
)
private
List
<
Long
>
channelIds
;
@ApiModelProperty
(
value
=
"审核类型(字典 order_approval_type) 0 为正常"
)
private
List
<
Integer
>
auditTypeList
;
@ApiModelProperty
(
value
=
"订单状态详情见字典:order_status"
)
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
31eb5ef1
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-rest/src/main/java/cn/iocoder/yudao/module/order/controller/admin/order/OrderController.java
View file @
31eb5ef1
...
...
@@ -731,7 +731,7 @@ public class OrderController {
@GetMapping
(
"/dept/statistics"
)
@ApiOperation
(
"参数查询获得部门订单统计"
)
public
CommonResult
<
StatisticsOrderVO
>
statisticsDeptOrder
(
OrderQuery
DT
O
query
)
{
public
CommonResult
<
StatisticsOrderVO
>
statisticsDeptOrder
(
OrderQuery
V
O
query
)
{
LoginUser
loginUser
=
SecurityFrameworkUtils
.
getLoginUser
();
// 获取当前登录用户ID
query
.
setUserType
(
UserTypeEnum
.
ADMIN
.
getValue
());
// query.setSalesmanId(salesmanId);
...
...
@@ -761,7 +761,7 @@ public class OrderController {
@GetMapping
(
"/my/statistics"
)
@ApiOperation
(
"参数查询获得我的订单统计"
)
public
CommonResult
<
StatisticsOrderVO
>
statisticsMyOrder
(
OrderQuery
DT
O
query
)
{
public
CommonResult
<
StatisticsOrderVO
>
statisticsMyOrder
(
OrderQuery
V
O
query
)
{
Long
salesmanId
=
SecurityFrameworkUtils
.
getLoginUserId
();
// 获取当前登录用户ID
query
.
setUserType
(
UserTypeEnum
.
ADMIN
.
getValue
());
// query.setSalesmanId(salesmanId);
...
...
@@ -772,7 +772,7 @@ public class OrderController {
@GetMapping
(
"/statistics"
)
@ApiOperation
(
"参数查询订单管理统计"
)
public
CommonResult
<
StatisticsOrderVO
>
statisticsOrder
(
OrderQuery
DT
O
query
)
{
public
CommonResult
<
StatisticsOrderVO
>
statisticsOrder
(
OrderQuery
V
O
query
)
{
return
success
(
orderQueryService
.
statisticsMyOrder
(
query
));
}
...
...
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