|
@@ -56,25 +56,25 @@
|
|
medicalPracticeLicenseImg2, medicalPracticeLicenseImg3, bankAccount, bankAccountName,
|
|
medicalPracticeLicenseImg2, medicalPracticeLicenseImg3, bankAccount, bankAccountName,
|
|
bankName, ableRebateAmount
|
|
bankName, ableRebateAmount
|
|
</sql>
|
|
</sql>
|
|
- <select id="getBigType" resultType="com.caimei.module.product.entity.vo.BigtypeVo">
|
|
|
|
|
|
+ <select id="getBigType" resultType="com.caimei.module.base.entity.vo.BigtypeVo">
|
|
select
|
|
select
|
|
<include refid="BigType_Column_List" />
|
|
<include refid="BigType_Column_List" />
|
|
from bigtype
|
|
from bigtype
|
|
</select>
|
|
</select>
|
|
- <select id="getSmallType" resultType="com.caimei.module.product.entity.vo.SmalltypeVo">
|
|
|
|
|
|
+ <select id="getSmallType" resultType="com.caimei.module.base.entity.vo.SmalltypeVo">
|
|
select
|
|
select
|
|
<include refid="SmallType_Column_List" />
|
|
<include refid="SmallType_Column_List" />
|
|
from smalltype
|
|
from smalltype
|
|
where bigTypeID = #{bigTypeID,jdbcType=INTEGER}
|
|
where bigTypeID = #{bigTypeID,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
- <select id="getTinytype" resultType="com.caimei.module.product.entity.vo.TinytypeVo">
|
|
|
|
|
|
+ <select id="getTinytype" resultType="com.caimei.module.base.entity.vo.TinytypeVo">
|
|
select
|
|
select
|
|
<include refid="Tinytype_Column_List" />
|
|
<include refid="Tinytype_Column_List" />
|
|
from tinytype
|
|
from tinytype
|
|
where smallTypeID = #{smallTypeID,jdbcType=INTEGER}
|
|
where smallTypeID = #{smallTypeID,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
<!-- sortType (3:价格升序, 4:价格降序, 7:人气, 8:销量) -->
|
|
<!-- sortType (3:价格升序, 4:价格降序, 7:人气, 8:销量) -->
|
|
- <select id="getProductsByTinyType" resultType="com.caimei.module.product.entity.vo.ProductVo" parameterType="java.lang.Integer">
|
|
|
|
|
|
+ <select id="getProductsByTinyType" resultType="com.caimei.module.base.entity.vo.ProductVo" parameterType="java.lang.Integer">
|
|
select
|
|
select
|
|
<include refid="Product_Column_List" />
|
|
<include refid="Product_Column_List" />
|
|
from product
|
|
from product
|
|
@@ -98,21 +98,21 @@
|
|
</otherwise>
|
|
</otherwise>
|
|
</choose>
|
|
</choose>
|
|
</select>
|
|
</select>
|
|
- <select id="searchProduct" resultType="com.caimei.module.product.entity.vo.ProductVo">
|
|
|
|
|
|
+ <select id="searchProduct" resultType="com.caimei.module.base.entity.vo.ProductVo">
|
|
select
|
|
select
|
|
*
|
|
*
|
|
from product
|
|
from product
|
|
where validFlag = 2
|
|
where validFlag = 2
|
|
and name like CONCAT('%',#{searchWord,jdbcType=VARCHAR},'%')
|
|
and name like CONCAT('%',#{searchWord,jdbcType=VARCHAR},'%')
|
|
</select>
|
|
</select>
|
|
- <select id="findProductById" resultType="com.caimei.module.product.entity.vo.ProductVo">
|
|
|
|
|
|
+ <select id="findProductById" resultType="com.caimei.module.base.entity.vo.ProductVo">
|
|
select
|
|
select
|
|
<include refid="Product_Column_List" />
|
|
<include refid="Product_Column_List" />
|
|
from product
|
|
from product
|
|
where validFlag in (2,3)
|
|
where validFlag in (2,3)
|
|
and productId = #{productId,jdbcType=BIGINT}
|
|
and productId = #{productId,jdbcType=BIGINT}
|
|
</select>
|
|
</select>
|
|
- <select id="getSearchHistoryList" resultType="com.caimei.module.product.entity.vo.SearchHistoryVo">
|
|
|
|
|
|
+ <select id="getSearchHistoryList" resultType="com.caimei.module.base.entity.vo.SearchHistoryVo">
|
|
select id, userId, searchWord, searchDate, delFlag
|
|
select id, userId, searchWord, searchDate, delFlag
|
|
from user_search_history
|
|
from user_search_history
|
|
where userId = #{userId,jdbcType=BIGINT}
|
|
where userId = #{userId,jdbcType=BIGINT}
|
|
@@ -123,7 +123,7 @@
|
|
where searchWord = #{searchWord,jdbcType=VARCHAR}
|
|
where searchWord = #{searchWord,jdbcType=VARCHAR}
|
|
limit 1
|
|
limit 1
|
|
</select>
|
|
</select>
|
|
- <select id="findLowerLadderPrice" resultType="com.caimei.module.product.entity.vo.LadderPriceVo">
|
|
|
|
|
|
+ <select id="findLowerLadderPrice" resultType="com.caimei.module.base.entity.vo.LadderPriceVo">
|
|
select
|
|
select
|
|
<include refid="LadderPrice_Column_List" />
|
|
<include refid="LadderPrice_Column_List" />
|
|
from product_ladder_price
|
|
from product_ladder_price
|
|
@@ -132,27 +132,27 @@
|
|
ORDER BY ladderNum DESC
|
|
ORDER BY ladderNum DESC
|
|
LIMIT 1
|
|
LIMIT 1
|
|
</select>
|
|
</select>
|
|
- <select id="findProductImage" resultType="com.caimei.module.product.entity.vo.ProductImageVo">
|
|
|
|
|
|
+ <select id="findProductImage" resultType="com.caimei.module.base.entity.vo.ProductImageVo">
|
|
select
|
|
select
|
|
<include refid="Image_Column_List" />
|
|
<include refid="Image_Column_List" />
|
|
from productimage
|
|
from productimage
|
|
where productID = #{productID,jdbcType=INTEGER}
|
|
where productID = #{productID,jdbcType=INTEGER}
|
|
ORDER BY mainFlag DESC
|
|
ORDER BY mainFlag DESC
|
|
</select>
|
|
</select>
|
|
- <select id="findProductDetailById" resultType="com.caimei.module.product.entity.vo.ProductDetailVo">
|
|
|
|
|
|
+ <select id="findProductDetailById" resultType="com.caimei.module.base.entity.vo.ProductDetailVo">
|
|
select
|
|
select
|
|
<include refid="ProductDetail_Column_List" />
|
|
<include refid="ProductDetail_Column_List" />
|
|
from productdetailinfo
|
|
from productdetailinfo
|
|
where productId = #{productId,jdbcType=BIGINT}
|
|
where productId = #{productId,jdbcType=BIGINT}
|
|
</select>
|
|
</select>
|
|
- <select id="findProductShopById" resultType="com.caimei.module.product.entity.vo.ShopVo">
|
|
|
|
|
|
+ <select id="findProductShopById" resultType="com.caimei.module.base.entity.vo.ShopVo">
|
|
SELECT
|
|
SELECT
|
|
<include refid="Shop_Column_List" />
|
|
<include refid="Shop_Column_List" />
|
|
FROM shop
|
|
FROM shop
|
|
where shopID = #{shopID,jdbcType=INTEGER}
|
|
where shopID = #{shopID,jdbcType=INTEGER}
|
|
</select>
|
|
</select>
|
|
<!--新品上线(001) 优惠商品(010) 常用商品(100),三者同时存在111-->
|
|
<!--新品上线(001) 优惠商品(010) 常用商品(100),三者同时存在111-->
|
|
- <select id="getProductsByPreferredFlag" resultType="com.caimei.module.product.entity.vo.ProductVo">
|
|
|
|
|
|
+ <select id="getProductsByPreferredFlag" resultType="com.caimei.module.base.entity.vo.ProductVo">
|
|
select
|
|
select
|
|
<include refid="Product_Column_List" />
|
|
<include refid="Product_Column_List" />
|
|
from product
|
|
from product
|
|
@@ -167,7 +167,7 @@
|
|
and preferredFlag in (1,11,101,111)
|
|
and preferredFlag in (1,11,101,111)
|
|
</if>
|
|
</if>
|
|
</select>
|
|
</select>
|
|
- <update id="updateSearchHistoryById" parameterType="com.caimei.module.product.entity.vo.SearchHistoryVo">
|
|
|
|
|
|
+ <update id="updateSearchHistoryById" parameterType="com.caimei.module.base.entity.vo.SearchHistoryVo">
|
|
update user_search_history
|
|
update user_search_history
|
|
<set>
|
|
<set>
|
|
<if test="userId != null">
|
|
<if test="userId != null">
|
|
@@ -185,7 +185,7 @@
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</update>
|
|
</update>
|
|
- <insert id="insertSearchHistory" keyColumn="id" keyProperty="id" parameterType="com.caimei.module.product.entity.vo.SearchHistoryVo">
|
|
|
|
|
|
+ <insert id="insertSearchHistory" keyColumn="id" keyProperty="id" parameterType="com.caimei.module.base.entity.vo.SearchHistoryVo">
|
|
insert into user_search_history
|
|
insert into user_search_history
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="userId != null">
|
|
<if test="userId != null">
|
|
@@ -233,7 +233,7 @@
|
|
WHERE
|
|
WHERE
|
|
userId=#{userId,jdbcType=BIGINT}
|
|
userId=#{userId,jdbcType=BIGINT}
|
|
</delete>
|
|
</delete>
|
|
- <select id="findLadderPrice" resultType="com.caimei.module.product.entity.vo.LadderPriceVo">
|
|
|
|
|
|
+ <select id="findLadderPrice" resultType="com.caimei.module.base.entity.vo.LadderPriceVo">
|
|
SELECT
|
|
SELECT
|
|
<include refid="LadderPrice_Column_List" />
|
|
<include refid="LadderPrice_Column_List" />
|
|
FROM
|
|
FROM
|
|
@@ -248,7 +248,7 @@
|
|
<select id="getRecommendIds" resultType="java.lang.Integer">
|
|
<select id="getRecommendIds" resultType="java.lang.Integer">
|
|
SELECT recommendProductID FROM cm_product_recommend WHERE productID=#{productID} ORDER BY sort ASC
|
|
SELECT recommendProductID FROM cm_product_recommend WHERE productID=#{productID} ORDER BY sort ASC
|
|
</select>
|
|
</select>
|
|
- <select id="getRecommendByIds" resultType="com.caimei.module.product.entity.vo.ProductVo">
|
|
|
|
|
|
+ <select id="getRecommendByIds" resultType="com.caimei.module.base.entity.vo.ProductVo">
|
|
SELECT
|
|
SELECT
|
|
<include refid="Product_Column_List"/>
|
|
<include refid="Product_Column_List"/>
|
|
FROM
|
|
FROM
|
|
@@ -260,7 +260,7 @@
|
|
#{productID}
|
|
#{productID}
|
|
</foreach>
|
|
</foreach>
|
|
</select>
|
|
</select>
|
|
- <select id="getDeFaultRecommend" resultType="com.caimei.module.product.entity.vo.ProductVo">
|
|
|
|
|
|
+ <select id="getDeFaultRecommend" resultType="com.caimei.module.base.entity.vo.ProductVo">
|
|
select
|
|
select
|
|
<include refid="Product_Column_List" />
|
|
<include refid="Product_Column_List" />
|
|
from product
|
|
from product
|