|
@@ -13,6 +13,7 @@
|
|
|
<result column="handled_person" property="handledPerson" />
|
|
<result column="handled_person" property="handledPerson" />
|
|
|
<result column="internal_person" property="internalPerson" />
|
|
<result column="internal_person" property="internalPerson" />
|
|
|
<result column="record_video" property="recordVideo" />
|
|
<result column="record_video" property="recordVideo" />
|
|
|
|
|
+ <result column="record_photo" property="recordPhoto" />
|
|
|
<result column="create_time" property="createTime" />
|
|
<result column="create_time" property="createTime" />
|
|
|
<result column="create_by" property="createBy" />
|
|
<result column="create_by" property="createBy" />
|
|
|
<result column="update_time" property="updateTime" />
|
|
<result column="update_time" property="updateTime" />
|
|
@@ -21,7 +22,7 @@
|
|
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="selectBaseColumn">
|
|
<sql id="selectBaseColumn">
|
|
|
- select desc_id, group_id, risk_reason, risk_level, start_date, end_date, risk_duration, internal_person, handled_person, record_video, create_time, create_by, update_time, update_by from lab_risk_plan_abnormal_desc
|
|
|
|
|
|
|
+ select desc_id, group_id, risk_reason, risk_level, start_date, end_date, risk_duration, internal_person, handled_person, record_video, record_photo, create_time, create_by, update_time, update_by from lab_risk_plan_abnormal_desc
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.zd.laboratory.domain.LabRiskPlanAbnormalDesc">
|
|
<insert id="insert" parameterType="com.zd.laboratory.domain.LabRiskPlanAbnormalDesc">
|
|
@@ -36,6 +37,7 @@
|
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person,</if>
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person,</if>
|
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person,</if>
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person,</if>
|
|
|
<if test="recordVideo != null and recordVideo != ''">record_video,</if>
|
|
<if test="recordVideo != null and recordVideo != ''">record_video,</if>
|
|
|
|
|
+ <if test="recordPhoto != null and recordPhoto != ''">record_photo,</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="updateBy !=null and updateBy != ''">update_by,</if>
|
|
<if test="updateBy !=null and updateBy != ''">update_by,</if>
|
|
@@ -51,6 +53,7 @@
|
|
|
<if test="handledPerson != null and handledPerson != ''">#{handledPerson},</if>
|
|
<if test="handledPerson != null and handledPerson != ''">#{handledPerson},</if>
|
|
|
<if test="internalPerson != null and internalPerson != ''">#{internalPerson},</if>
|
|
<if test="internalPerson != null and internalPerson != ''">#{internalPerson},</if>
|
|
|
<if test="recordVideo != null and recordVideo != ''">#{recordVideo},</if>
|
|
<if test="recordVideo != null and recordVideo != ''">#{recordVideo},</if>
|
|
|
|
|
+ <if test="recordPhoto != null and recordPhoto != ''">#{recordPhoto},</if>
|
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="updateBy !=null and updateBy != ''">#{updateBy},</if>
|
|
<if test="updateBy !=null and updateBy != ''">#{updateBy},</if>
|
|
@@ -70,6 +73,7 @@
|
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person = #{handledPerson},</if>
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person = #{handledPerson},</if>
|
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person = #{internalPerson},</if>
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person = #{internalPerson},</if>
|
|
|
<if test="recordVideo != null and recordVideo != ''">record_video = #{recordVideo},</if>
|
|
<if test="recordVideo != null and recordVideo != ''">record_video = #{recordVideo},</if>
|
|
|
|
|
+ <if test="recordPhoto != null and recordPhoto != ''">record_photo = #{recordPhoto},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
<if test="updateBy !=null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy !=null and updateBy != ''">update_by = #{updateBy},</if>
|
|
@@ -89,6 +93,7 @@
|
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person = #{handledPerson},</if>
|
|
<if test="handledPerson != null and handledPerson != ''">handled_person = #{handledPerson},</if>
|
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person = #{internalPerson},</if>
|
|
<if test="internalPerson != null and internalPerson != ''">internal_person = #{internalPerson},</if>
|
|
|
<if test="recordVideo != null and recordVideo != ''">record_video = #{recordVideo},</if>
|
|
<if test="recordVideo != null and recordVideo != ''">record_video = #{recordVideo},</if>
|
|
|
|
|
+ <if test="recordPhoto != null and recordPhoto != ''">record_photo = #{recordPhoto},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
|
|
|
<if test="updateBy !=null and updateBy != ''">update_by = #{updateBy},</if>
|
|
<if test="updateBy !=null and updateBy != ''">update_by = #{updateBy},</if>
|
|
@@ -117,6 +122,7 @@
|
|
|
<if test="riskDuration != null and riskDuration != ''">AND risk_duration = #{riskDuration}</if>
|
|
<if test="riskDuration != null and riskDuration != ''">AND risk_duration = #{riskDuration}</if>
|
|
|
<if test="handledPerson != null and handledPerson != ''">AND handled_person LIKE concat('%', #{handledPerson}, '%'),</if>
|
|
<if test="handledPerson != null and handledPerson != ''">AND handled_person LIKE concat('%', #{handledPerson}, '%'),</if>
|
|
|
<if test="recordVideo != null and recordVideo != ''">AND record_video = #{recordVideo}</if>
|
|
<if test="recordVideo != null and recordVideo != ''">AND record_video = #{recordVideo}</if>
|
|
|
|
|
+ <if test="recordPhoto != null and recordPhoto != ''">AND record_photo = #{recordPhoto}</if>
|
|
|
<if test="createTime != null">AND create_time = #{createTime},</if>
|
|
<if test="createTime != null">AND create_time = #{createTime},</if>
|
|
|
<if test="createBy != null and createBy != ''">AND create_by = #{createBy}</if>
|
|
<if test="createBy != null and createBy != ''">AND create_by = #{createBy}</if>
|
|
|
<if test="updateTime != null">AND update_time = #{updateTime}</if>
|
|
<if test="updateTime != null">AND update_time = #{updateTime}</if>
|