|
|
|
@ -9,6 +9,8 @@ |
|
|
|
<result column="age" jdbcType="INTEGER" property="age" /> |
|
|
|
<result column="input_status" jdbcType="TINYINT" property="inputStatus" /> |
|
|
|
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|
|
|
<result column="check_id" jdbcType="BIGINT" property="checkId" /> |
|
|
|
<result column="pass_id" jdbcType="BIGINT" property="passId" /> |
|
|
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|
|
|
@ -73,8 +75,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, hospitalization, code, inpatient_id, age, input_status, hospital_id, user_id, |
|
|
|
created_at, update_at, rec_status |
|
|
|
id, hospitalization, code, inpatient_id, age, input_status, hospital_id, check_id, |
|
|
|
pass_id, user_id, created_at, update_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.PatientInformationExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
|
@ -109,12 +111,14 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.PatientInformation"> |
|
|
|
insert into t_patient_information (id, hospitalization, code, |
|
|
|
inpatient_id, age, input_status, |
|
|
|
hospital_id, user_id, created_at, |
|
|
|
update_at, rec_status) |
|
|
|
hospital_id, check_id, pass_id, |
|
|
|
user_id, created_at, update_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{hospitalization,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, |
|
|
|
#{inpatientId,jdbcType=BIGINT}, #{age,jdbcType=INTEGER}, #{inputStatus,jdbcType=TINYINT}, |
|
|
|
#{hospitalId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
#{hospitalId,jdbcType=BIGINT}, #{checkId,jdbcType=BIGINT}, #{passId,jdbcType=BIGINT}, |
|
|
|
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.PatientInformation"> |
|
|
|
insert into t_patient_information |
|
|
|
@ -140,6 +144,12 @@ |
|
|
|
<if test="hospitalId != null"> |
|
|
|
hospital_id, |
|
|
|
</if> |
|
|
|
<if test="checkId != null"> |
|
|
|
check_id, |
|
|
|
</if> |
|
|
|
<if test="passId != null"> |
|
|
|
pass_id, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id, |
|
|
|
</if> |
|
|
|
@ -175,6 +185,12 @@ |
|
|
|
<if test="hospitalId != null"> |
|
|
|
#{hospitalId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="checkId != null"> |
|
|
|
#{checkId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="passId != null"> |
|
|
|
#{passId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
#{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
@ -219,6 +235,12 @@ |
|
|
|
<if test="record.hospitalId != null"> |
|
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.checkId != null"> |
|
|
|
check_id = #{record.checkId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.passId != null"> |
|
|
|
pass_id = #{record.passId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.userId != null"> |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
@ -245,6 +267,8 @@ |
|
|
|
age = #{record.age,jdbcType=INTEGER}, |
|
|
|
input_status = #{record.inputStatus,jdbcType=TINYINT}, |
|
|
|
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|
|
|
check_id = #{record.checkId,jdbcType=BIGINT}, |
|
|
|
pass_id = #{record.passId,jdbcType=BIGINT}, |
|
|
|
user_id = #{record.userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{record.updateAt,jdbcType=TIMESTAMP}, |
|
|
|
@ -274,6 +298,12 @@ |
|
|
|
<if test="hospitalId != null"> |
|
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="checkId != null"> |
|
|
|
check_id = #{checkId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="passId != null"> |
|
|
|
pass_id = #{passId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="userId != null"> |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
@ -297,6 +327,8 @@ |
|
|
|
age = #{age,jdbcType=INTEGER}, |
|
|
|
input_status = #{inputStatus,jdbcType=TINYINT}, |
|
|
|
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|
|
|
check_id = #{checkId,jdbcType=BIGINT}, |
|
|
|
pass_id = #{passId,jdbcType=BIGINT}, |
|
|
|
user_id = #{userId,jdbcType=BIGINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|
|
|
|