...
|
...
|
@@ -8,9 +8,10 @@ |
|
|
<result column="begin_time" property="beginTime" jdbcType="INTEGER"/>
|
|
|
<result column="end_time" property="endTime" jdbcType="INTEGER"/>
|
|
|
<result column="quantity" property="quantity" jdbcType="INTEGER"/>
|
|
|
<result column="update_time" property="updateTime" jdbcType="INTEGER"/>
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
|
id, stats_code, uid, begin_time, end_time, quantity
|
|
|
id, stats_code, uid, begin_time, end_time, quantity, update_time
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectStatsResult" resultMap="BaseResultMap">
|
...
|
...
|
@@ -25,9 +26,9 @@ |
|
|
</select>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.order.model.SellerOrderStatsResult">
|
|
|
insert into seller_order_stats_result (id, uid, stats_code,begin_time, end_time, quantity)
|
|
|
insert into seller_order_stats_result (id, uid, stats_code,begin_time, end_time, quantity, update_time)
|
|
|
values (#{id,jdbcType=BIGINT}, #{uid,jdbcType=INTEGER}, #{statsCode,jdbcType=VARCHAR},
|
|
|
#{beginTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{quantity,jdbcType=INTEGER})
|
|
|
ON DUPLICATE KEY UPDATE quantity = #{quantity,jdbcType=INTEGER} + quantity
|
|
|
#{beginTime,jdbcType=INTEGER}, #{endTime,jdbcType=INTEGER}, #{quantity,jdbcType=INTEGER}, #{updateTime,jdbcType=INTEGER})
|
|
|
ON DUPLICATE KEY UPDATE quantity = #{quantity,jdbcType=INTEGER} + quantity,update_time = #{updateTime,jdbcType=INTEGER}
|
|
|
</insert>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|