|
@@ -5,8 +5,8 @@
|
|
<mapper namespace="com.caimei.mapper.OrderSubmitMapper">
|
|
<mapper namespace="com.caimei.mapper.OrderSubmitMapper">
|
|
<sql id="Product_Column_List">
|
|
<sql id="Product_Column_List">
|
|
p.productID, p.brandID,p.bigTypeID,p.smallTypeID, p.tinyTypeID,p.productCategory, p.preferredFlag, p.selfTypeID, p.shopID, p.`name`, p.aliasName, p.searchKey, p.productRemarks,
|
|
p.productID, p.brandID,p.bigTypeID,p.smallTypeID, p.tinyTypeID,p.productCategory, p.preferredFlag, p.selfTypeID, p.shopID, p.`name`, p.aliasName, p.searchKey, p.productRemarks,
|
|
- p.normalPrice, p.price, p.highestUserLevelPrice, lowestUserLevelPrice, p.lowestUserLevelID,
|
|
|
|
- p.price0, p.price0Grade, p.price0Text, price0TextFlag, price1, p.price1Grade, p.price1Text,
|
|
|
|
|
|
+ p.normalPrice, p.price, p.highestUserLevelPrice, p.lowestUserLevelPrice, p.lowestUserLevelID,
|
|
|
|
+ p.price0, p.price0Grade, p.price0Text, p.price0TextFlag, p.price1, p.price1Grade, p.price1Text,
|
|
p.price1TextFlag, p.price8, p.price8Grade, p.price8Text, p.price8Text as beautyActFlag, p.price8TextFlag, p.ladderPriceFlag,
|
|
p.price1TextFlag, p.price8, p.price8Grade, p.price8Text, p.price8Text as beautyActFlag, p.price8TextFlag, p.ladderPriceFlag,
|
|
p.price2, p.price3, p.price4, p.price5, p.price6, p.price7, p.fee, p.stock, p.hasSkuFlag, p.mainImage,
|
|
p.price2, p.price3, p.price4, p.price5, p.price6, p.price7, p.fee, p.stock, p.hasSkuFlag, p.mainImage,
|
|
p.propertiesInfo, p.addTime, p.updateTime, p.sellNumber, p.weekSellNumber, p.beforeValidFlag,
|
|
p.propertiesInfo, p.addTime, p.updateTime, p.sellNumber, p.weekSellNumber, p.beforeValidFlag,
|
|
@@ -41,6 +41,7 @@
|
|
<foreach item="productId" index="index" collection="productIds" open="(" separator="," close=")">
|
|
<foreach item="productId" index="index" collection="productIds" open="(" separator="," close=")">
|
|
#{productId}
|
|
#{productId}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ GROUP BY s.shopID
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findProductListByCart" resultType="com.caimei.model.vo.CartProductVo">
|
|
<select id="findProductListByCart" resultType="com.caimei.model.vo.CartProductVo">
|
|
@@ -68,6 +69,7 @@
|
|
#{productId}
|
|
#{productId}
|
|
</foreach>
|
|
</foreach>
|
|
AND p.shopID = #{shopId}
|
|
AND p.shopID = #{shopId}
|
|
|
|
+ AND cmc.userID = #{userId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="findCartByProductId" resultType="com.caimei.model.vo.CartProductVo">
|
|
<select id="findCartByProductId" resultType="com.caimei.model.vo.CartProductVo">
|
|
@@ -125,7 +127,8 @@
|
|
bindMobile,
|
|
bindMobile,
|
|
userName,
|
|
userName,
|
|
realName,
|
|
realName,
|
|
- name
|
|
|
|
|
|
+ name,
|
|
|
|
+ clubID
|
|
FROM
|
|
FROM
|
|
user
|
|
user
|
|
WHERE
|
|
WHERE
|
|
@@ -138,6 +141,9 @@
|
|
<if test="orderNo != null">
|
|
<if test="orderNo != null">
|
|
orderNo,
|
|
orderNo,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="organizeID != null">
|
|
|
|
+ organizeID,
|
|
|
|
+ </if>
|
|
<if test="userID != null">
|
|
<if test="userID != null">
|
|
userID,
|
|
userID,
|
|
</if>
|
|
</if>
|
|
@@ -314,6 +320,9 @@
|
|
<if test="orderNo != null">
|
|
<if test="orderNo != null">
|
|
#{orderNo,jdbcType=VARCHAR},
|
|
#{orderNo,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="organizeID != null">
|
|
|
|
+ #{organizeID},
|
|
|
|
+ </if>
|
|
<if test="userID != null">
|
|
<if test="userID != null">
|
|
#{userID,jdbcType=BIGINT},
|
|
#{userID,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
@@ -736,9 +745,6 @@
|
|
<if test="shopOtherFee != null">
|
|
<if test="shopOtherFee != null">
|
|
shopOtherFee,
|
|
shopOtherFee,
|
|
</if>
|
|
</if>
|
|
- <if test="refunding != null">
|
|
|
|
- refunding,
|
|
|
|
- </if>
|
|
|
|
<if test="costType != null">
|
|
<if test="costType != null">
|
|
costType,
|
|
costType,
|
|
</if>
|
|
</if>
|
|
@@ -768,7 +774,9 @@
|
|
<if test="orderID != null">
|
|
<if test="orderID != null">
|
|
#{orderID,jdbcType=BIGINT},
|
|
#{orderID,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
- <if test="organizeID != null">0,</if>
|
|
|
|
|
|
+ <if test="organizeID != null">
|
|
|
|
+ #{organizeID},
|
|
|
|
+ </if>
|
|
<if test="userID != null">
|
|
<if test="userID != null">
|
|
#{userID,jdbcType=INTEGER},
|
|
#{userID,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -958,9 +966,6 @@
|
|
<if test="shopOtherFee != null">
|
|
<if test="shopOtherFee != null">
|
|
#{shopOtherFee,jdbcType=DECIMAL},
|
|
#{shopOtherFee,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="refunding != null">
|
|
|
|
- #{refunding,jdbcType=CHAR},
|
|
|
|
- </if>
|
|
|
|
<if test="costType != null">
|
|
<if test="costType != null">
|
|
#{costType,jdbcType=CHAR},
|
|
#{costType,jdbcType=CHAR},
|
|
</if>
|
|
</if>
|
|
@@ -1203,7 +1208,9 @@
|
|
<if test="organizeProductID != null">
|
|
<if test="organizeProductID != null">
|
|
#{organizeProductID,jdbcType=INTEGER},
|
|
#{organizeProductID,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="organizeID != null">0,</if>
|
|
|
|
|
|
+ <if test="organizeID != null">
|
|
|
|
+ #{organizeID},
|
|
|
|
+ </if>
|
|
<if test="num != null">
|
|
<if test="num != null">
|
|
#{num,jdbcType=INTEGER},
|
|
#{num,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
@@ -1393,9 +1400,6 @@
|
|
<if test="orderNo != null">
|
|
<if test="orderNo != null">
|
|
orderNo = #{orderNo,jdbcType=VARCHAR},
|
|
orderNo = #{orderNo,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="organizeID != null">
|
|
|
|
- organizeID = 0,
|
|
|
|
- </if>
|
|
|
|
<if test="userID != null">
|
|
<if test="userID != null">
|
|
userID = #{userID,jdbcType=BIGINT},
|
|
userID = #{userID,jdbcType=BIGINT},
|
|
</if>
|
|
</if>
|
|
@@ -1797,30 +1801,4 @@
|
|
LEFT JOIN province p ON p.provinceID = c.provinceID
|
|
LEFT JOIN province p ON p.provinceID = c.provinceID
|
|
WHERE a.addressID = #{addressId}
|
|
WHERE a.addressID = #{addressId}
|
|
</select>
|
|
</select>
|
|
-
|
|
|
|
- <select id="findProductById" resultType="com.caimei.model.po.ProductPo">
|
|
|
|
- select
|
|
|
|
- <include refid="Product_Column_List" />
|
|
|
|
- FROM
|
|
|
|
- cm_organize_product cop
|
|
|
|
- LEFT JOIN product p ON cop.productId = p.productID
|
|
|
|
- where cop.id = #{productId}
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
- <select id="countUserOrder" resultType="java.lang.Integer">
|
|
|
|
- SELECT COUNT(*) FROM cm_order
|
|
|
|
- WHERE userID = #{userId}
|
|
|
|
- AND delFlag=0 AND STATUS != 6
|
|
|
|
- </select>
|
|
|
|
-
|
|
|
|
- <select id="findCityByTownId" resultType="com.caimei.model.vo.CityVo">
|
|
|
|
- SELECT
|
|
|
|
- cityID AS cityId,
|
|
|
|
- provinceID AS provinceId,
|
|
|
|
- name
|
|
|
|
- FROM city
|
|
|
|
- WHERE cityID =(
|
|
|
|
- SELECT cityID from town where townID = #{townId}
|
|
|
|
- )
|
|
|
|
- </select>
|
|
|
|
</mapper>
|
|
</mapper>
|