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
b1561fa6
Commit
b1561fa6
authored
Sep 09, 2024
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放货率数据冗余及查询
parent
0e7ae8f4
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
254 additions
and
54 deletions
+254
-54
20240909.sql
sql/v2.1/20240909.sql
+9
-0
OrderDO.java
...oder/yudao/module/order/dal/dataobject/order/OrderDO.java
+8
-2
OrderBackInfoDto.java
...a/cn/iocoder/yudao/module/order/dto/OrderBackInfoDto.java
+7
-0
OrderCargoControlPickServiceImpl.java
...derCargoControlPick/OrderCargoControlPickServiceImpl.java
+78
-29
OrderBackPageVO.java
.../iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
+7
-3
OrderBackVO.java
...a/cn/iocoder/yudao/module/order/vo/order/OrderBackVO.java
+7
-0
OrderBaseVO.java
...a/cn/iocoder/yudao/module/order/vo/order/OrderBaseVO.java
+7
-0
OrderQueryVO.java
.../cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
+12
-0
OrderMapper.xml
...rder-core/src/main/resources/mapper/order/OrderMapper.xml
+119
-20
No files found.
sql/v2.1/20240909.sql
0 → 100644
View file @
b1561fa6
-- 放货箱数与放货率
alter
table
`ecw_order`
add
column
`release_ratio`
decimal
(
5
,
2
)
DEFAULT
'0.00'
COMMENT
'放货率'
;
alter
table
`ecw_order`
add
column
`release_num`
int
DEFAULT
0
COMMENT
'放货箱数'
;
-- 批量刷新订单放货数量、放货率
update
ecw_order
t
LEFT
JOIN
(
select
ccp
.
order_id
,
ifnull
(
sum
(
ccp
.
pick_num
),
0
)
as
releaseNum
from
ecw_order_cargo_control_pick
ccp
where
ccp
.
order_id
=
o
.
order_id
and
ccp
.
status
in
(
1
,
2
,
3
,
4
,
5
,
6
)
group
by
ccp
.
order_id
)
t1
on
t
.
order_id
=
t1
.
order_id
set
t
.
release_num
=
t1
.
releaseNum
,
t
.
release_ratio
=
ROUND
(
t1
.
releaseNum
/
t
.
sum_num
,
2
)
*
100
;
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dal/dataobject/order/OrderDO.java
View file @
b1561fa6
...
...
@@ -537,12 +537,18 @@ public class OrderDO extends BaseDO {
@ApiModelProperty
(
value
=
"提货状态:0 未提货 1 部分提货 2 已提货"
)
private
Integer
pickState
;
@ApiModelProperty
(
value
=
"
'提货率'
"
)
@ApiModelProperty
(
value
=
"
提货率
"
)
private
BigDecimal
pickRatio
;
@ApiModelProperty
(
value
=
"
'提货箱数'
"
)
@ApiModelProperty
(
value
=
"
提货箱数
"
)
private
Integer
pickNum
;
@ApiModelProperty
(
value
=
"放货率"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"放货箱数"
)
private
Integer
releaseNum
;
@TableField
(
exist
=
false
)
@ApiModelProperty
(
value
=
"订单商品项列表"
)
@NotNull
(
message
=
"订单商品项列表不能为空"
)
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/dto/OrderBackInfoDto.java
View file @
b1561fa6
...
...
@@ -539,6 +539,13 @@ public class OrderBackInfoDto {
@ApiModelProperty
(
value
=
"'提货箱数'"
)
private
Integer
pickNum
;
@ApiModelProperty
(
value
=
"放货率"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"放货箱数"
)
private
Integer
releaseNum
;
public
void
setExceptionReason
(
String
exceptionReason
)
{
this
.
exceptionReason
=
exceptionReason
;
if
(
StringUtils
.
isNotBlank
(
exceptionReason
)
&&
Objects
.
nonNull
(
this
.
lang
))
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/service/orderCargoControlPick/OrderCargoControlPickServiceImpl.java
View file @
b1561fa6
This diff is collapsed.
Click to expand it.
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackPageVO.java
View file @
b1561fa6
...
...
@@ -380,6 +380,13 @@ public class OrderBackPageVO {
@ApiModelProperty
(
value
=
"'提货箱数'"
)
private
Integer
pickNum
;
@ApiModelProperty
(
value
=
"放货率"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"放货箱数"
)
private
Integer
releaseNum
;
/**
* 渠道名称
*/
...
...
@@ -399,9 +406,6 @@ public class OrderBackPageVO {
@ApiModelProperty
(
value
=
"当前控货箱数"
)
private
BigDecimal
controlWeight
;
@ApiModelProperty
(
value
=
"已放货箱数"
)
private
Integer
releaseNum
;
@ApiModelProperty
(
value
=
"放货数量"
)
private
Integer
releaseQuantity
;
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBackVO.java
View file @
b1561fa6
...
...
@@ -640,6 +640,13 @@ public class OrderBackVO {
private
Integer
pickNum
;
@ApiModelProperty
(
value
=
"放货率"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"放货箱数"
)
private
Integer
releaseNum
;
public
void
setExternalWarehouseJson
(
String
externalWarehouseJson
)
{
this
.
externalWarehouseJson
=
externalWarehouseJson
;
if
(
StringUtils
.
isNotBlank
(
externalWarehouseJson
))
{
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderBaseVO.java
View file @
b1561fa6
...
...
@@ -364,6 +364,13 @@ public class OrderBaseVO {
@ApiModelProperty
(
value
=
"'提货箱数'"
)
private
Integer
pickNum
;
@ApiModelProperty
(
value
=
"放货率"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"放货箱数"
)
private
Integer
releaseNum
;
public
void
setExceptionReason
(
String
exceptionReason
)
{
this
.
exceptionReason
=
StringUtils
.
isNotBlank
(
exceptionReason
)
?
I18nMessage
.
getMessage
(
exceptionReason
)
:
exceptionReason
;
}
...
...
yudao-module-order/yudao-module-order-core/src/main/java/cn/iocoder/yudao/module/order/vo/order/OrderQueryVO.java
View file @
b1561fa6
...
...
@@ -553,6 +553,18 @@ public class OrderQueryVO {
@ApiModelProperty
(
value
=
"大于等于提货率"
)
private
BigDecimal
gePickRatio
;
@ApiModelProperty
(
value
=
"'放货率'"
)
private
BigDecimal
releaseRatio
;
@ApiModelProperty
(
value
=
"小于等于放货率"
)
private
BigDecimal
leReleaseRatio
;
@ApiModelProperty
(
value
=
"等于放货率"
)
private
BigDecimal
eqReleaseRatio
;
@ApiModelProperty
(
value
=
"大于等于放货率"
)
private
BigDecimal
geReleaseRatio
;
@ApiModelProperty
(
value
=
"'提货箱数'"
)
private
Integer
pickNum
;
...
...
yudao-module-order/yudao-module-order-core/src/main/resources/mapper/order/OrderMapper.xml
View file @
b1561fa6
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