rename the file

This commit is contained in:
Cauchy
2023-10-11 16:51:29 +08:00
parent d80d598529
commit a356cceb62
20 changed files with 566 additions and 683 deletions

View File

@@ -1,24 +1,25 @@
<?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.peanut.modules.book.dao.ShopProudictBookDao">
<mapper namespace="com.peanut.modules.book.dao.ShopProductBookDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.peanut.modules.book.entity.ShopProudictBookEntity" id="ProudictBookMap">
<resultMap type="com.peanut.modules.book.entity.ShopProductBookEntity" id="ProductBookMap">
<result property="id" column="id"/>
<result property="createTime" column="create_time"/>
<result property="proudictId" column="proudict_id"/>
<result property="productId" column="product_id"/>
<result property="delFlag" column="del_flag"/>
<result property="bookId" column="book_id"/>
<result property="bookdIds" column="book_ids"/>
<result property="bookIds" column="book_ids"/>
</resultMap>
<select id="getOrderBookId" parameterType="string" resultType="int">
SELECT spb.book_id
FROM shop_proudict_book spb
LEFT JOIN buy_order_detail bod ON spb.proudict_id = bod.product_id
FROM shop_product_book spb
LEFT JOIN buy_order_detail bod ON spb.product_id = bod.product_id
LEFT JOIN buy_order bo ON bo.order_id = bod.order_id
WHERE bo.order_sn = #{orderSn} AND spb.del_flag != -1
WHERE bo.order_sn = #{orderSn}
AND spb.del_flag != -1
</select>