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
72a95862
Commit
72a95862
authored
Nov 28, 2024
by
zhengyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单提货记录时间统计业务修正
parent
811de315
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
63 deletions
+135
-63
OrderMapper.java
...coder/yudao/module/order/dal/mysql/order/OrderMapper.java
+2
-0
OrderQueryServiceImpl.java
...odule/order/service/order/impl/OrderQueryServiceImpl.java
+19
-19
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+114
-44
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 @
72a95862
...
...
@@ -3366,4 +3366,6 @@ public interface OrderMapper extends AbstractMapper<OrderDO> {
*/
@Update
(
"update ecw_order set customer_id=#{customerId},salesman_id=#{salesmanId} where order_id = #{orderId}"
)
void
updateOrderCustomerAndSalesmanId
(
@Param
(
"customerId"
)
Long
customerId
,
@Param
(
"salesmanId"
)
Long
salesmanId
,
@Param
(
"orderId"
)
Long
orderId
);
StatisticsOrderVO
statisticsPickUp
(
@Param
(
"query"
)
OrderQueryVO
query
);
}
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/order/impl/OrderQueryServiceImpl.java
View file @
72a95862
...
...
@@ -1705,15 +1705,15 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// vo.setOrderQuantity(0);
// }
// }
//
if (Objects.nonNull(query.getBeginPickUpTime()) && Objects.nonNull(query.getEndPickUpTime())) {
//
// 入仓记录统计时,实测入仓数据替换为入仓记录中的和值
//
StatisticsOrderVO pickUpVO = orderMapper.statisticsPickUp(query);
//
if (Objects.nonNull(pickUpVO)) {
//
vo.setTotalNum(pickUpVO.getTotalNum());
//
} else {
//
vo.setTotalNum(0);
//
}
//
}
if
(
Objects
.
nonNull
(
query
.
getBeginPickUpTime
())
&&
Objects
.
nonNull
(
query
.
getEndPickUpTime
()))
{
// 入仓记录统计时,实测入仓数据替换为入仓记录中的和值
StatisticsOrderVO
pickUpVO
=
orderMapper
.
statisticsPickUp
(
query
);
if
(
Objects
.
nonNull
(
pickUpVO
))
{
vo
.
setTotalNum
(
pickUpVO
.
getTotalNum
());
}
else
{
vo
.
setTotalNum
(
0
);
}
}
return
vo
;
}
...
...
@@ -1760,16 +1760,16 @@ public class OrderQueryServiceImpl implements OrderQueryService {
// vo.setOrderQuantity(0);
// }
// }
//
if (Objects.nonNull(query.getBeginPickUpTime()) &&
//
Objects.nonNull(query.getEndPickUpTime())) {
//
// 提货记录统计时,实测入仓数据替换为提货记录中的和值
// StatisticsOrderVO pickUpVO = orderMapper.statisticsMy
PickUp(query);
//
if (Objects.nonNull(pickUpVO)) {
//
vo.setTotalNum(pickUpVO.getTotalNum());
//
} else {
//
vo.setTotalNum(0);
//
}
//
}
if
(
Objects
.
nonNull
(
query
.
getBeginPickUpTime
())
&&
Objects
.
nonNull
(
query
.
getEndPickUpTime
()))
{
// 提货记录统计时,实测入仓数据替换为提货记录中的和值
StatisticsOrderVO
pickUpVO
=
orderMapper
.
statistics
PickUp
(
query
);
if
(
Objects
.
nonNull
(
pickUpVO
))
{
vo
.
setTotalNum
(
pickUpVO
.
getTotalNum
());
}
else
{
vo
.
setTotalNum
(
0
);
}
}
return
vo
;
}
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
72a95862
This diff is collapsed.
Click to expand it.
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