Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
foodNexus-admin
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
副食品筹措管理平台
foodNexus-admin
Commits
2d8100f9
Commit
2d8100f9
authored
Jan 07, 2026
by
杨浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
6543ce56
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/controller/admin/sale/vo/order/ErpSaleOrderPageReqVO.java
+3
-0
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/mysql/sale/ErpSaleOrderMapper.java
+3
-0
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/sale/ErpSaleReturnServiceImpl.java
+3
-0
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/controller/app/delivery/DeliverySaleOrderController.java
+3
-0
No files found.
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/controller/admin/sale/vo/order/ErpSaleOrderPageReqVO.java
View file @
2d8100f9
...
@@ -94,6 +94,9 @@ public class ErpSaleOrderPageReqVO extends PageParam {
...
@@ -94,6 +94,9 @@ public class ErpSaleOrderPageReqVO extends PageParam {
@Schema
(
description
=
"拣货状态list"
)
@Schema
(
description
=
"拣货状态list"
)
private
List
<
String
>
pickUpStatusList
;
private
List
<
String
>
pickUpStatusList
;
@Schema
(
hidden
=
true
)
private
List
<
String
>
notInPickUpStatusList
;
@Schema
(
description
=
"接单时间段"
)
@Schema
(
description
=
"接单时间段"
)
private
LocalDateTime
[]
acceptTime
;
private
LocalDateTime
[]
acceptTime
;
...
...
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/dal/mysql/sale/ErpSaleOrderMapper.java
View file @
2d8100f9
...
@@ -46,6 +46,9 @@ public interface ErpSaleOrderMapper extends BaseMapperX<ErpSaleOrderDO> {
...
@@ -46,6 +46,9 @@ public interface ErpSaleOrderMapper extends BaseMapperX<ErpSaleOrderDO> {
.
eqIfPresent
(
ErpSaleOrderDO:
:
getCustomerDeptId
,
reqVO
.
getCustomerDeptId
())
.
eqIfPresent
(
ErpSaleOrderDO:
:
getCustomerDeptId
,
reqVO
.
getCustomerDeptId
())
.
inIfPresent
(
ErpSaleOrderDO:
:
getCustomerDeptId
,
reqVO
.
getCustomerDeptIds
())
.
inIfPresent
(
ErpSaleOrderDO:
:
getCustomerDeptId
,
reqVO
.
getCustomerDeptIds
())
.
orderByDesc
(
ErpSaleOrderDO:
:
getId
);
.
orderByDesc
(
ErpSaleOrderDO:
:
getId
);
if
(
CommonUtil
.
isNotEmpty
(
reqVO
.
getNotInPickUpStatusList
()))
{
query
.
notIn
(
ErpSaleOrderDO:
:
getPickUpStatus
,
reqVO
.
getNotInPickUpStatusList
());
}
if
(
CommonUtil
.
isNotEmpty
(
reqVO
.
getDeliveryStaffId
()))
{
if
(
CommonUtil
.
isNotEmpty
(
reqVO
.
getDeliveryStaffId
()))
{
query
.
and
(
orQuery
->
{
query
.
and
(
orQuery
->
{
orQuery
.
eq
(
ErpSaleOrderDO:
:
getDeliveryStaffId
,
reqVO
.
getDeliveryStaffId
());
orQuery
.
eq
(
ErpSaleOrderDO:
:
getDeliveryStaffId
,
reqVO
.
getDeliveryStaffId
());
...
...
foodnexus-module-erp/src/main/java/cn/iocoder/foodnexus/module/erp/service/sale/ErpSaleReturnServiceImpl.java
View file @
2d8100f9
...
@@ -588,6 +588,9 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
...
@@ -588,6 +588,9 @@ public class ErpSaleReturnServiceImpl implements ErpSaleReturnService {
throw
exception
(
SALERETURN_ERROR_ORDER_ITEM
);
throw
exception
(
SALERETURN_ERROR_ORDER_ITEM
);
}
}
CustomerOrderItemDTO
orderItem
=
customerOrderItemMap
.
get
(
orderItemId
);
CustomerOrderItemDTO
orderItem
=
customerOrderItemMap
.
get
(
orderItemId
);
if
(
returnsCount
.
compareTo
(
orderItem
.
getSignedQuantity
())
>
0
)
{
throw
exception
(
SALE_RETURN_COUNT_ERROR
,
orderItem
.
getProductName
());
}
CustomerOrderItemDTO
updateItem
=
new
CustomerOrderItemDTO
();
CustomerOrderItemDTO
updateItem
=
new
CustomerOrderItemDTO
();
updateItem
.
setId
(
orderItem
.
getId
());
updateItem
.
setId
(
orderItem
.
getId
());
updateItem
.
setReturnsQuantity
(
returnsCount
);
updateItem
.
setReturnsQuantity
(
returnsCount
);
...
...
foodnexus-module-mall/foodnexus-module-order/src/main/java/cn/iocoder/foodnexus/module/order/controller/app/delivery/DeliverySaleOrderController.java
View file @
2d8100f9
...
@@ -104,6 +104,9 @@ public class DeliverySaleOrderController {
...
@@ -104,6 +104,9 @@ public class DeliverySaleOrderController {
public
CommonResult
<
PageResult
<
DeliverySaleOrderRespVO
>>
queryMyPage
(
@Valid
DeliveryOrderPageReqVO
reqVO
)
{
public
CommonResult
<
PageResult
<
DeliverySaleOrderRespVO
>>
queryMyPage
(
@Valid
DeliveryOrderPageReqVO
reqVO
)
{
reqVO
.
setDeliveryStaffId
(
deliveryStaffApi
.
queryStaffIdByUserId
(
getLoginUserId
()));
reqVO
.
setDeliveryStaffId
(
deliveryStaffApi
.
queryStaffIdByUserId
(
getLoginUserId
()));
ErpSaleOrderPageReqVO
pageReqVO
=
BeanUtils
.
toBean
(
reqVO
,
ErpSaleOrderPageReqVO
.
class
);
ErpSaleOrderPageReqVO
pageReqVO
=
BeanUtils
.
toBean
(
reqVO
,
ErpSaleOrderPageReqVO
.
class
);
pageReqVO
.
setNotInPickUpStatusList
(
CommonUtil
.
asList
(
SaleOrderPickUpStatus
.
RETURNS_PROCESS
.
getType
(),
SaleOrderPickUpStatus
.
RETURNS_REJECT
.
getType
(),
SaleOrderPickUpStatus
.
CANCEL
.
getType
()));
return
success
(
BeanUtils
.
toBean
(
saleOrderService
.
getSaleOrderPage
(
pageReqVO
),
DeliverySaleOrderRespVO
.
class
));
return
success
(
BeanUtils
.
toBean
(
saleOrderService
.
getSaleOrderPage
(
pageReqVO
),
DeliverySaleOrderRespVO
.
class
));
}
}
...
...
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