|
|
@ -7,7 +7,7 @@ |
|
|
|
<result column="time" jdbcType="BIGINT" property="time" /> |
|
|
|
<result column="district" jdbcType="VARCHAR" property="district" /> |
|
|
|
<result column="address" jdbcType="VARCHAR" property="address" /> |
|
|
|
<result column="health_status" jdbcType="VARCHAR" property="healthStatus" /> |
|
|
|
<result column="health_type_id" jdbcType="BIGINT" property="healthTypeId" /> |
|
|
|
<result column="hospital" jdbcType="VARCHAR" property="hospital" /> |
|
|
|
<result column="touch_hubei" jdbcType="TINYINT" property="touchHubei" /> |
|
|
|
<result column="touch_sick" jdbcType="TINYINT" property="touchSick" /> |
|
|
@ -76,8 +76,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, employee_id, time, district, address, health_status, hospital, touch_hubei, touch_sick, |
|
|
|
animal_heat, self_fill, created_at, updated_at, rec_status |
|
|
|
id, employee_id, time, district, address, health_type_id, hospital, touch_hubei, |
|
|
|
touch_sick, animal_heat, self_fill, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthRecordsExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -111,12 +111,12 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthRecords"> |
|
|
|
insert into t_health_records (id, employee_id, time, |
|
|
|
district, address, health_status, |
|
|
|
district, address, health_type_id, |
|
|
|
hospital, touch_hubei, touch_sick, |
|
|
|
animal_heat, self_fill, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{employeeId,jdbcType=BIGINT}, #{time,jdbcType=BIGINT}, |
|
|
|
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthStatus,jdbcType=VARCHAR}, |
|
|
|
#{district,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{healthTypeId,jdbcType=BIGINT}, |
|
|
|
#{hospital,jdbcType=VARCHAR}, #{touchHubei,jdbcType=TINYINT}, #{touchSick,jdbcType=TINYINT}, |
|
|
|
#{animalHeat,jdbcType=DECIMAL}, #{selfFill,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
@ -139,8 +139,8 @@ |
|
|
|
<if test="address != null"> |
|
|
|
address, |
|
|
|
</if> |
|
|
|
<if test="healthStatus != null"> |
|
|
|
health_status, |
|
|
|
<if test="healthTypeId != null"> |
|
|
|
health_type_id, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
hospital, |
|
|
@ -183,8 +183,8 @@ |
|
|
|
<if test="address != null"> |
|
|
|
#{address,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="healthStatus != null"> |
|
|
|
#{healthStatus,jdbcType=VARCHAR}, |
|
|
|
<if test="healthTypeId != null"> |
|
|
|
#{healthTypeId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
#{hospital,jdbcType=VARCHAR}, |
|
|
@ -236,8 +236,8 @@ |
|
|
|
<if test="record.address != null"> |
|
|
|
address = #{record.address,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="record.healthStatus != null"> |
|
|
|
health_status = #{record.healthStatus,jdbcType=VARCHAR}, |
|
|
|
<if test="record.healthTypeId != null"> |
|
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.hospital != null"> |
|
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
@ -275,7 +275,7 @@ |
|
|
|
time = #{record.time,jdbcType=BIGINT}, |
|
|
|
district = #{record.district,jdbcType=VARCHAR}, |
|
|
|
address = #{record.address,jdbcType=VARCHAR}, |
|
|
|
health_status = #{record.healthStatus,jdbcType=VARCHAR}, |
|
|
|
health_type_id = #{record.healthTypeId,jdbcType=BIGINT}, |
|
|
|
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|
|
|
touch_hubei = #{record.touchHubei,jdbcType=TINYINT}, |
|
|
|
touch_sick = #{record.touchSick,jdbcType=TINYINT}, |
|
|
@ -303,8 +303,8 @@ |
|
|
|
<if test="address != null"> |
|
|
|
address = #{address,jdbcType=VARCHAR}, |
|
|
|
</if> |
|
|
|
<if test="healthStatus != null"> |
|
|
|
health_status = #{healthStatus,jdbcType=VARCHAR}, |
|
|
|
<if test="healthTypeId != null"> |
|
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="hospital != null"> |
|
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
@ -339,7 +339,7 @@ |
|
|
|
time = #{time,jdbcType=BIGINT}, |
|
|
|
district = #{district,jdbcType=VARCHAR}, |
|
|
|
address = #{address,jdbcType=VARCHAR}, |
|
|
|
health_status = #{healthStatus,jdbcType=VARCHAR}, |
|
|
|
health_type_id = #{healthTypeId,jdbcType=BIGINT}, |
|
|
|
hospital = #{hospital,jdbcType=VARCHAR}, |
|
|
|
touch_hubei = #{touchHubei,jdbcType=TINYINT}, |
|
|
|
touch_sick = #{touchSick,jdbcType=TINYINT}, |
|
|
|