|
|
@ -11,15 +11,15 @@ |
|
|
|
<result column="smoking_quit_year" jdbcType="INTEGER" property="smokingQuitYear" /> |
|
|
|
<result column="drink_history" jdbcType="TINYINT" property="drinkHistory" /> |
|
|
|
<result column="drink_year" jdbcType="INTEGER" property="drinkYear" /> |
|
|
|
<result column="drink_type" jdbcType="TINYINT" property="drinkType" /> |
|
|
|
<result column="drink_type" jdbcType="VARCHAR" property="drinkType" /> |
|
|
|
<result column="drink_amount" jdbcType="INTEGER" property="drinkAmount" /> |
|
|
|
<result column="tea_coffee_history" jdbcType="TINYINT" property="teaCoffeeHistory" /> |
|
|
|
<result column="tea_coffee_year" jdbcType="INTEGER" property="teaCoffeeYear" /> |
|
|
|
<result column="tea_coffee_type" jdbcType="TINYINT" property="teaCoffeeType" /> |
|
|
|
<result column="tea_coffee_type" jdbcType="VARCHAR" property="teaCoffeeType" /> |
|
|
|
<result column="tea_coffee_frequency" jdbcType="TINYINT" property="teaCoffeeFrequency" /> |
|
|
|
<result column="tea_coffee_quit" jdbcType="TINYINT" property="teaCoffeeQuit" /> |
|
|
|
<result column="tea_coffee_quit_year" jdbcType="INTEGER" property="teaCoffeeQuitYear" /> |
|
|
|
<result column="dietary_habit" jdbcType="TINYINT" property="dietaryHabit" /> |
|
|
|
<result column="dietary_habit" jdbcType="VARCHAR" property="dietaryHabit" /> |
|
|
|
<result column="workout_time" jdbcType="TINYINT" property="workoutTime" /> |
|
|
|
<result column="sleep_time" jdbcType="INTEGER" property="sleepTime" /> |
|
|
|
<result column="snore" jdbcType="TINYINT" property="snore" /> |
|
|
@ -28,6 +28,8 @@ |
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
|
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|
|
|
<result column="recorder" jdbcType="BIGINT" property="recorder" /> |
|
|
|
<result column="drink_quit" jdbcType="TINYINT" property="drinkQuit" /> |
|
|
|
<result column="drink_quit_year" jdbcType="INTEGER" property="drinkQuitYear" /> |
|
|
|
</resultMap> |
|
|
|
<sql id="Example_Where_Clause"> |
|
|
|
<where> |
|
|
@ -91,7 +93,8 @@ |
|
|
|
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 |
|
|
|
workout_time, sleep_time, snore, remark, create_time, update_time, is_del, recorder, |
|
|
|
drink_quit, drink_quit_year |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientPersionalExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -132,16 +135,18 @@ |
|
|
|
tea_coffee_quit, tea_coffee_quit_year, dietary_habit, |
|
|
|
workout_time, sleep_time, snore, |
|
|
|
remark, create_time, update_time, |
|
|
|
is_del, recorder) |
|
|
|
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=TINYINT}, #{drinkAmount,jdbcType=INTEGER}, #{teaCoffeeHistory,jdbcType=TINYINT}, |
|
|
|
#{teaCoffeeYear,jdbcType=INTEGER}, #{teaCoffeeType,jdbcType=TINYINT}, #{teaCoffeeFrequency,jdbcType=TINYINT}, |
|
|
|
#{teaCoffeeQuit,jdbcType=TINYINT}, #{teaCoffeeQuitYear,jdbcType=INTEGER}, #{dietaryHabit,jdbcType=TINYINT}, |
|
|
|
#{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}) |
|
|
|
#{isDel,jdbcType=TINYINT}, #{recorder,jdbcType=BIGINT}, #{drinkQuit,jdbcType=TINYINT}, |
|
|
|
#{drinkQuitYear,jdbcType=INTEGER}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientPersional"> |
|
|
|
insert into t_ht_patient_persional |
|
|
@ -224,6 +229,12 @@ |
|
|
|
<if test="recorder != null"> |
|
|
|
recorder, |
|
|
|
</if> |
|
|
|
<if test="drinkQuit != null"> |
|
|
|
drink_quit, |
|
|
|
</if> |
|
|
|
<if test="drinkQuitYear != null"> |
|
|
|
drink_quit_year, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="id != null"> |
|
|
@ -254,7 +265,7 @@ |
|
|
|
#{drinkYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="drinkType != null"> |
|
|
|
#{drinkType,jdbcType=TINYINT}, |
|
|
|
#{drinkType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="drinkAmount != null"> |
|
|
|
#{drinkAmount,jdbcType=INTEGER}, |
|
|
@ -266,7 +277,7 @@ |
|
|
|
#{teaCoffeeYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="teaCoffeeType != null"> |
|
|
|
#{teaCoffeeType,jdbcType=TINYINT}, |
|
|
|
#{teaCoffeeType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="teaCoffeeFrequency != null"> |
|
|
|
#{teaCoffeeFrequency,jdbcType=TINYINT}, |
|
|
@ -278,7 +289,7 @@ |
|
|
|
#{teaCoffeeQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="dietaryHabit != null"> |
|
|
|
#{dietaryHabit,jdbcType=TINYINT}, |
|
|
|
#{dietaryHabit,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="workoutTime != null"> |
|
|
|
#{workoutTime,jdbcType=TINYINT}, |
|
|
@ -304,6 +315,12 @@ |
|
|
|
<if test="recorder != null"> |
|
|
|
#{recorder,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="drinkQuit != null"> |
|
|
|
#{drinkQuit,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="drinkQuitYear != null"> |
|
|
|
#{drinkQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientPersionalExample" resultType="java.lang.Long"> |
|
|
@ -343,7 +360,7 @@ |
|
|
|
drink_year = #{record.drinkYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.drinkType != null"> |
|
|
|
drink_type = #{record.drinkType,jdbcType=TINYINT}, |
|
|
|
drink_type = #{record.drinkType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.drinkAmount != null"> |
|
|
|
drink_amount = #{record.drinkAmount,jdbcType=INTEGER}, |
|
|
@ -355,7 +372,7 @@ |
|
|
|
tea_coffee_year = #{record.teaCoffeeYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.teaCoffeeType != null"> |
|
|
|
tea_coffee_type = #{record.teaCoffeeType,jdbcType=TINYINT}, |
|
|
|
tea_coffee_type = #{record.teaCoffeeType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.teaCoffeeFrequency != null"> |
|
|
|
tea_coffee_frequency = #{record.teaCoffeeFrequency,jdbcType=TINYINT}, |
|
|
@ -367,7 +384,7 @@ |
|
|
|
tea_coffee_quit_year = #{record.teaCoffeeQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.dietaryHabit != null"> |
|
|
|
dietary_habit = #{record.dietaryHabit,jdbcType=TINYINT}, |
|
|
|
dietary_habit = #{record.dietaryHabit,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.workoutTime != null"> |
|
|
|
workout_time = #{record.workoutTime,jdbcType=TINYINT}, |
|
|
@ -393,6 +410,12 @@ |
|
|
|
<if test="record.recorder != null"> |
|
|
|
recorder = #{record.recorder,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.drinkQuit != null"> |
|
|
|
drink_quit = #{record.drinkQuit,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.drinkQuitYear != null"> |
|
|
|
drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -409,15 +432,15 @@ |
|
|
|
smoking_quit_year = #{record.smokingQuitYear,jdbcType=INTEGER}, |
|
|
|
drink_history = #{record.drinkHistory,jdbcType=TINYINT}, |
|
|
|
drink_year = #{record.drinkYear,jdbcType=INTEGER}, |
|
|
|
drink_type = #{record.drinkType,jdbcType=TINYINT}, |
|
|
|
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=TINYINT}, |
|
|
|
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=TINYINT}, |
|
|
|
dietary_habit = #{record.dietaryHabit,jdbcType=VARCHAR}, |
|
|
|
workout_time = #{record.workoutTime,jdbcType=TINYINT}, |
|
|
|
sleep_time = #{record.sleepTime,jdbcType=INTEGER}, |
|
|
|
snore = #{record.snore,jdbcType=TINYINT}, |
|
|
@ -425,7 +448,9 @@ |
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{record.isDel,jdbcType=TINYINT}, |
|
|
|
recorder = #{record.recorder,jdbcType=BIGINT} |
|
|
|
recorder = #{record.recorder,jdbcType=BIGINT}, |
|
|
|
drink_quit = #{record.drinkQuit,jdbcType=TINYINT}, |
|
|
|
drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
@ -458,7 +483,7 @@ |
|
|
|
drink_year = #{drinkYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="drinkType != null"> |
|
|
|
drink_type = #{drinkType,jdbcType=TINYINT}, |
|
|
|
drink_type = #{drinkType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="drinkAmount != null"> |
|
|
|
drink_amount = #{drinkAmount,jdbcType=INTEGER}, |
|
|
@ -470,7 +495,7 @@ |
|
|
|
tea_coffee_year = #{teaCoffeeYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="teaCoffeeType != null"> |
|
|
|
tea_coffee_type = #{teaCoffeeType,jdbcType=TINYINT}, |
|
|
|
tea_coffee_type = #{teaCoffeeType,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="teaCoffeeFrequency != null"> |
|
|
|
tea_coffee_frequency = #{teaCoffeeFrequency,jdbcType=TINYINT}, |
|
|
@ -482,7 +507,7 @@ |
|
|
|
tea_coffee_quit_year = #{teaCoffeeQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="dietaryHabit != null"> |
|
|
|
dietary_habit = #{dietaryHabit,jdbcType=TINYINT}, |
|
|
|
dietary_habit = #{dietaryHabit,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="workoutTime != null"> |
|
|
|
workout_time = #{workoutTime,jdbcType=TINYINT}, |
|
|
@ -508,6 +533,12 @@ |
|
|
|
<if test="recorder != null"> |
|
|
|
recorder = #{recorder,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="drinkQuit != null"> |
|
|
|
drink_quit = #{drinkQuit,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="drinkQuitYear != null"> |
|
|
|
drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
</set> |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
@ -521,15 +552,15 @@ |
|
|
|
smoking_quit_year = #{smokingQuitYear,jdbcType=INTEGER}, |
|
|
|
drink_history = #{drinkHistory,jdbcType=TINYINT}, |
|
|
|
drink_year = #{drinkYear,jdbcType=INTEGER}, |
|
|
|
drink_type = #{drinkType,jdbcType=TINYINT}, |
|
|
|
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=TINYINT}, |
|
|
|
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=TINYINT}, |
|
|
|
dietary_habit = #{dietaryHabit,jdbcType=VARCHAR}, |
|
|
|
workout_time = #{workoutTime,jdbcType=TINYINT}, |
|
|
|
sleep_time = #{sleepTime,jdbcType=INTEGER}, |
|
|
|
snore = #{snore,jdbcType=TINYINT}, |
|
|
@ -537,7 +568,9 @@ |
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
|
is_del = #{isDel,jdbcType=TINYINT}, |
|
|
|
recorder = #{recorder,jdbcType=BIGINT} |
|
|
|
recorder = #{recorder,jdbcType=BIGINT}, |
|
|
|
drink_quit = #{drinkQuit,jdbcType=TINYINT}, |
|
|
|
drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |