Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
6f5b4d7d
提交
6f5b4d7d
authored
9月 13, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增价格字段显示与否
上级
2d58a68f
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
14 行增加
和
4 行删除
+14
-4
MallGoodsDO.java
src/main/java/com/mmc/pms/entity/mall/MallGoodsDO.java
+5
-2
MallGoodsVO.java
src/main/java/com/mmc/pms/model/mall/MallGoodsVO.java
+3
-0
MallGoodsDao.xml
src/main/resources/mapper/mall/MallGoodsDao.xml
+6
-2
没有找到文件。
src/main/java/com/mmc/pms/entity/mall/MallGoodsDO.java
浏览文件 @
6f5b4d7d
...
...
@@ -69,6 +69,8 @@ public class MallGoodsDO implements Serializable {
*/
private
Integer
sort
;
private
Integer
priceShow
;
private
Date
createTime
;
private
Date
updateTime
;
...
...
@@ -89,12 +91,13 @@ public class MallGoodsDO implements Serializable {
this
.
shelfStatus
=
mallGoodsVO
.
getShelfStatus
();
this
.
goodsLabel
=
mallGoodsVO
.
getGoodsLabel
();
this
.
labelShow
=
mallGoodsVO
.
getLabelShow
();
this
.
priceShow
=
mallGoodsVO
.
getPriceShow
();
this
.
goodsDetails
=
mallGoodsVO
.
getGoodsDetails
();
}
public
MallGoodsVO
buildMallGoodsVO
()
{
return
MallGoodsVO
.
builder
().
id
(
id
).
userAccountId
(
userAccountId
).
tradeName
(
tradeName
).
description
(
description
)
.
categoryPrimaryId
(
categoryPrimaryId
).
categorySubId
(
categorySubId
).
shelfStatus
(
shelfStatus
)
.
categoryPrimaryId
(
categoryPrimaryId
).
categorySubId
(
categorySubId
).
shelfStatus
(
shelfStatus
)
.
priceShow
(
priceShow
)
.
goodsLabel
(
goodsLabel
).
labelShow
(
labelShow
).
createTime
(
createTime
).
goodsDetails
(
goodsDetails
).
build
();
}
...
...
@@ -107,7 +110,7 @@ public class MallGoodsDO implements Serializable {
resourcesList
.
add
(
goodsResourcesVO
);
return
MallGoodsVO
.
builder
().
id
(
id
).
userAccountId
(
userAccountId
).
tradeName
(
tradeName
).
resourcesList
(
resourcesList
)
.
categoryPrimaryId
(
categoryPrimaryId
).
labelShow
(
labelShow
).
goodsLabel
(
goodsLabel
).
categorySubId
(
categorySubId
)
.
shelfStatus
(
shelfStatus
).
createTime
(
createTime
).
description
(
description
).
build
();
.
shelfStatus
(
shelfStatus
).
createTime
(
createTime
).
description
(
description
).
priceShow
(
priceShow
).
build
();
}
}
src/main/java/com/mmc/pms/model/mall/MallGoodsVO.java
浏览文件 @
6f5b4d7d
...
...
@@ -57,6 +57,9 @@ public class MallGoodsVO implements Serializable {
@ApiModelProperty
(
value
=
"商品标签"
)
private
String
goodsLabel
;
@ApiModelProperty
(
value
=
"价格是否显示 0不显示 1显示"
)
private
Integer
priceShow
;
@ApiModelProperty
(
value
=
"标签是否显示 0否 1是"
)
private
Integer
labelShow
;
...
...
src/main/resources/mapper/mall/MallGoodsDao.xml
浏览文件 @
6f5b4d7d
...
...
@@ -15,9 +15,10 @@
label_show,
goods_details,
user_account_id,
price_show,
sort)
values ( #{goodsNo}, #{tradeName}, #{description}, #{categoryPrimaryId}, #{categorySubId}
, #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails}, #{userAccountId}, #{sort})
, #{shelfStatus}, #{goodsLabel}, #{labelShow}, #{goodsDetails}, #{userAccountId}, #{
priceShow}, #{
sort})
</insert>
<insert
id=
"batchInsertMallGoodsResources"
>
...
...
@@ -67,7 +68,8 @@
shelf_status = #{mallGoodsDO.shelfStatus},
goods_label = #{mallGoodsDO.goodsLabel},
label_show = #{mallGoodsDO.labelShow},
goods_details = #{mallGoodsDO.goodsDetails}
goods_details = #{mallGoodsDO.goodsDetails},
price_show = #{mallGoodsDO.priceShow}
WHERE id = #{mallGoodsDO.id}
</update>
<update
id=
"updateMallGoodsSort"
>
...
...
@@ -155,6 +157,7 @@
label_show,
goods_details,
user_account_id,
price_show,
sort,
create_time
FROM mall_goods
...
...
@@ -201,6 +204,7 @@
mg.category_sub_id,
mg.user_account_id,
mg.description,
mg.price_show,
img.id as imgId,
img.url,
img.type
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论