|
@ -24,6 +24,7 @@ |
|
|
<result column="diagnosis_code" jdbcType="VARCHAR" property="diagnosisCode" /> |
|
|
<result column="diagnosis_code" jdbcType="VARCHAR" property="diagnosisCode" /> |
|
|
<result column="diagnosis_name" jdbcType="VARCHAR" property="diagnosisName" /> |
|
|
<result column="diagnosis_name" jdbcType="VARCHAR" property="diagnosisName" /> |
|
|
<result column="status" jdbcType="TINYINT" property="status" /> |
|
|
<result column="status" jdbcType="TINYINT" property="status" /> |
|
|
|
|
|
<result column="member_id" jdbcType="BIGINT" property="memberId" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|
@ -93,8 +94,8 @@ |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, patient_id, name, pinyin_full, pinyin_simple, gender, age, birth_date, ethnicity, |
|
|
id, patient_id, name, pinyin_full, pinyin_simple, gender, age, birth_date, ethnicity, |
|
|
education_years, phone, id_card_type, id_card, visit_type, visit_number, visit_time, |
|
|
education_years, phone, id_card_type, id_card, visit_type, visit_number, visit_time, |
|
|
discharge_time, doctor, dept_name, diagnosis_code, diagnosis_name, status, del_flag, |
|
|
discharge_time, doctor, dept_name, diagnosis_code, diagnosis_name, status, member_id, |
|
|
tenant_id, create_by, create_time, update_by, update_time, remark |
|
|
del_flag, tenant_id, create_by, create_time, update_by, update_time, remark |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
@ -128,9 +129,10 @@ |
|
|
id_card, visit_type, visit_number, |
|
|
id_card, visit_type, visit_number, |
|
|
visit_time, discharge_time, doctor, |
|
|
visit_time, discharge_time, doctor, |
|
|
dept_name, diagnosis_code, diagnosis_name, |
|
|
dept_name, diagnosis_code, diagnosis_name, |
|
|
status, del_flag, tenant_id, |
|
|
status, member_id, del_flag, |
|
|
create_by, create_time, update_by, |
|
|
tenant_id, create_by, create_time, |
|
|
update_time, remark) |
|
|
update_by, update_time, remark |
|
|
|
|
|
) |
|
|
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|
|
#{pinyinFull,jdbcType=VARCHAR}, #{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|
|
#{pinyinFull,jdbcType=VARCHAR}, #{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|
|
#{age,jdbcType=INTEGER}, #{birthDate,jdbcType=DATE}, #{ethnicity,jdbcType=VARCHAR}, |
|
|
#{age,jdbcType=INTEGER}, #{birthDate,jdbcType=DATE}, #{ethnicity,jdbcType=VARCHAR}, |
|
@ -138,9 +140,10 @@ |
|
|
#{idCard,jdbcType=VARCHAR}, #{visitType,jdbcType=TINYINT}, #{visitNumber,jdbcType=VARCHAR}, |
|
|
#{idCard,jdbcType=VARCHAR}, #{visitType,jdbcType=TINYINT}, #{visitNumber,jdbcType=VARCHAR}, |
|
|
#{visitTime,jdbcType=TIMESTAMP}, #{dischargeTime,jdbcType=TIMESTAMP}, #{doctor,jdbcType=VARCHAR}, |
|
|
#{visitTime,jdbcType=TIMESTAMP}, #{dischargeTime,jdbcType=TIMESTAMP}, #{doctor,jdbcType=VARCHAR}, |
|
|
#{deptName,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, #{diagnosisName,jdbcType=VARCHAR}, |
|
|
#{deptName,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, #{diagnosisName,jdbcType=VARCHAR}, |
|
|
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, |
|
|
#{status,jdbcType=TINYINT}, #{memberId,jdbcType=BIGINT}, #{delFlag,jdbcType=TINYINT}, |
|
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|
|
#{tenantId,jdbcType=BIGINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR} |
|
|
|
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|
|
insert into pms_treatment |
|
|
insert into pms_treatment |
|
@ -211,6 +214,9 @@ |
|
|
<if test="status != null"> |
|
|
<if test="status != null"> |
|
|
status, |
|
|
status, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
member_id, |
|
|
|
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag, |
|
|
del_flag, |
|
|
</if> |
|
|
</if> |
|
@ -300,6 +306,9 @@ |
|
|
<if test="status != null"> |
|
|
<if test="status != null"> |
|
|
#{status,jdbcType=TINYINT}, |
|
|
#{status,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
#{memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
@ -398,6 +407,9 @@ |
|
|
<if test="record.status != null"> |
|
|
<if test="record.status != null"> |
|
|
status = #{record.status,jdbcType=TINYINT}, |
|
|
status = #{record.status,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.memberId != null"> |
|
|
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="record.delFlag != null"> |
|
|
<if test="record.delFlag != null"> |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
@ -448,6 +460,7 @@ |
|
|
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|
|
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|
|
status = #{record.status,jdbcType=TINYINT}, |
|
|
status = #{record.status,jdbcType=TINYINT}, |
|
|
|
|
|
member_id = #{record.memberId,jdbcType=BIGINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|
@ -525,6 +538,9 @@ |
|
|
<if test="status != null"> |
|
|
<if test="status != null"> |
|
|
status = #{status,jdbcType=TINYINT}, |
|
|
status = #{status,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="memberId != null"> |
|
|
|
|
|
member_id = #{memberId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
@ -572,6 +588,7 @@ |
|
|
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|
|
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|
|
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|
|
status = #{status,jdbcType=TINYINT}, |
|
|
status = #{status,jdbcType=TINYINT}, |
|
|
|
|
|
member_id = #{memberId,jdbcType=BIGINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|
|
create_by = #{createBy,jdbcType=VARCHAR}, |
|
|
create_by = #{createBy,jdbcType=VARCHAR}, |
|
|