规则修改 2:sku模块

This commit is contained in:
xuelijun
2025-08-05 15:38:12 +08:00
parent 038a09f286
commit 360c497c49
39 changed files with 692 additions and 75 deletions

View File

@@ -73,4 +73,11 @@
</root>
</springProfile>
<settings>
<!-- 开启自动映射 -->
<setting name="autoMappingBehavior" value="FULL"/>
<!-- 打印查询的 SQL -->
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>
</configuration>

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tashow.cloud.product.mapper.ProdExtendMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<update id="updateByProdId">
UPDATE tz_prod_extend
SET
is_disable = #{isDisable},
is_expire = #{isExpire}
WHERE prod_id = #{prodId}
</update>
</mapper>

View File

@@ -9,6 +9,6 @@
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<select id="getProdPropByPropNameAndShopId" resultType="com.tashow.cloud.product.dto.ProdPropDO">
select * from tz_prod_prop where prop_name = #{propName} and shop_id = #{shopId} and rule = #{rule}
select * from tz_prod_prop where prop_name = #{propName} and prod_id = #{prodId} and rule = #{rule}
</select>
</mapper>

View File

@@ -8,5 +8,7 @@
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<delete id="deleteDelivers">
delete from tz_sku_service_deliver where service_id = #{serviceId}
</delete>
</mapper>

View File

@@ -8,5 +8,7 @@
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<delete id="deleteDetails">
delete from tz_sku_service_details where service_id = #{serviceId}
</delete>
</mapper>

View File

@@ -8,5 +8,7 @@
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<delete id="deleteMaterials">
delete from tz_sku_service_material where service_id = #{serviceId}
</delete>
</mapper>

View File

@@ -8,5 +8,7 @@
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
文档可见https://www.iocoder.cn/MyBatis/x-plugins/
-->
<delete id="deleteTransports">
delete from tz_sku_service_transport where service_id = #{serviceId}
</delete>
</mapper>