|
|
@@ -37,15 +37,21 @@
|
|
|
<result column="use_type" property="useType" jdbcType="VARCHAR"/>
|
|
|
<result column="order_id" property="orderId" jdbcType="INTEGER"/>
|
|
|
<result column="tail_money" property="tailMoney" jdbcType="DECIMAL"/>
|
|
|
+ <result column="book_photo_time" property="bookPhotoTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="photo_time" property="photoTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="book_select_time" property="bookSelectTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="select_time" property="selectTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="book_check_time" property="bookCheckTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="check_time" property="checkTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="book_access_time" property="bookAccessTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="access_time" property="accessTime" jdbcType="TIMESTAMP"/>
|
|
|
+ <result column="comment_time" property="commentTime" jdbcType="TIMESTAMP"/>
|
|
|
<!--generatedEnd-->
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
<!--generatedStart-->
|
|
|
- id, del_flag, update_time, update_user, create_time, create_user, user_id, order_code, store_id, type_flag,
|
|
|
- product_id, product_name, down_payment, unit_price, quantity, off_price, coupon_price, total_price, deal_price,
|
|
|
- pay_mode, pay_time, remark, show_flag, status_flag, fee, coin, point, cash, user_address_id, service_id,
|
|
|
- message, use_type, order_id, tail_money <!--generatedEnd-->
|
|
|
+ id, del_flag, update_time, update_user, create_time, create_user, user_id, order_code, store_id, type_flag, product_id, product_name, down_payment, unit_price, quantity, off_price, coupon_price, total_price, deal_price, pay_mode, pay_time, remark, show_flag, status_flag, fee, coin, point, cash, user_address_id, service_id, message, use_type, order_id, tail_money, book_photo_time, photo_time, book_select_time, select_time, book_check_time, check_time, book_access_time, access_time, comment_time <!--generatedEnd-->
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer">
|
|
|
@@ -168,6 +174,33 @@
|
|
|
<if test="tailMoney!= null">
|
|
|
tail_money,
|
|
|
</if>
|
|
|
+ <if test="bookPhotoTime!= null">
|
|
|
+ book_photo_time,
|
|
|
+ </if>
|
|
|
+ <if test="photoTime!= null">
|
|
|
+ photo_time,
|
|
|
+ </if>
|
|
|
+ <if test="bookSelectTime!= null">
|
|
|
+ book_select_time,
|
|
|
+ </if>
|
|
|
+ <if test="selectTime!= null">
|
|
|
+ select_time,
|
|
|
+ </if>
|
|
|
+ <if test="bookCheckTime!= null">
|
|
|
+ book_check_time,
|
|
|
+ </if>
|
|
|
+ <if test="checkTime!= null">
|
|
|
+ check_time,
|
|
|
+ </if>
|
|
|
+ <if test="bookAccessTime!= null">
|
|
|
+ book_access_time,
|
|
|
+ </if>
|
|
|
+ <if test="accessTime!= null">
|
|
|
+ access_time,
|
|
|
+ </if>
|
|
|
+ <if test="commentTime!= null">
|
|
|
+ comment_time,
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
@@ -274,6 +307,33 @@
|
|
|
<if test="tailMoney != null">
|
|
|
#{tailMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bookPhotoTime != null">
|
|
|
+ #{bookPhotoTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="photoTime != null">
|
|
|
+ #{photoTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookSelectTime != null">
|
|
|
+ #{bookSelectTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="selectTime != null">
|
|
|
+ #{selectTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookCheckTime != null">
|
|
|
+ #{bookCheckTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="checkTime != null">
|
|
|
+ #{checkTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookAccessTime != null">
|
|
|
+ #{bookAccessTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="accessTime != null">
|
|
|
+ #{accessTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="commentTime != null">
|
|
|
+ #{commentTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</trim>
|
|
|
</insert>
|
|
|
@@ -384,6 +444,33 @@
|
|
|
<if test="tailMoney != null">
|
|
|
tail_money= #{tailMoney,jdbcType=DECIMAL},
|
|
|
</if>
|
|
|
+ <if test="bookPhotoTime != null">
|
|
|
+ book_photo_time= #{bookPhotoTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="photoTime != null">
|
|
|
+ photo_time= #{photoTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookSelectTime != null">
|
|
|
+ book_select_time= #{bookSelectTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="selectTime != null">
|
|
|
+ select_time= #{selectTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookCheckTime != null">
|
|
|
+ book_check_time= #{bookCheckTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="checkTime != null">
|
|
|
+ check_time= #{checkTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="bookAccessTime != null">
|
|
|
+ book_access_time= #{bookAccessTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="accessTime != null">
|
|
|
+ access_time= #{accessTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
+ <if test="commentTime != null">
|
|
|
+ comment_time= #{commentTime,jdbcType=TIMESTAMP},
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</set>
|
|
|
WHERE
|
|
|
@@ -508,6 +595,33 @@
|
|
|
<if test="record.tailMoney != null and !"".equals(record.tailMoney)">
|
|
|
AND tail_money = #{record.tailMoney}
|
|
|
</if>
|
|
|
+ <if test="record.bookPhotoTime != null and !"".equals(record.bookPhotoTime)">
|
|
|
+ AND book_photo_time = #{record.bookPhotoTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.photoTime != null and !"".equals(record.photoTime)">
|
|
|
+ AND photo_time = #{record.photoTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.bookSelectTime != null and !"".equals(record.bookSelectTime)">
|
|
|
+ AND book_select_time = #{record.bookSelectTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.selectTime != null and !"".equals(record.selectTime)">
|
|
|
+ AND select_time = #{record.selectTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.bookCheckTime != null and !"".equals(record.bookCheckTime)">
|
|
|
+ AND book_check_time = #{record.bookCheckTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.checkTime != null and !"".equals(record.checkTime)">
|
|
|
+ AND check_time = #{record.checkTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.bookAccessTime != null and !"".equals(record.bookAccessTime)">
|
|
|
+ AND book_access_time = #{record.bookAccessTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.accessTime != null and !"".equals(record.accessTime)">
|
|
|
+ AND access_time = #{record.accessTime}
|
|
|
+ </if>
|
|
|
+ <if test="record.commentTime != null and !"".equals(record.commentTime)">
|
|
|
+ AND comment_time = #{record.commentTime}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
<if test="record.searchKey != null and !"".equals(record.searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -526,7 +640,6 @@
|
|
|
OR total_price LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR deal_price LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR pay_mode LIKE concat('%',#{record.searchKey},'%')
|
|
|
- OR pay_time LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR show_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
OR status_flag LIKE concat('%',#{record.searchKey},'%')
|
|
|
@@ -698,6 +811,33 @@
|
|
|
<if test="tailMoney != null and !"".equals(tailMoney)">
|
|
|
AND tail_money = #{tailMoney}
|
|
|
</if>
|
|
|
+ <if test="bookPhotoTime != null and !"".equals(bookPhotoTime)">
|
|
|
+ AND book_photo_time = #{bookPhotoTime}
|
|
|
+ </if>
|
|
|
+ <if test="photoTime != null and !"".equals(photoTime)">
|
|
|
+ AND photo_time = #{photoTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookSelectTime != null and !"".equals(bookSelectTime)">
|
|
|
+ AND book_select_time = #{bookSelectTime}
|
|
|
+ </if>
|
|
|
+ <if test="selectTime != null and !"".equals(selectTime)">
|
|
|
+ AND select_time = #{selectTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookCheckTime != null and !"".equals(bookCheckTime)">
|
|
|
+ AND book_check_time = #{bookCheckTime}
|
|
|
+ </if>
|
|
|
+ <if test="checkTime != null and !"".equals(checkTime)">
|
|
|
+ AND check_time = #{checkTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookAccessTime != null and !"".equals(bookAccessTime)">
|
|
|
+ AND book_access_time = #{bookAccessTime}
|
|
|
+ </if>
|
|
|
+ <if test="accessTime != null and !"".equals(accessTime)">
|
|
|
+ AND access_time = #{accessTime}
|
|
|
+ </if>
|
|
|
+ <if test="commentTime != null and !"".equals(commentTime)">
|
|
|
+ AND comment_time = #{commentTime}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
<if test="searchKey != null and !"".equals(searchKey)">
|
|
|
<trim prefix="and (" suffix=")" prefixOverrides="OR">
|
|
|
@@ -716,7 +856,6 @@
|
|
|
OR total_price LIKE concat('%',#{searchKey},'%')
|
|
|
OR deal_price LIKE concat('%',#{searchKey},'%')
|
|
|
OR pay_mode LIKE concat('%',#{searchKey},'%')
|
|
|
- OR pay_time LIKE concat('%',#{searchKey},'%')
|
|
|
OR remark LIKE concat('%',#{searchKey},'%')
|
|
|
OR show_flag LIKE concat('%',#{searchKey},'%')
|
|
|
OR status_flag LIKE concat('%',#{searchKey},'%')
|
|
|
@@ -884,6 +1023,33 @@
|
|
|
<if test="tailMoney != null and !"".equals(tailMoney)">
|
|
|
AND tail_money = #{tailMoney}
|
|
|
</if>
|
|
|
+ <if test="bookPhotoTime != null and !"".equals(bookPhotoTime)">
|
|
|
+ AND book_photo_time = #{bookPhotoTime}
|
|
|
+ </if>
|
|
|
+ <if test="photoTime != null and !"".equals(photoTime)">
|
|
|
+ AND photo_time = #{photoTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookSelectTime != null and !"".equals(bookSelectTime)">
|
|
|
+ AND book_select_time = #{bookSelectTime}
|
|
|
+ </if>
|
|
|
+ <if test="selectTime != null and !"".equals(selectTime)">
|
|
|
+ AND select_time = #{selectTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookCheckTime != null and !"".equals(bookCheckTime)">
|
|
|
+ AND book_check_time = #{bookCheckTime}
|
|
|
+ </if>
|
|
|
+ <if test="checkTime != null and !"".equals(checkTime)">
|
|
|
+ AND check_time = #{checkTime}
|
|
|
+ </if>
|
|
|
+ <if test="bookAccessTime != null and !"".equals(bookAccessTime)">
|
|
|
+ AND book_access_time = #{bookAccessTime}
|
|
|
+ </if>
|
|
|
+ <if test="accessTime != null and !"".equals(accessTime)">
|
|
|
+ AND access_time = #{accessTime}
|
|
|
+ </if>
|
|
|
+ <if test="commentTime != null and !"".equals(commentTime)">
|
|
|
+ AND comment_time = #{commentTime}
|
|
|
+ </if>
|
|
|
<!--generatedEnd-->
|
|
|
</where>
|
|
|
LIMIT 1
|