|
|
@ -8,10 +8,16 @@ |
|
|
<result column="district" jdbcType="VARCHAR" property="district" /> |
|
|
<result column="district" jdbcType="VARCHAR" property="district" /> |
|
|
<result column="address" jdbcType="VARCHAR" property="address" /> |
|
|
<result column="address" jdbcType="VARCHAR" property="address" /> |
|
|
<result column="health_type_id" jdbcType="BIGINT" property="healthTypeId" /> |
|
|
<result column="health_type_id" jdbcType="BIGINT" property="healthTypeId" /> |
|
|
|
|
|
<result column="animal_heat" jdbcType="DECIMAL" property="animalHeat" /> |
|
|
<result column="hospital" jdbcType="VARCHAR" property="hospital" /> |
|
|
<result column="hospital" jdbcType="VARCHAR" property="hospital" /> |
|
|
<result column="touch_hubei" jdbcType="TINYINT" property="touchHubei" /> |
|
|
<result column="touch_hubei" jdbcType="TINYINT" property="touchHubei" /> |
|
|
<result column="touch_sick" jdbcType="TINYINT" property="touchSick" /> |
|
|
<result column="touch_sick" jdbcType="TINYINT" property="touchSick" /> |
|
|
<result column="animal_heat" jdbcType="DECIMAL" property="animalHeat" /> |
|
|
<result column="touch_overseas" jdbcType="TINYINT" property="touchOverseas" /> |
|
|
|
|
|
<result column="school_location" jdbcType="TINYINT" property="schoolLocation" /> |
|
|
|
|
|
<result column="emergency_name" jdbcType="VARCHAR" property="emergencyName" /> |
|
|
|
|
|
<result column="emergency_phone" jdbcType="VARCHAR" property="emergencyPhone" /> |
|
|
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
|
|
|
<result column="health_agreement" jdbcType="TINYINT" property="healthAgreement" /> |
|
|
<result column="self_fill" jdbcType="TINYINT" property="selfFill" /> |
|
|
<result column="self_fill" jdbcType="TINYINT" property="selfFill" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
@ -76,8 +82,9 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, user_id, time, district, address, health_type_id, hospital, touch_hubei, touch_sick, |
|
|
id, user_id, time, district, address, health_type_id, animal_heat, hospital, touch_hubei, |
|
|
animal_heat, self_fill, created_at, updated_at, rec_status |
|
|
touch_sick, touch_overseas, school_location, emergency_name, emergency_phone, remark, |
|
|
|
|
|
health_agreement, self_fill, created_at, updated_at, rec_status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthRecordsExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthRecordsExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -112,13 +119,17 @@ |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthRecords"> |
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthRecords"> |
|
|
insert into t_health_records (id, user_id, time, |
|
|
insert into t_health_records (id, user_id, time, |
|
|
district, address, health_type_id, |
|
|
district, address, health_type_id, |
|
|
hospital, touch_hubei, touch_sick, |
|
|
animal_heat, hospital, touch_hubei, |
|
|
animal_heat, self_fill, created_at, |
|
|
touch_sick, touch_overseas, school_location, |
|
|
|
|
|
emergency_name, emergency_phone, remark, |
|
|
|
|
|
health_agreement, self_fill, created_at, |
|
|
updated_at, rec_status) |
|
|
updated_at, rec_status) |
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthTypeId,jdbcType=BIGINT}, |
|
|
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthTypeId,jdbcType=BIGINT}, |
|
|
#{hospital,jdbcType=VARCHAR}, #{touchHubei,jdbcType=TINYINT}, #{touchSick,jdbcType=TINYINT}, |
|
|
#{animalHeat,jdbcType=DECIMAL}, #{hospital,jdbcType=VARCHAR}, #{touchHubei,jdbcType=TINYINT}, |
|
|
#{animalHeat,jdbcType=DECIMAL}, #{selfFill,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{touchSick,jdbcType=TINYINT}, #{touchOverseas,jdbcType=TINYINT}, #{schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
#{emergencyName,jdbcType=VARCHAR}, #{emergencyPhone,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
#{healthAgreement,jdbcType=TINYINT}, #{selfFill,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.HealthRecords"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.HealthRecords"> |
|
|
@ -142,6 +153,9 @@ |
|
|
<if test="healthTypeId != null"> |
|
|
<if test="healthTypeId != null"> |
|
|
health_type_id, |
|
|
health_type_id, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="animalHeat != null"> |
|
|
|
|
|
animal_heat, |
|
|
|
|
|
</if> |
|
|
<if test="hospital != null"> |
|
|
<if test="hospital != null"> |
|
|
hospital, |
|
|
hospital, |
|
|
</if> |
|
|
</if> |
|
|
@ -151,8 +165,23 @@ |
|
|
<if test="touchSick != null"> |
|
|
<if test="touchSick != null"> |
|
|
touch_sick, |
|
|
touch_sick, |
|
|
</if> |
|
|
</if> |
|
|
<if test="animalHeat != null"> |
|
|
<if test="touchOverseas != null"> |
|
|
animal_heat, |
|
|
touch_overseas, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="schoolLocation != null"> |
|
|
|
|
|
school_location, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyName != null"> |
|
|
|
|
|
emergency_name, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyPhone != null"> |
|
|
|
|
|
emergency_phone, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="remark != null"> |
|
|
|
|
|
remark, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="healthAgreement != null"> |
|
|
|
|
|
health_agreement, |
|
|
</if> |
|
|
</if> |
|
|
<if test="selfFill != null"> |
|
|
<if test="selfFill != null"> |
|
|
self_fill, |
|
|
self_fill, |
|
|
@ -186,6 +215,9 @@ |
|
|
<if test="healthTypeId != null"> |
|
|
<if test="healthTypeId != null"> |
|
|
#{healthTypeId,jdbcType=BIGINT}, |
|
|
#{healthTypeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="animalHeat != null"> |
|
|
|
|
|
#{animalHeat,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
<if test="hospital != null"> |
|
|
<if test="hospital != null"> |
|
|
#{hospital,jdbcType=VARCHAR}, |
|
|
#{hospital,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
@ -195,8 +227,23 @@ |
|
|
<if test="touchSick != null"> |
|
|
<if test="touchSick != null"> |
|
|
#{touchSick,jdbcType=TINYINT}, |
|
|
#{touchSick,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="animalHeat != null"> |
|
|
<if test="touchOverseas != null"> |
|
|
#{animalHeat,jdbcType=DECIMAL}, |
|
|
#{touchOverseas,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="schoolLocation != null"> |
|
|
|
|
|
#{schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyName != null"> |
|
|
|
|
|
#{emergencyName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyPhone != null"> |
|
|
|
|
|
#{emergencyPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="remark != null"> |
|
|
|
|
|
#{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="healthAgreement != null"> |
|
|
|
|
|
#{healthAgreement,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="selfFill != null"> |
|
|
<if test="selfFill != null"> |
|
|
#{selfFill,jdbcType=TINYINT}, |
|
|
#{selfFill,jdbcType=TINYINT}, |
|
|
@ -239,6 +286,9 @@ |
|
|
<if test="record.healthTypeId != null"> |
|
|
<if test="record.healthTypeId != null"> |
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.animalHeat != null"> |
|
|
|
|
|
animal_heat = #{record.animalHeat,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
<if test="record.hospital != null"> |
|
|
<if test="record.hospital != null"> |
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
@ -248,8 +298,23 @@ |
|
|
<if test="record.touchSick != null"> |
|
|
<if test="record.touchSick != null"> |
|
|
touch_sick = #{record.touchSick,jdbcType=TINYINT}, |
|
|
touch_sick = #{record.touchSick,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.animalHeat != null"> |
|
|
<if test="record.touchOverseas != null"> |
|
|
animal_heat = #{record.animalHeat,jdbcType=DECIMAL}, |
|
|
touch_overseas = #{record.touchOverseas,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.schoolLocation != null"> |
|
|
|
|
|
school_location = #{record.schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.emergencyName != null"> |
|
|
|
|
|
emergency_name = #{record.emergencyName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.emergencyPhone != null"> |
|
|
|
|
|
emergency_phone = #{record.emergencyPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.remark != null"> |
|
|
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.healthAgreement != null"> |
|
|
|
|
|
health_agreement = #{record.healthAgreement,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.selfFill != null"> |
|
|
<if test="record.selfFill != null"> |
|
|
self_fill = #{record.selfFill,jdbcType=TINYINT}, |
|
|
self_fill = #{record.selfFill,jdbcType=TINYINT}, |
|
|
@ -276,10 +341,16 @@ |
|
|
district = #{record.district,jdbcType=VARCHAR}, |
|
|
district = #{record.district,jdbcType=VARCHAR}, |
|
|
address = #{record.address,jdbcType=VARCHAR}, |
|
|
address = #{record.address,jdbcType=VARCHAR}, |
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
|
|
|
animal_heat = #{record.animalHeat,jdbcType=DECIMAL}, |
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
touch_hubei = #{record.touchHubei,jdbcType=TINYINT}, |
|
|
touch_hubei = #{record.touchHubei,jdbcType=TINYINT}, |
|
|
touch_sick = #{record.touchSick,jdbcType=TINYINT}, |
|
|
touch_sick = #{record.touchSick,jdbcType=TINYINT}, |
|
|
animal_heat = #{record.animalHeat,jdbcType=DECIMAL}, |
|
|
touch_overseas = #{record.touchOverseas,jdbcType=TINYINT}, |
|
|
|
|
|
school_location = #{record.schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
emergency_name = #{record.emergencyName,jdbcType=VARCHAR}, |
|
|
|
|
|
emergency_phone = #{record.emergencyPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
|
|
|
health_agreement = #{record.healthAgreement,jdbcType=TINYINT}, |
|
|
self_fill = #{record.selfFill,jdbcType=TINYINT}, |
|
|
self_fill = #{record.selfFill,jdbcType=TINYINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
@ -306,6 +377,9 @@ |
|
|
<if test="healthTypeId != null"> |
|
|
<if test="healthTypeId != null"> |
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="animalHeat != null"> |
|
|
|
|
|
animal_heat = #{animalHeat,jdbcType=DECIMAL}, |
|
|
|
|
|
</if> |
|
|
<if test="hospital != null"> |
|
|
<if test="hospital != null"> |
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
@ -315,8 +389,23 @@ |
|
|
<if test="touchSick != null"> |
|
|
<if test="touchSick != null"> |
|
|
touch_sick = #{touchSick,jdbcType=TINYINT}, |
|
|
touch_sick = #{touchSick,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="animalHeat != null"> |
|
|
<if test="touchOverseas != null"> |
|
|
animal_heat = #{animalHeat,jdbcType=DECIMAL}, |
|
|
touch_overseas = #{touchOverseas,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="schoolLocation != null"> |
|
|
|
|
|
school_location = #{schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyName != null"> |
|
|
|
|
|
emergency_name = #{emergencyName,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="emergencyPhone != null"> |
|
|
|
|
|
emergency_phone = #{emergencyPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="remark != null"> |
|
|
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="healthAgreement != null"> |
|
|
|
|
|
health_agreement = #{healthAgreement,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="selfFill != null"> |
|
|
<if test="selfFill != null"> |
|
|
self_fill = #{selfFill,jdbcType=TINYINT}, |
|
|
self_fill = #{selfFill,jdbcType=TINYINT}, |
|
|
@ -340,10 +429,16 @@ |
|
|
district = #{district,jdbcType=VARCHAR}, |
|
|
district = #{district,jdbcType=VARCHAR}, |
|
|
address = #{address,jdbcType=VARCHAR}, |
|
|
address = #{address,jdbcType=VARCHAR}, |
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
|
|
|
animal_heat = #{animalHeat,jdbcType=DECIMAL}, |
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
touch_hubei = #{touchHubei,jdbcType=TINYINT}, |
|
|
touch_hubei = #{touchHubei,jdbcType=TINYINT}, |
|
|
touch_sick = #{touchSick,jdbcType=TINYINT}, |
|
|
touch_sick = #{touchSick,jdbcType=TINYINT}, |
|
|
animal_heat = #{animalHeat,jdbcType=DECIMAL}, |
|
|
touch_overseas = #{touchOverseas,jdbcType=TINYINT}, |
|
|
|
|
|
school_location = #{schoolLocation,jdbcType=TINYINT}, |
|
|
|
|
|
emergency_name = #{emergencyName,jdbcType=VARCHAR}, |
|
|
|
|
|
emergency_phone = #{emergencyPhone,jdbcType=VARCHAR}, |
|
|
|
|
|
remark = #{remark,jdbcType=VARCHAR}, |
|
|
|
|
|
health_agreement = #{healthAgreement,jdbcType=TINYINT}, |
|
|
self_fill = #{selfFill,jdbcType=TINYINT}, |
|
|
self_fill = #{selfFill,jdbcType=TINYINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|