|
@ -15,6 +15,7 @@ |
|
|
<result column="data_status" jdbcType="TINYINT" property="dataStatus" /> |
|
|
<result column="data_status" jdbcType="TINYINT" property="dataStatus" /> |
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|
|
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|
|
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|
|
|
|
|
<result column="reported" jdbcType="TINYINT" property="reported" /> |
|
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|
|
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|
|
<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" /> |
|
@ -80,7 +81,7 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, name, gender, age, nation, idcard, phone, type, value_type, save_type, data_status, |
|
|
id, name, gender, age, nation, idcard, phone, type, value_type, save_type, data_status, |
|
|
project_id, hospital_id, operator, created_at, updated_at, rec_status |
|
|
project_id, hospital_id, reported, operator, created_at, updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.FirstAidExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.FirstAidExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -117,14 +118,16 @@ |
|
|
age, nation, idcard, |
|
|
age, nation, idcard, |
|
|
phone, type, value_type, |
|
|
phone, type, value_type, |
|
|
save_type, data_status, project_id, |
|
|
save_type, data_status, project_id, |
|
|
hospital_id, operator, created_at, |
|
|
hospital_id, reported, operator, |
|
|
updated_at, rec_status) |
|
|
created_at, updated_at, rec_status |
|
|
|
|
|
) |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|
|
#{age,jdbcType=INTEGER}, #{nation,jdbcType=VARCHAR}, #{idcard,jdbcType=VARCHAR}, |
|
|
#{age,jdbcType=INTEGER}, #{nation,jdbcType=VARCHAR}, #{idcard,jdbcType=VARCHAR}, |
|
|
#{phone,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{valueType,jdbcType=TINYINT}, |
|
|
#{phone,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{valueType,jdbcType=TINYINT}, |
|
|
#{saveType,jdbcType=TINYINT}, #{dataStatus,jdbcType=TINYINT}, #{projectId,jdbcType=BIGINT}, |
|
|
#{saveType,jdbcType=TINYINT}, #{dataStatus,jdbcType=TINYINT}, #{projectId,jdbcType=BIGINT}, |
|
|
#{hospitalId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{hospitalId,jdbcType=BIGINT}, #{reported,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.FirstAid"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.FirstAid"> |
|
|
insert into t_qcp_first_aid |
|
|
insert into t_qcp_first_aid |
|
@ -168,6 +171,9 @@ |
|
|
<if test="hospitalId != null"> |
|
|
<if test="hospitalId != null"> |
|
|
hospital_id, |
|
|
hospital_id, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="reported != null"> |
|
|
|
|
|
reported, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator, |
|
|
operator, |
|
|
</if> |
|
|
</if> |
|
@ -221,6 +227,9 @@ |
|
|
<if test="hospitalId != null"> |
|
|
<if test="hospitalId != null"> |
|
|
#{hospitalId,jdbcType=BIGINT}, |
|
|
#{hospitalId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="reported != null"> |
|
|
|
|
|
#{reported,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -283,6 +292,9 @@ |
|
|
<if test="record.hospitalId != null"> |
|
|
<if test="record.hospitalId != null"> |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.reported != null"> |
|
|
|
|
|
reported = #{record.reported,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
<if test="record.operator != null"> |
|
|
<if test="record.operator != null"> |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -315,6 +327,7 @@ |
|
|
data_status = #{record.dataStatus,jdbcType=TINYINT}, |
|
|
data_status = #{record.dataStatus,jdbcType=TINYINT}, |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
project_id = #{record.projectId,jdbcType=BIGINT}, |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
|
|
|
reported = #{record.reported,jdbcType=TINYINT}, |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
operator = #{record.operator,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}, |
|
@ -362,6 +375,9 @@ |
|
|
<if test="hospitalId != null"> |
|
|
<if test="hospitalId != null"> |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="reported != null"> |
|
|
|
|
|
reported = #{reported,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -391,6 +407,7 @@ |
|
|
data_status = #{dataStatus,jdbcType=TINYINT}, |
|
|
data_status = #{dataStatus,jdbcType=TINYINT}, |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
project_id = #{projectId,jdbcType=BIGINT}, |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
|
|
|
reported = #{reported,jdbcType=TINYINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|