Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
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
haoban3.0
haoban-manage3.0
Commits
929ab586
Commit
929ab586
authored
Mar 15, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发货数量
parent
9bd1f071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
14 deletions
+33
-14
GicOrderController.java
...aoban/manage/web/controller/order/GicOrderController.java
+33
-14
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/order/GicOrderController.java
View file @
929ab586
...
...
@@ -30,6 +30,7 @@ import com.gic.business.order.dto.ordermanage.ListOrderItemDTO;
import
com.gic.business.order.dto.ordermanage.OrderDetailDTO
;
import
com.gic.business.order.dto.ordermanage.OrderInfoDTO
;
import
com.gic.business.order.dto.ordermanage.OrderNodeDTO
;
import
com.gic.business.order.dto.ordermanage.OrderStatusDTO
;
import
com.gic.business.order.dto.setting.MallOrderSettingDTO
;
import
com.gic.business.order.enums.OrderEnum
;
import
com.gic.business.order.qdto.aftersales.ExchangeDeliveryBackQDTO
;
...
...
@@ -113,6 +114,9 @@ public class GicOrderController {
if
(
status
==
0
)
{
strStatus
=
"2,3,7"
;
}
if
(
status
==
2
)
{
strStatus
=
"2,7"
;
}
// 查询门店
ListOrderManageQDTO
qdto
=
new
ListOrderManageQDTO
();
qdto
.
setEnterpriseId
(
enterpriseId
);
...
...
@@ -128,6 +132,35 @@ public class GicOrderController {
return
this
.
orderListSelect
(
qdto
,
pageInfo
,
false
);
}
// 数量查询(待发货+待收货)
// orderType:2待发货 3待收货
@RequestMapping
(
"order-deliver-count"
)
public
RestResponse
<
Object
>
orderCount
(
String
enterpriseId
,
String
storeId
)
{
OrderCountVO
vo
=
new
OrderCountVO
();
CountOrderStatusQDTO
qdto
=
new
CountOrderStatusQDTO
();
qdto
.
setEnterpriseId
(
enterpriseId
);
qdto
.
setBusinessType
(
OrderEnum
.
BusinessTypeEnum
.
MICRO_MALL
.
getType
());
qdto
.
setStoreId
(
storeId
);
ServiceResponse
<
List
<
OrderStatusDTO
>>
resp
=
this
.
webOrderManageApiService
.
countOrderStatus
(
qdto
);
List
<
OrderStatusDTO
>
list
=
resp
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
long
noDeliver
=
0
,
deliver
=
0
;
for
(
OrderStatusDTO
item
:
list
)
{
if
(
item
.
getOrderStep
()
==
3
)
{
deliver
=
item
.
getTotal
();
}
if
(
item
.
getOrderStep
()
==
2
||
item
.
getOrderStep
()
==
7
)
{
noDeliver
=
noDeliver
+
item
.
getTotal
();
}
}
;
vo
.
setDeliverCount
((
int
)
deliver
);
vo
.
setNoDeliverCount
((
int
)
noDeliver
);
vo
.
setTotal
((
int
)
(
deliver
+
noDeliver
));
}
return
RestResponse
.
successResult
(
vo
);
}
// 核销订单查询
// status 0全部 1待核销 2已核销
@RequestMapping
(
"list-verification-order"
)
...
...
@@ -144,20 +177,6 @@ public class GicOrderController {
return
this
.
orderListSelect
(
qdto
,
pageInfo
,
false
);
}
// 数量查询(待发货+待收货)
// orderType:2待发货 3待收货
@RequestMapping
(
"order-deliver-count"
)
public
RestResponse
<
Object
>
orderCount
(
String
enterpriseId
,
String
storeId
,
String
clerkId
,
@RequestParam
(
defaultValue
=
"1"
)
int
status
)
{
OrderCountVO
vo
=
new
OrderCountVO
();
CountOrderStatusQDTO
countOrderStatusQDTO
=
new
CountOrderStatusQDTO
();
countOrderStatusQDTO
.
setEnterpriseId
(
enterpriseId
);
countOrderStatusQDTO
.
setBusinessType
(
1
);
countOrderStatusQDTO
.
setStoreId
(
storeId
);
this
.
webOrderManageApiService
.
countOrderStatus
(
countOrderStatusQDTO
);
return
RestResponse
.
successResult
(
vo
);
}
// 订单详情 (客户信息+收货地址+商品详情+订单信息 + 订单状态)
@RequestMapping
(
"order-detail"
)
public
RestResponse
<
Object
>
orderDetail
(
String
enterpriseId
,
String
clerkId
,
String
searchParams
,
...
...
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