...
|
...
|
@@ -9,16 +9,15 @@ |
|
|
<result column="channel_price" property="channelPrice" jdbcType="DECIMAL" />
|
|
|
<result column="low_rate" property="lowRate" jdbcType="DECIMAL" />
|
|
|
<result column="high_rate" property="highRate" jdbcType="DECIMAL" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="channel_url" property="channelUrl" jdbcType="VARCHAR" />
|
|
|
<result column="status" property="status" jdbcType="INTEGER" />
|
|
|
<result column="change_status_time" property="changeStatusTime" jdbcType="INTEGER" />
|
|
|
<result column="change_status_uid" property="changeStatusUid" jdbcType="INTEGER" />
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER" />
|
|
|
<result column="update_uid" property="updateUid" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
id, product_id, sku, size_id, channel_price, low_rate, high_rate, update_time, channel_url,
|
|
|
status, change_status_time, change_status_uid
|
|
|
id, product_id, sku, size_id, channel_price, low_rate, high_rate, channel_url,
|
|
|
status, update_time, update_uid
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectById" resultMap="BaseResultMap">
|
...
|
...
|
@@ -70,17 +69,17 @@ |
|
|
</select>
|
|
|
|
|
|
<update id="updateChangeStatusById">
|
|
|
update channel_sku_compare set status=#{status}, change_status_time=#{changeStatusTime}, change_status_uid=#{changeStatusUid}
|
|
|
update channel_sku_compare set status=#{status}, update_time=unix_timestamp(), update_uid=#{updateUid}
|
|
|
where id=#{id}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateRateById">
|
|
|
update channel_sku_compare set low_rate=#{lowRate}, high_rate=#{highRate}
|
|
|
update channel_sku_compare set low_rate=#{lowRate}, high_rate=#{highRate}, update_uid=#{uid}, update_time=unix_timestamp()
|
|
|
where id=#{id}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateStatusByIds">
|
|
|
update channel_sku_compare set status=#{status} where id in
|
|
|
update channel_sku_compare set status=#{status}, update_time=unix_timestamp(), update_uid=#{uid} where id in
|
|
|
<foreach collection="idList" item="id" open="(" close=")" separator=",">
|
|
|
#{id}
|
|
|
</foreach>
|
...
|
...
|
|