|
|
@ -3,7 +3,7 @@ |
|
|
|
<mapper namespace="com.ccsens.health.persist.mapper.JourneyMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.health.bean.po.Journey"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="employee_id" jdbcType="BIGINT" property="employeeId" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="trip_mode" jdbcType="TINYINT" property="tripMode" /> |
|
|
|
<result column="car_no" jdbcType="VARCHAR" property="carNo" /> |
|
|
|
<result column="start_time" jdbcType="BIGINT" property="startTime" /> |
|
|
@ -74,8 +74,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, employee_id, trip_mode, car_no, start_time, end_time, journey_type, together, |
|
|
|
self_fill, created_at, updated_at, rec_status |
|
|
|
id, user_id, trip_mode, car_no, start_time, end_time, journey_type, together, self_fill, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.JourneyExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -108,12 +108,12 @@ |
|
|
|
</if> |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.Journey"> |
|
|
|
insert into t_journey (id, employee_id, trip_mode, |
|
|
|
insert into t_journey (id, user_id, trip_mode, |
|
|
|
car_no, start_time, end_time, |
|
|
|
journey_type, together, self_fill, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{tripMode,jdbcType=TINYINT}, |
|
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{tripMode,jdbcType=TINYINT}, |
|
|
|
#{carNo,jdbcType=VARCHAR}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, |
|
|
|
#{journeyType,jdbcType=TINYINT}, #{together,jdbcType=VARCHAR}, #{selfFill,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
@ -125,8 +125,8 @@ |
|
|
|
<if test="id != null"> |
|
|
|
id, |
|
|
|
</if> |
|
|
|
<if test="employeeId != null"> |
|
|
|
employee_id, |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
|
<if test="tripMode != null"> |
|
|
|
trip_mode, |
|
|
@ -163,8 +163,8 @@ |
|
|
|
<if test="id != null"> |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="employeeId != null"> |
|
|
|
#{employeeId,jdbcType=BIGINT}, |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="tripMode != null"> |
|
|
|
#{tripMode,jdbcType=TINYINT}, |
|
|
@ -210,8 +210,8 @@ |
|
|
|
<if test="record.id != null"> |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.employeeId != null"> |
|
|
|
employee_id = #{record.employeeId,jdbcType=BIGINT}, |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.tripMode != null"> |
|
|
|
trip_mode = #{record.tripMode,jdbcType=TINYINT}, |
|
|
@ -251,7 +251,7 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_journey |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
employee_id = #{record.employeeId,jdbcType=BIGINT}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
trip_mode = #{record.tripMode,jdbcType=TINYINT}, |
|
|
|
car_no = #{record.carNo,jdbcType=VARCHAR}, |
|
|
|
start_time = #{record.startTime,jdbcType=BIGINT}, |
|
|
@ -269,8 +269,8 @@ |
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.health.bean.po.Journey"> |
|
|
|
update t_journey |
|
|
|
<set> |
|
|
|
<if test="employeeId != null"> |
|
|
|
employee_id = #{employeeId,jdbcType=BIGINT}, |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="tripMode != null"> |
|
|
|
trip_mode = #{tripMode,jdbcType=TINYINT}, |
|
|
@ -307,7 +307,7 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.health.bean.po.Journey"> |
|
|
|
update t_journey |
|
|
|
set employee_id = #{employeeId,jdbcType=BIGINT}, |
|
|
|
set user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
trip_mode = #{tripMode,jdbcType=TINYINT}, |
|
|
|
car_no = #{carNo,jdbcType=VARCHAR}, |
|
|
|
start_time = #{startTime,jdbcType=BIGINT}, |
|
|
|