|
@ -4,8 +4,9 @@ |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
<resultMap id="BaseResultMap" type="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
<result column="car_id" jdbcType="BIGINT" property="carId" /> |
|
|
<result column="car_id" jdbcType="BIGINT" property="carId" /> |
|
|
<result column="beginTime" jdbcType="BIGINT" property="begintime" /> |
|
|
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|
|
<result column="endTime" jdbcType="BIGINT" property="endtime" /> |
|
|
<result column="begin_time" jdbcType="BIGINT" property="beginTime" /> |
|
|
|
|
|
<result column="end_time" jdbcType="BIGINT" property="endTime" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
@ -69,7 +70,7 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, car_id, beginTime, endTime, created_at, updated_at, rec_status |
|
|
id, car_id, hospital_id, begin_time, end_time, created_at, updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.wisdomcar.bean.po.FirstAidExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -102,12 +103,12 @@ |
|
|
</if> |
|
|
</if> |
|
|
</delete> |
|
|
</delete> |
|
|
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
<insert id="insert" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
insert into t_first_aid (id, car_id, beginTime, |
|
|
insert into t_first_aid (id, car_id, hospital_id, |
|
|
endTime, created_at, updated_at, |
|
|
begin_time, end_time, created_at, |
|
|
rec_status) |
|
|
updated_at, rec_status) |
|
|
values (#{id,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, #{begintime,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT}, |
|
|
#{endtime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
#{beginTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
insert into t_first_aid |
|
|
insert into t_first_aid |
|
@ -118,11 +119,14 @@ |
|
|
<if test="carId != null"> |
|
|
<if test="carId != null"> |
|
|
car_id, |
|
|
car_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="begintime != null"> |
|
|
<if test="hospitalId != null"> |
|
|
beginTime, |
|
|
hospital_id, |
|
|
</if> |
|
|
</if> |
|
|
<if test="endtime != null"> |
|
|
<if test="beginTime != null"> |
|
|
endTime, |
|
|
begin_time, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="endTime != null"> |
|
|
|
|
|
end_time, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
created_at, |
|
|
created_at, |
|
@ -141,11 +145,14 @@ |
|
|
<if test="carId != null"> |
|
|
<if test="carId != null"> |
|
|
#{carId,jdbcType=BIGINT}, |
|
|
#{carId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="begintime != null"> |
|
|
<if test="hospitalId != null"> |
|
|
#{begintime,jdbcType=BIGINT}, |
|
|
#{hospitalId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="beginTime != null"> |
|
|
|
|
|
#{beginTime,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="endtime != null"> |
|
|
<if test="endTime != null"> |
|
|
#{endtime,jdbcType=BIGINT}, |
|
|
#{endTime,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
@ -173,11 +180,14 @@ |
|
|
<if test="record.carId != null"> |
|
|
<if test="record.carId != null"> |
|
|
car_id = #{record.carId,jdbcType=BIGINT}, |
|
|
car_id = #{record.carId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.begintime != null"> |
|
|
<if test="record.hospitalId != null"> |
|
|
beginTime = #{record.begintime,jdbcType=BIGINT}, |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.endtime != null"> |
|
|
<if test="record.beginTime != null"> |
|
|
endTime = #{record.endtime,jdbcType=BIGINT}, |
|
|
begin_time = #{record.beginTime,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.endTime != null"> |
|
|
|
|
|
end_time = #{record.endTime,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.createdAt != null"> |
|
|
<if test="record.createdAt != null"> |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
@ -197,8 +207,9 @@ |
|
|
update t_first_aid |
|
|
update t_first_aid |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
car_id = #{record.carId,jdbcType=BIGINT}, |
|
|
car_id = #{record.carId,jdbcType=BIGINT}, |
|
|
beginTime = #{record.begintime,jdbcType=BIGINT}, |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
endTime = #{record.endtime,jdbcType=BIGINT}, |
|
|
begin_time = #{record.beginTime,jdbcType=BIGINT}, |
|
|
|
|
|
end_time = #{record.endTime,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
@ -212,11 +223,14 @@ |
|
|
<if test="carId != null"> |
|
|
<if test="carId != null"> |
|
|
car_id = #{carId,jdbcType=BIGINT}, |
|
|
car_id = #{carId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="begintime != null"> |
|
|
<if test="hospitalId != null"> |
|
|
beginTime = #{begintime,jdbcType=BIGINT}, |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="beginTime != null"> |
|
|
|
|
|
begin_time = #{beginTime,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="endtime != null"> |
|
|
<if test="endTime != null"> |
|
|
endTime = #{endtime,jdbcType=BIGINT}, |
|
|
end_time = #{endTime,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="createdAt != null"> |
|
|
<if test="createdAt != null"> |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
@ -233,8 +247,9 @@ |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.wisdomcar.bean.po.FirstAid"> |
|
|
update t_first_aid |
|
|
update t_first_aid |
|
|
set car_id = #{carId,jdbcType=BIGINT}, |
|
|
set car_id = #{carId,jdbcType=BIGINT}, |
|
|
beginTime = #{begintime,jdbcType=BIGINT}, |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
endTime = #{endtime,jdbcType=BIGINT}, |
|
|
begin_time = #{beginTime,jdbcType=BIGINT}, |
|
|
|
|
|
end_time = #{endTime,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|