...
|
...
|
@@ -5,15 +5,17 @@ |
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="order_code" property="orderCode" jdbcType="BIGINT" />
|
|
|
<result column="start_time" property="startTime" jdbcType="INTEGER" />
|
|
|
<result column="camera_code" property="cameraCode" javaType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, order_code, start_time
|
|
|
id, order_code, start_time, camera_code
|
|
|
</sql>
|
|
|
<select id="selectByOrderCode" resultType="java.lang.Integer">
|
|
|
select start_time from live_record_time where order_code = #{orderCode,jdbcType=BIGINT} limit 1
|
|
|
</select>
|
|
|
<insert id="insertOrUpdate" parameterType="com.yoho.order.model.LiveRecordTime" >
|
|
|
insert into live_record_time (order_code, start_time)
|
|
|
values (#{orderCode,jdbcType=BIGINT}, #{startTime,jdbcType=INTEGER})ON DUPLICATE KEY UPDATE start_time=#{startTime,jdbcType=INTEGER}
|
|
|
insert into live_record_time (order_code, start_time, camera_code)
|
|
|
values (#{orderCode,jdbcType=BIGINT}, #{startTime,jdbcType=INTEGER}, #{cameraCode,jdbcType=INTEGER})
|
|
|
ON DUPLICATE KEY UPDATE start_time=#{startTime,jdbcType=INTEGER}, camera_code = #{cameraCode,jdbcType=INTEGER}
|
|
|
</insert>
|
|
|
</mapper> |
|
|
\ No newline at end of file |
...
|
...
|
|