|
|
@@ -643,6 +643,81 @@
|
|
|
</where>
|
|
|
LIMIT 1
|
|
|
</select>
|
|
|
+ <select id="getOrderImageTotalNum" parameterType="java.util.Map"
|
|
|
+ resultType="com.izouma.awesomeadmin.model.OrderImage">
|
|
|
+ select
|
|
|
+ COUNT(1) AS total_num
|
|
|
+ <if test="orderId != null and !"".equals(orderId)">
|
|
|
+ ,
|
|
|
+ (
|
|
|
+ SELECT
|
|
|
+ user_order.quantity
|
|
|
+ FROM
|
|
|
+ user_order
|
|
|
+ WHERE
|
|
|
+ user_order.del_flag = 'N'
|
|
|
+ AND user_order.id = #{orderId}
|
|
|
+ ) order_num
|
|
|
+ </if>
|
|
|
+
|
|
|
+
|
|
|
+ from order_image
|
|
|
+ <where>
|
|
|
+ and del_flag = 'N'
|
|
|
+ <if test="id != null and !"".equals(id)">
|
|
|
+ and id = #{id}
|
|
|
+ </if>
|
|
|
+ <if test="delFlag != null and !"".equals(delFlag)">
|
|
|
+ and del_flag = #{delFlag}
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null and !"".equals(updateTime)">
|
|
|
+ and update_time = #{updateTime}
|
|
|
+ </if>
|
|
|
+ <if test="updateUser != null and !"".equals(updateUser)">
|
|
|
+ and update_user = #{updateUser}
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null and !"".equals(createTime)">
|
|
|
+ and create_time = #{createTime}
|
|
|
+ </if>
|
|
|
+ <if test="createUser != null and !"".equals(createUser)">
|
|
|
+ and create_user = #{createUser}
|
|
|
+ </if>
|
|
|
+ <if test="orderId != null and !"".equals(orderId)">
|
|
|
+ and order_id = #{orderId}
|
|
|
+ </if>
|
|
|
+ <if test="userId != null and !"".equals(userId)">
|
|
|
+ and user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ <if test="storeId != null and !"".equals(storeId)">
|
|
|
+ and store_id = #{storeId}
|
|
|
+ </if>
|
|
|
+ <if test="originalImage != null and !"".equals(originalImage)">
|
|
|
+ and original_image = #{originalImage}
|
|
|
+ </if>
|
|
|
+ <if test="originalSize != null and !"".equals(originalSize)">
|
|
|
+ and original_size = #{originalSize}
|
|
|
+ </if>
|
|
|
+ <if test="finishedImage != null and !"".equals(finishedImage)">
|
|
|
+ and finished_image = #{finishedImage}
|
|
|
+ </if>
|
|
|
+ <if test="finishedSize != null and !"".equals(finishedSize)">
|
|
|
+ and finished_size = #{finishedSize}
|
|
|
+ </if>
|
|
|
+ <if test="dealUser != null and !"".equals(dealUser)">
|
|
|
+ and deal_user = #{dealUser}
|
|
|
+ </if>
|
|
|
+ <if test="statusFlag != null and !"".equals(statusFlag)">
|
|
|
+ and status_flag = #{statusFlag}
|
|
|
+ </if>
|
|
|
+ <if test="remark != null and !"".equals(remark)">
|
|
|
+ and remark = #{remark}
|
|
|
+ </if>
|
|
|
+ <if test="imageName != null and !"".equals(imageName)">
|
|
|
+ and image_name = #{imageName}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
<select id="getMemorySize" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.OrderImage">
|
|
|
SELECT
|
|
|
store_id,
|
|
|
@@ -733,7 +808,8 @@
|
|
|
order by id desc
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryAutoCleanOrderImage" parameterType="java.util.Map" resultType="com.izouma.awesomeadmin.model.OrderImage">
|
|
|
+ <select id="queryAutoCleanOrderImage" parameterType="java.util.Map"
|
|
|
+ resultType="com.izouma.awesomeadmin.model.OrderImage">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
from order_image
|