|
@@ -36,6 +36,7 @@
|
|
|
<result property="qrCodeUrl" column="qr_code_url" />
|
|
<result property="qrCodeUrl" column="qr_code_url" />
|
|
|
<result property="scanCount" column="scan_count" />
|
|
<result property="scanCount" column="scan_count" />
|
|
|
<result property="hazardTypeMode" column="hazard_type_mode" />
|
|
<result property="hazardTypeMode" column="hazard_type_mode" />
|
|
|
|
|
+ <result property="hazardTypeModeName" column="hazard_type_mode_name" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabHazardVO" id="LabHazardVoResult">
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabHazardVO" id="LabHazardVoResult">
|
|
@@ -187,7 +188,8 @@
|
|
|
b.hazard_id as sub_hazard_id,
|
|
b.hazard_id as sub_hazard_id,
|
|
|
b.subject_id as sub_subject_id,
|
|
b.subject_id as sub_subject_id,
|
|
|
b.create_time as sub_create_time,
|
|
b.create_time as sub_create_time,
|
|
|
- a.hazard_type_mode
|
|
|
|
|
|
|
+ a.hazard_type_mode,
|
|
|
|
|
+ a.hazard_type_mode_name
|
|
|
from lab_hazard a
|
|
from lab_hazard a
|
|
|
left join lab_hazard_subject_relation b on b.hazard_id = a.id
|
|
left join lab_hazard_subject_relation b on b.hazard_id = a.id
|
|
|
where a.id = #{id}
|
|
where a.id = #{id}
|
|
@@ -250,6 +252,7 @@
|
|
|
<if test="content != null">content,</if>
|
|
<if test="content != null">content,</if>
|
|
|
<if test="scanCount != null">scan_count,</if>
|
|
<if test="scanCount != null">scan_count,</if>
|
|
|
<if test="hazardTypeMode != null">hazard_type_mode,</if>
|
|
<if test="hazardTypeMode != null">hazard_type_mode,</if>
|
|
|
|
|
+ <if test="hazardTypeModeName != null">hazard_type_mode_name,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="chName != null">#{chName},</if>
|
|
<if test="chName != null">#{chName},</if>
|
|
@@ -281,6 +284,7 @@
|
|
|
<if test="content != null">#{content},</if>
|
|
<if test="content != null">#{content},</if>
|
|
|
<if test="scanCount != null">#{scanCount},</if>
|
|
<if test="scanCount != null">#{scanCount},</if>
|
|
|
<if test="hazardTypeMode != null">#{hazardTypeMode},</if>
|
|
<if test="hazardTypeMode != null">#{hazardTypeMode},</if>
|
|
|
|
|
+ <if test="hazardTypeModeName != null">#{hazardTypeModeName},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -316,6 +320,7 @@
|
|
|
<if test="content != null">content = #{content},</if>
|
|
<if test="content != null">content = #{content},</if>
|
|
|
<if test="scanCount != null">scan_count = #{scanCount},</if>
|
|
<if test="scanCount != null">scan_count = #{scanCount},</if>
|
|
|
<if test="hazardTypeMode != null">hazard_type_mode = #{hazardTypeMode},</if>
|
|
<if test="hazardTypeMode != null">hazard_type_mode = #{hazardTypeMode},</if>
|
|
|
|
|
+ <if test="hazardTypeModeName != null">hazard_type_mode_name = #{hazardTypeModeName},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|