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, patient_id, smoking_history, smoking_year, smoking_amount, smoking_quit, smoking_quit_year,
drink_history, drink_year, drink_type, drink_amount, tea_coffee_history, tea_coffee_year,
tea_coffee_type, tea_coffee_frequency, tea_coffee_quit, tea_coffee_quit_year, dietary_habit,
workout_time, sleep_time, snore, remark, create_time, update_time, is_del, recorder,
drink_quit, drink_quit_year
delete from t_ht_patient_persional
where id = #{id,jdbcType=BIGINT}
delete from t_ht_patient_persional
insert into t_ht_patient_persional (id, patient_id, smoking_history,
smoking_year, smoking_amount, smoking_quit,
smoking_quit_year, drink_history, drink_year,
drink_type, drink_amount, tea_coffee_history,
tea_coffee_year, tea_coffee_type, tea_coffee_frequency,
tea_coffee_quit, tea_coffee_quit_year, dietary_habit,
workout_time, sleep_time, snore,
remark, create_time, update_time,
is_del, recorder, drink_quit,
drink_quit_year)
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{smokingHistory,jdbcType=TINYINT},
#{smokingYear,jdbcType=INTEGER}, #{smokingAmount,jdbcType=INTEGER}, #{smokingQuit,jdbcType=TINYINT},
#{smokingQuitYear,jdbcType=INTEGER}, #{drinkHistory,jdbcType=TINYINT}, #{drinkYear,jdbcType=INTEGER},
#{drinkType,jdbcType=VARCHAR}, #{drinkAmount,jdbcType=INTEGER}, #{teaCoffeeHistory,jdbcType=TINYINT},
#{teaCoffeeYear,jdbcType=INTEGER}, #{teaCoffeeType,jdbcType=VARCHAR}, #{teaCoffeeFrequency,jdbcType=TINYINT},
#{teaCoffeeQuit,jdbcType=TINYINT}, #{teaCoffeeQuitYear,jdbcType=INTEGER}, #{dietaryHabit,jdbcType=VARCHAR},
#{workoutTime,jdbcType=TINYINT}, #{sleepTime,jdbcType=INTEGER}, #{snore,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{isDel,jdbcType=TINYINT}, #{recorder,jdbcType=BIGINT}, #{drinkQuit,jdbcType=TINYINT},
#{drinkQuitYear,jdbcType=INTEGER})
insert into t_ht_patient_persional
id,
patient_id,
smoking_history,
smoking_year,
smoking_amount,
smoking_quit,
smoking_quit_year,
drink_history,
drink_year,
drink_type,
drink_amount,
tea_coffee_history,
tea_coffee_year,
tea_coffee_type,
tea_coffee_frequency,
tea_coffee_quit,
tea_coffee_quit_year,
dietary_habit,
workout_time,
sleep_time,
snore,
remark,
create_time,
update_time,
is_del,
recorder,
drink_quit,
drink_quit_year,
#{id,jdbcType=BIGINT},
#{patientId,jdbcType=BIGINT},
#{smokingHistory,jdbcType=TINYINT},
#{smokingYear,jdbcType=INTEGER},
#{smokingAmount,jdbcType=INTEGER},
#{smokingQuit,jdbcType=TINYINT},
#{smokingQuitYear,jdbcType=INTEGER},
#{drinkHistory,jdbcType=TINYINT},
#{drinkYear,jdbcType=INTEGER},
#{drinkType,jdbcType=VARCHAR},
#{drinkAmount,jdbcType=INTEGER},
#{teaCoffeeHistory,jdbcType=TINYINT},
#{teaCoffeeYear,jdbcType=INTEGER},
#{teaCoffeeType,jdbcType=VARCHAR},
#{teaCoffeeFrequency,jdbcType=TINYINT},
#{teaCoffeeQuit,jdbcType=TINYINT},
#{teaCoffeeQuitYear,jdbcType=INTEGER},
#{dietaryHabit,jdbcType=VARCHAR},
#{workoutTime,jdbcType=TINYINT},
#{sleepTime,jdbcType=INTEGER},
#{snore,jdbcType=TINYINT},
#{remark,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
#{isDel,jdbcType=TINYINT},
#{recorder,jdbcType=BIGINT},
#{drinkQuit,jdbcType=TINYINT},
#{drinkQuitYear,jdbcType=INTEGER},
update t_ht_patient_persional
id = #{record.id,jdbcType=BIGINT},
patient_id = #{record.patientId,jdbcType=BIGINT},
smoking_history = #{record.smokingHistory,jdbcType=TINYINT},
smoking_year = #{record.smokingYear,jdbcType=INTEGER},
smoking_amount = #{record.smokingAmount,jdbcType=INTEGER},
smoking_quit = #{record.smokingQuit,jdbcType=TINYINT},
smoking_quit_year = #{record.smokingQuitYear,jdbcType=INTEGER},
drink_history = #{record.drinkHistory,jdbcType=TINYINT},
drink_year = #{record.drinkYear,jdbcType=INTEGER},
drink_type = #{record.drinkType,jdbcType=VARCHAR},
drink_amount = #{record.drinkAmount,jdbcType=INTEGER},
tea_coffee_history = #{record.teaCoffeeHistory,jdbcType=TINYINT},
tea_coffee_year = #{record.teaCoffeeYear,jdbcType=INTEGER},
tea_coffee_type = #{record.teaCoffeeType,jdbcType=VARCHAR},
tea_coffee_frequency = #{record.teaCoffeeFrequency,jdbcType=TINYINT},
tea_coffee_quit = #{record.teaCoffeeQuit,jdbcType=TINYINT},
tea_coffee_quit_year = #{record.teaCoffeeQuitYear,jdbcType=INTEGER},
dietary_habit = #{record.dietaryHabit,jdbcType=VARCHAR},
workout_time = #{record.workoutTime,jdbcType=TINYINT},
sleep_time = #{record.sleepTime,jdbcType=INTEGER},
snore = #{record.snore,jdbcType=TINYINT},
remark = #{record.remark,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_del = #{record.isDel,jdbcType=TINYINT},
recorder = #{record.recorder,jdbcType=BIGINT},
drink_quit = #{record.drinkQuit,jdbcType=TINYINT},
drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER},
update t_ht_patient_persional
set id = #{record.id,jdbcType=BIGINT},
patient_id = #{record.patientId,jdbcType=BIGINT},
smoking_history = #{record.smokingHistory,jdbcType=TINYINT},
smoking_year = #{record.smokingYear,jdbcType=INTEGER},
smoking_amount = #{record.smokingAmount,jdbcType=INTEGER},
smoking_quit = #{record.smokingQuit,jdbcType=TINYINT},
smoking_quit_year = #{record.smokingQuitYear,jdbcType=INTEGER},
drink_history = #{record.drinkHistory,jdbcType=TINYINT},
drink_year = #{record.drinkYear,jdbcType=INTEGER},
drink_type = #{record.drinkType,jdbcType=VARCHAR},
drink_amount = #{record.drinkAmount,jdbcType=INTEGER},
tea_coffee_history = #{record.teaCoffeeHistory,jdbcType=TINYINT},
tea_coffee_year = #{record.teaCoffeeYear,jdbcType=INTEGER},
tea_coffee_type = #{record.teaCoffeeType,jdbcType=VARCHAR},
tea_coffee_frequency = #{record.teaCoffeeFrequency,jdbcType=TINYINT},
tea_coffee_quit = #{record.teaCoffeeQuit,jdbcType=TINYINT},
tea_coffee_quit_year = #{record.teaCoffeeQuitYear,jdbcType=INTEGER},
dietary_habit = #{record.dietaryHabit,jdbcType=VARCHAR},
workout_time = #{record.workoutTime,jdbcType=TINYINT},
sleep_time = #{record.sleepTime,jdbcType=INTEGER},
snore = #{record.snore,jdbcType=TINYINT},
remark = #{record.remark,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_del = #{record.isDel,jdbcType=TINYINT},
recorder = #{record.recorder,jdbcType=BIGINT},
drink_quit = #{record.drinkQuit,jdbcType=TINYINT},
drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER}
update t_ht_patient_persional
patient_id = #{patientId,jdbcType=BIGINT},
smoking_history = #{smokingHistory,jdbcType=TINYINT},
smoking_year = #{smokingYear,jdbcType=INTEGER},
smoking_amount = #{smokingAmount,jdbcType=INTEGER},
smoking_quit = #{smokingQuit,jdbcType=TINYINT},
smoking_quit_year = #{smokingQuitYear,jdbcType=INTEGER},
drink_history = #{drinkHistory,jdbcType=TINYINT},
drink_year = #{drinkYear,jdbcType=INTEGER},
drink_type = #{drinkType,jdbcType=VARCHAR},
drink_amount = #{drinkAmount,jdbcType=INTEGER},
tea_coffee_history = #{teaCoffeeHistory,jdbcType=TINYINT},
tea_coffee_year = #{teaCoffeeYear,jdbcType=INTEGER},
tea_coffee_type = #{teaCoffeeType,jdbcType=VARCHAR},
tea_coffee_frequency = #{teaCoffeeFrequency,jdbcType=TINYINT},
tea_coffee_quit = #{teaCoffeeQuit,jdbcType=TINYINT},
tea_coffee_quit_year = #{teaCoffeeQuitYear,jdbcType=INTEGER},
dietary_habit = #{dietaryHabit,jdbcType=VARCHAR},
workout_time = #{workoutTime,jdbcType=TINYINT},
sleep_time = #{sleepTime,jdbcType=INTEGER},
snore = #{snore,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_del = #{isDel,jdbcType=TINYINT},
recorder = #{recorder,jdbcType=BIGINT},
drink_quit = #{drinkQuit,jdbcType=TINYINT},
drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
update t_ht_patient_persional
set patient_id = #{patientId,jdbcType=BIGINT},
smoking_history = #{smokingHistory,jdbcType=TINYINT},
smoking_year = #{smokingYear,jdbcType=INTEGER},
smoking_amount = #{smokingAmount,jdbcType=INTEGER},
smoking_quit = #{smokingQuit,jdbcType=TINYINT},
smoking_quit_year = #{smokingQuitYear,jdbcType=INTEGER},
drink_history = #{drinkHistory,jdbcType=TINYINT},
drink_year = #{drinkYear,jdbcType=INTEGER},
drink_type = #{drinkType,jdbcType=VARCHAR},
drink_amount = #{drinkAmount,jdbcType=INTEGER},
tea_coffee_history = #{teaCoffeeHistory,jdbcType=TINYINT},
tea_coffee_year = #{teaCoffeeYear,jdbcType=INTEGER},
tea_coffee_type = #{teaCoffeeType,jdbcType=VARCHAR},
tea_coffee_frequency = #{teaCoffeeFrequency,jdbcType=TINYINT},
tea_coffee_quit = #{teaCoffeeQuit,jdbcType=TINYINT},
tea_coffee_quit_year = #{teaCoffeeQuitYear,jdbcType=INTEGER},
dietary_habit = #{dietaryHabit,jdbcType=VARCHAR},
workout_time = #{workoutTime,jdbcType=TINYINT},
sleep_time = #{sleepTime,jdbcType=INTEGER},
snore = #{snore,jdbcType=TINYINT},
remark = #{remark,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
is_del = #{isDel,jdbcType=TINYINT},
recorder = #{recorder,jdbcType=BIGINT},
drink_quit = #{drinkQuit,jdbcType=TINYINT},
drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}