Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pms
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
pms
Commits
56f7a706
提交
56f7a706
authored
7月 05, 2023
作者:
xiaowang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
返回产品id
上级
be531dd6
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
+11
-11
ProductDao.xml
src/main/resources/mapper/ProductDao.xml
+11
-11
没有找到文件。
src/main/resources/mapper/ProductDao.xml
浏览文件 @
56f7a706
...
...
@@ -11,7 +11,7 @@
<insert
id=
"insertProductSpec"
keyProperty=
"id"
useGeneratedKeys=
"true"
parameterType=
"com.mmc.pms.entity.ProductSpecDO"
>
insert into product_spec (product_id, spec_name, spec_image, part_no, version_desc)
values (#{product
Sku
Id}, #{specName}, #{specImage}, #{partNo}, #{versionDesc})
values (#{productId}, #{specName}, #{specImage}, #{partNo}, #{versionDesc})
</insert>
<insert
id=
"batchInsertSpecPrice"
useGeneratedKeys=
"true"
keyProperty=
"id"
parameterType=
"com.mmc.pms.entity.ProductSpecPriceDO"
>
...
...
@@ -48,7 +48,7 @@
spec_image = #{specImage},
part_no = #{partNo},
version_desc = #{versionDesc},
product_id = #{product
Sku
Id}
product_id = #{productId}
where id = #{id}
</update>
<update
id=
"removeProductSku"
>
...
...
@@ -138,7 +138,7 @@
</select>
<select
id=
"countSpecName"
resultType=
"java.lang.Integer"
>
select count(*) from product_spec
where spec_name = #{specName} and is_deleted = 0 and product_id = #{product
Sku
Id}
where spec_name = #{specName} and is_deleted = 0 and product_id = #{productId}
<if
test=
"id !=null and id !=''"
>
and id
<![CDATA[<>]]>
#{id}
</if>
...
...
@@ -151,7 +151,7 @@
</select>
<select
id=
"getProductSpecDetail"
resultType=
"com.mmc.pms.entity.ProductSpecDO"
>
select id,
product_id product
Sku
Id,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
...
...
@@ -173,7 +173,7 @@
</select>
<select
id=
"listPageProductSpec"
resultType=
"com.mmc.pms.entity.ProductSpecDO"
>
select id,
product_id product
Sku
Id,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
...
...
@@ -182,7 +182,7 @@
from product_spec
<where>
is_deleted = 0
and product_id = #{product
Sku
Id}
and product_id = #{productId}
<if
test=
"keyword != null and keyword != ''"
>
and spec_name like CONCAT('%',#{keyword},'%')
</if>
...
...
@@ -208,7 +208,7 @@
</select>
<select
id=
"listProductSpec"
resultType=
"com.mmc.pms.entity.ProductSpecDO"
>
select id,
product_id product
Sku
Id,
product_id productId,
spec_name,
spec_image,
part_no,
...
...
@@ -216,7 +216,7 @@
create_time
from product_spec
where is_deleted = 0
and product_id = #{product
Sku
Id}
and product_id = #{productId}
</select>
<select
id=
"listProductSkuDO"
resultType=
"com.mmc.pms.entity.ProductDO"
>
SELECT ps.id,
...
...
@@ -241,7 +241,7 @@
id,
industry_product_inventory_id industryProductInventoryId,
product_spec_id productSpecId,
product_id product
Sku
Id
product_id productId
FROM
inventory_spec
WHERE
...
...
@@ -254,7 +254,7 @@
<select
id=
"listProductSpecInfo"
resultType=
"com.mmc.pms.entity.ProductSpecDO"
>
SELECT
id,
product_id product
Sku
Id,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
...
...
@@ -369,7 +369,7 @@
<select
id=
"getProductSpecList"
resultType=
"com.mmc.pms.entity.ProductSpecDO"
>
SELECT
id,
product_id product
Sku
Id,
product_id productId,
spec_name specName,
spec_image specImage,
part_no partNo,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论