@ -4,7 +4,7 @@
<resultMap id= "BaseResultMap" type= "com.ccsens.wisdomcar.bean.po.PatientWisdomCar" >
<id column= "id" jdbcType= "BIGINT" property= "id" />
<result column= "patient_id" jdbcType= "BIGINT" property= "patientId" />
<result column= "task_sub_id " jdbcType= "BIGINT" property= "taskSubId " />
<result column= "batch " jdbcType= "BIGINT" property= "batch " />
<result column= "car_id" jdbcType= "BIGINT" property= "carId" />
<result column= "start_time" jdbcType= "BIGINT" property= "startTime" />
<result column= "end_time" jdbcType= "BIGINT" property= "endTime" />
@ -73,7 +73,7 @@
</where>
</sql>
<sql id= "Base_Column_List" >
id, patient_id, task_sub_id , car_id, start_time, end_time, is_demo, created_at, updated_at,
id, patient_id, batch , car_id, start_time, end_time, is_demo, created_at, updated_at,
rec_status, binding_status
</sql>
<select id= "selectByExample" parameterType= "com.ccsens.wisdomcar.bean.po.PatientWisdomCarExample" resultMap= "BaseResultMap" >
@ -107,11 +107,11 @@
</if>
</delete>
<insert id= "insert" parameterType= "com.ccsens.wisdomcar.bean.po.PatientWisdomCar" >
insert into t_patient_wisdom_car (id, patient_id, task_sub_id ,
insert into t_patient_wisdom_car (id, patient_id, batch ,
car_id, start_time, end_time,
is_demo, created_at, updated_at,
is_demo, created_at, updated_at,
rec_status, binding_status)
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{taskSubId ,jdbcType=BIGINT},
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{batch ,jdbcType=BIGINT},
#{carId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT},
#{isDemo,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP},
#{recStatus,jdbcType=TINYINT}, #{bindingStatus,jdbcType=TINYINT})
@ -125,8 +125,8 @@
<if test= "patientId != null" >
patient_id,
</if>
<if test= "taskSubId != null" >
task_sub_id ,
<if test= "batch != null" >
batch ,
</if>
<if test= "carId != null" >
car_id,
@ -160,8 +160,8 @@
<if test= "patientId != null" >
#{patientId,jdbcType=BIGINT},
</if>
<if test= "taskSubId != null" >
#{taskSubId ,jdbcType=BIGINT},
<if test= "batch != null" >
#{batch ,jdbcType=BIGINT},
</if>
<if test= "carId != null" >
#{carId,jdbcType=BIGINT},
@ -204,8 +204,8 @@
<if test= "record.patientId != null" >
patient_id = #{record.patientId,jdbcType=BIGINT},
</if>
<if test= "record.taskSubId != null" >
task_sub_id = #{record.taskSubId ,jdbcType=BIGINT},
<if test= "record.batch != null" >
batch = #{record.batch ,jdbcType=BIGINT},
</if>
<if test= "record.carId != null" >
car_id = #{record.carId,jdbcType=BIGINT},
@ -240,7 +240,7 @@
update t_patient_wisdom_car
set id = #{record.id,jdbcType=BIGINT},
patient_id = #{record.patientId,jdbcType=BIGINT},
task_sub_id = #{record.taskSubId ,jdbcType=BIGINT},
batch = #{record.batch ,jdbcType=BIGINT},
car_id = #{record.carId,jdbcType=BIGINT},
start_time = #{record.startTime,jdbcType=BIGINT},
end_time = #{record.endTime,jdbcType=BIGINT},
@ -259,8 +259,8 @@
<if test= "patientId != null" >
patient_id = #{patientId,jdbcType=BIGINT},
</if>
<if test= "taskSubId != null" >
task_sub_id = #{taskSubId ,jdbcType=BIGINT},
<if test= "batch != null" >
batch = #{batch ,jdbcType=BIGINT},
</if>
<if test= "carId != null" >
car_id = #{carId,jdbcType=BIGINT},
@ -292,7 +292,7 @@
<update id= "updateByPrimaryKey" parameterType= "com.ccsens.wisdomcar.bean.po.PatientWisdomCar" >
update t_patient_wisdom_car
set patient_id = #{patientId,jdbcType=BIGINT},
task_sub_id = #{taskSubId ,jdbcType=BIGINT},
batch = #{batch ,jdbcType=BIGINT},
car_id = #{carId,jdbcType=BIGINT},
start_time = #{startTime,jdbcType=BIGINT},
end_time = #{endTime,jdbcType=BIGINT},