and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, education_years,
phone, id_card_type, id_card, source, current_illness_history, del_flag, tenant_id,
create_by, create_time, update_by, update_time, remark
delete from pms_patient
where id = #{id,jdbcType=BIGINT}
insert into pms_patient (id, name, pinyin_full,
pinyin_simple, gender, birth_date,
ethnicity, education_years, phone,
id_card_type, id_card, source,
current_illness_history, del_flag, tenant_id,
create_by, create_time, update_by,
update_time, remark)
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pinyinFull,jdbcType=VARCHAR},
#{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{birthDate,jdbcType=DATE},
#{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR},
#{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, #{source,jdbcType=TINYINT},
#{currentIllnessHistory,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR})
insert into pms_patient
id,
name,
pinyin_full,
pinyin_simple,
gender,
birth_date,
ethnicity,
education_years,
phone,
id_card_type,
id_card,
source,
current_illness_history,
del_flag,
tenant_id,
create_by,
create_time,
update_by,
update_time,
remark,
#{id,jdbcType=BIGINT},
#{name,jdbcType=VARCHAR},
#{pinyinFull,jdbcType=VARCHAR},
#{pinyinSimple,jdbcType=VARCHAR},
#{gender,jdbcType=TINYINT},
#{birthDate,jdbcType=DATE},
#{ethnicity,jdbcType=VARCHAR},
#{educationYears,jdbcType=INTEGER},
#{phone,jdbcType=VARCHAR},
#{idCardType,jdbcType=TINYINT},
#{idCard,jdbcType=VARCHAR},
#{source,jdbcType=TINYINT},
#{currentIllnessHistory,jdbcType=VARCHAR},
#{delFlag,jdbcType=TINYINT},
#{tenantId,jdbcType=BIGINT},
#{createBy,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
#{remark,jdbcType=VARCHAR},
update pms_patient
id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR},
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
birth_date = #{record.birthDate,jdbcType=DATE},
ethnicity = #{record.ethnicity,jdbcType=VARCHAR},
education_years = #{record.educationYears,jdbcType=INTEGER},
phone = #{record.phone,jdbcType=VARCHAR},
id_card_type = #{record.idCardType,jdbcType=TINYINT},
id_card = #{record.idCard,jdbcType=VARCHAR},
source = #{record.source,jdbcType=TINYINT},
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR},
del_flag = #{record.delFlag,jdbcType=TINYINT},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
update pms_patient
set id = #{record.id,jdbcType=BIGINT},
name = #{record.name,jdbcType=VARCHAR},
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR},
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR},
gender = #{record.gender,jdbcType=TINYINT},
birth_date = #{record.birthDate,jdbcType=DATE},
ethnicity = #{record.ethnicity,jdbcType=VARCHAR},
education_years = #{record.educationYears,jdbcType=INTEGER},
phone = #{record.phone,jdbcType=VARCHAR},
id_card_type = #{record.idCardType,jdbcType=TINYINT},
id_card = #{record.idCard,jdbcType=VARCHAR},
source = #{record.source,jdbcType=TINYINT},
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR},
del_flag = #{record.delFlag,jdbcType=TINYINT},
tenant_id = #{record.tenantId,jdbcType=BIGINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_by = #{record.updateBy,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR}
update pms_patient
name = #{name,jdbcType=VARCHAR},
pinyin_full = #{pinyinFull,jdbcType=VARCHAR},
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR},
gender = #{gender,jdbcType=TINYINT},
birth_date = #{birthDate,jdbcType=DATE},
ethnicity = #{ethnicity,jdbcType=VARCHAR},
education_years = #{educationYears,jdbcType=INTEGER},
phone = #{phone,jdbcType=VARCHAR},
id_card_type = #{idCardType,jdbcType=TINYINT},
id_card = #{idCard,jdbcType=VARCHAR},
source = #{source,jdbcType=TINYINT},
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=TINYINT},
tenant_id = #{tenantId,jdbcType=BIGINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update pms_patient
set name = #{name,jdbcType=VARCHAR},
pinyin_full = #{pinyinFull,jdbcType=VARCHAR},
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR},
gender = #{gender,jdbcType=TINYINT},
birth_date = #{birthDate,jdbcType=DATE},
ethnicity = #{ethnicity,jdbcType=VARCHAR},
education_years = #{educationYears,jdbcType=INTEGER},
phone = #{phone,jdbcType=VARCHAR},
id_card_type = #{idCardType,jdbcType=TINYINT},
id_card = #{idCard,jdbcType=VARCHAR},
source = #{source,jdbcType=TINYINT},
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR},
del_flag = #{delFlag,jdbcType=TINYINT},
tenant_id = #{tenantId,jdbcType=BIGINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_by = #{updateBy,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}