Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
pms-ci-test
Commits
4a4f2467
提交
4a4f2467
authored
6月 14, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:编辑商品bug
上级
5f1843ac
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
GoodsInfoDao.xml
src/main/resources/mapper/GoodsInfoDao.xml
+6
-5
ProductDao.xml
src/main/resources/mapper/ProductDao.xml
+2
-2
没有找到文件。
src/main/resources/mapper/GoodsInfoDao.xml
浏览文件 @
4a4f2467
...
@@ -136,11 +136,11 @@
...
@@ -136,11 +136,11 @@
</foreach>
</foreach>
</update>
</update>
<update
id=
"batchUpdateMallProdSpec"
>
<update
id=
"batchUpdateMallProdSpec"
>
<foreach
collection=
"list"
item=
"d"
separator=
";"
index=
"index"
>
update mall_prod_info_spec
update mall_prod_info_spec
set is_deleted = 1
set is_deleted = 1
where is_deleted = 0
where id = #{d}
<foreach
collection=
"list"
item=
"d"
separator=
","
index=
"index"
open=
"and id in ("
close=
")"
>
and is_deleted = 0
#{d}
</foreach>
</foreach>
</update>
</update>
<update
id=
"batchDownWare"
>
<update
id=
"batchDownWare"
>
...
@@ -226,6 +226,7 @@
...
@@ -226,6 +226,7 @@
INNER JOIN product ps ON ps.id = mi.product_id
INNER JOIN product ps ON ps.id = mi.product_id
WHERE mi.goods_info_id = #{id}
WHERE mi.goods_info_id = #{id}
AND mi.is_deleted = 0
AND mi.is_deleted = 0
and flag = 0
</select>
</select>
<select
id=
"getMallIndustrySkuInfo"
resultType=
"com.mmc.pms.entity.MallIndustrySkuInfoDO"
>
<select
id=
"getMallIndustrySkuInfo"
resultType=
"com.mmc.pms.entity.MallIndustrySkuInfoDO"
>
SELECT mi.id,
SELECT mi.id,
...
...
src/main/resources/mapper/ProductDao.xml
浏览文件 @
4a4f2467
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
<mapper
namespace=
"com.mmc.pms.dao.ProductDao"
>
<mapper
namespace=
"com.mmc.pms.dao.ProductDao"
>
<insert
id=
"insertProductSku"
parameterType=
"com.mmc.pms.entity.ProductSkuDO"
<insert
id=
"insertProductSku"
parameterType=
"com.mmc.pms.entity.ProductSkuDO"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into product (product_name, categories_id, model, brand_info_id, directory_id)
insert into product (product_name, categories_id, model, brand_info_id, directory_id
, customize
)
values (#{productName}, #{categoriesId}, #{model}, #{brandInfoId}, #{directoryId})
values (#{productName}, #{categoriesId}, #{model}, #{brandInfoId}, #{directoryId}
, #{customize}
)
</insert>
</insert>
<insert
id=
"insertProductSpec"
keyProperty=
"id"
useGeneratedKeys=
"true"
<insert
id=
"insertProductSpec"
keyProperty=
"id"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.pms.entity.ProductSpecDO"
>
parameterType=
"com.mmc.pms.entity.ProductSpecDO"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论