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
416d4f6d
Commit
416d4f6d
authored
Aug 23, 2024
by
zhangfeng
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
70dfec54
4b0575aa
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
611 additions
and
698 deletions
+611
-698
BasePrice.java
...udao/module/product/dal/dataobject/product/BasePrice.java
+18
-0
ProductPriceExcelExportListener.java
...ule/product/listener/ProductPriceExcelExportListener.java
+133
-132
ProductPriceServiceImpl.java
...product/service/product/impl/ProductPriceServiceImpl.java
+458
-566
ProductPriceReqBaseVO.java
...module/product/vo/productPrice/ProductPriceReqBaseVO.java
+2
-0
No files found.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/product/BasePrice.java
View file @
416d4f6d
...
...
@@ -7,6 +7,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
java.math.BigDecimal
;
import
java.util.List
;
@Data
public
class
BasePrice
extends
BaseDO
{
...
...
@@ -92,4 +93,21 @@ public class BasePrice extends BaseDO {
@JsonIgnore
private
int
productPriceEmptyType
=
0
;
@ApiModelProperty
(
value
=
"特殊需求列表"
)
@TableField
(
exist
=
false
)
private
List
<
ProductPriceSpecialDO
>
specialDOList
;
@ApiModelProperty
(
value
=
"运费包装价格列表"
)
@TableField
(
exist
=
false
)
private
List
<
ProductPricePackagingDO
>
freightPricePackagingList
;
@ApiModelProperty
(
value
=
"清关费包装价格列表"
)
@TableField
(
exist
=
false
)
private
List
<
ProductPricePackagingDO
>
clearancePricePackagingList
;
@ApiModelProperty
(
value
=
"全包价包装价格列表"
)
@TableField
(
exist
=
false
)
private
List
<
ProductPricePackagingDO
>
fullPricePackagingList
;
}
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/listener/ProductPriceExcelExportListener.java
View file @
416d4f6d
...
...
@@ -193,7 +193,7 @@ public class ProductPriceExcelExportListener {
StringBuilder
ytqgfSb
=
new
StringBuilder
();
StringBuilder
ddyfSb
=
new
StringBuilder
();
StringBuilder
ddqgfSb
=
new
StringBuilder
();
if
(
item
.
getPriceType
()
==
0
)
{
if
(
CollectionUtil
.
isNotEmpty
(
yfStepList
))
{
yfStepList
.
sort
(
Comparator
.
comparing
(
ProductPriceStepDO:
:
getRankNum
));
for
(
int
j
=
1
;
j
<=
yfStepList
.
size
();
j
++)
{
...
...
@@ -232,7 +232,7 @@ public class ProductPriceExcelExportListener {
String
unit
=
""
;
if
(
weightUnit
!=
null
)
{
UnitDO
unitDO
=
unitMap
.
get
(
weightUnit
.
intValue
());
unit
=
Objects
.
nonNull
(
unitDO
)?
unitDO
.
getTitleZh
():
"空"
;
unit
=
Objects
.
nonNull
(
unitDO
)
?
unitDO
.
getTitleZh
()
:
"空"
;
}
BigDecimal
startNum
=
stepDO
.
getStartNum
();
BigDecimal
endNum
=
stepDO
.
getEndNum
();
...
...
@@ -282,7 +282,7 @@ public class ProductPriceExcelExportListener {
String
unit
=
""
;
if
(
weightUnit
!=
null
)
{
UnitDO
unitDO
=
unitMap
.
get
(
weightUnit
.
intValue
());
unit
=
unitDO
.
getTitleZh
()
;
unit
=
Objects
.
nonNull
(
unitDO
)
?
unitDO
.
getTitleZh
()
:
"空"
;
}
BigDecimal
startNum
=
stepDO
.
getStartNum
();
BigDecimal
endNum
=
stepDO
.
getEndNum
();
...
...
@@ -293,7 +293,8 @@ public class ProductPriceExcelExportListener {
}
}
}
}
if
(
item
.
getPriceType
()
==
1
)
{
if
(
CollectionUtil
.
isNotEmpty
(
qbjStepList
)
&&
item
.
getPriceType
()
==
1
)
{
qbjStepList
.
sort
(
Comparator
.
comparing
(
ProductPriceStepDO:
:
getRankNum
));
for
(
int
j
=
1
;
j
<=
qbjStepList
.
size
();
j
++)
{
...
...
@@ -343,7 +344,7 @@ public class ProductPriceExcelExportListener {
}
}
}
}
transportPrice
=
transportPriceSb
.
toString
();
clearancePrice
=
clearancePriceSb
.
toString
();
...
...
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/service/product/impl/ProductPriceServiceImpl.java
View file @
416d4f6d
This diff is collapsed.
Click to expand it.
yudao-module-product/yudao-module-product-core/src/main/java/cn/iocoder/yudao/module/product/vo/productPrice/ProductPriceReqBaseVO.java
View file @
416d4f6d
package
cn
.
iocoder
.
yudao
.
module
.
product
.
vo
.
productPrice
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPricePackagingDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceSpecialDO
;
import
cn.iocoder.yudao.module.product.dal.dataobject.product.ProductPriceStepDO
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
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