Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
2a2814b1
提交
2a2814b1
authored
10月 18, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增推荐
上级
997eff7e
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
30 行增加
和
2 行删除
+30
-2
MallGoodsDao.xml
src/main/resources/mapper/mall/MallGoodsDao.xml
+30
-2
没有找到文件。
src/main/resources/mapper/mall/MallGoodsDao.xml
浏览文件 @
2a2814b1
...
...
@@ -277,7 +277,29 @@
FROM mall_goods
WHERE is_deleted = 0
</select>
<select
id=
"recommendMallGoods"
resultType=
"com.mmc.pms.entity.mall.MallGoodsDO"
>
<resultMap
id=
"resultMallGoodsMap"
type=
"com.mmc.pms.entity.mall.MallGoodsDO"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"trade_name"
property=
"tradeName"
/>
<result
column=
"create_time"
property=
"createTime"
/>
<result
column=
"category_primary_id"
property=
"categoryPrimaryId"
/>
<result
column=
"category_sub_id"
property=
"categorySubId"
/>
<result
column=
"description"
property=
"description"
/>
<result
column=
"recommend"
property=
"recommend"
/>
<result
column=
"imgId"
property=
"imgId"
/>
<result
column=
"price_show"
property=
"priceShow"
/>
<result
column=
"user_account_id"
property=
"userAccountId"
/>
<result
column=
"url"
property=
"url"
/>
<result
column=
"is_deleted"
property=
"deleted"
/>
<result
column=
"shelf_status"
property=
"shelfStatus"
/>
<collection
property=
"priceStockDOS"
ofType=
"com.mmc.pms.entity.mall.PriceStockDO"
>
<id
column=
"productSpecId"
property=
"id"
/>
<result
column=
"product_spec"
property=
"productSpec"
/>
<result
column=
"sku_image"
property=
"skuImage"
/>
<result
column=
"sale_price"
property=
"salePrice"
/>
<result
column=
"sku_no"
property=
"skuNo"
/>
</collection>
</resultMap>
<select
id=
"recommendMallGoods"
resultMap=
"resultMallGoodsMap"
>
SELECT mg.id,
mg.trade_name,
mg.shelf_status,
...
...
@@ -290,10 +312,16 @@
mg.recommend,
img.id as imgId,
img.url,
img.type
img.type,
ps.id as productSpecId,
ps.product_spec,
ps.sale_price,
ps.sku_image,
ps.sku_no
FROM mall_goods mg
INNER JOIN mall_goods_resources img ON mg.id = img.mall_goods_id
AND img.type = 0
LEFT JOIN price_stock ps ON ps.mall_goods_id = mg.id
where mg.is_deleted = 0
and mg.recommend = 1
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论