|
@@ -32,6 +32,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
<result property="details" column="details"/>
|
|
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectVO" id="LabSubjectResultVO">
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectVO" id="LabSubjectResultVO">
|
|
@@ -81,6 +82,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
<result property="details" column="details"/>
|
|
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectDetailVO" id="subjectAndInfoResult">
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectDetailVO" id="subjectAndInfoResult">
|
|
@@ -123,6 +125,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
<result property="details" column="details"/>
|
|
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
|
|
|
|
|
<collection property="hazardSubjectRelations" column="id"
|
|
<collection property="hazardSubjectRelations" column="id"
|
|
|
ofType="com.zd.laboratory.domain.LabHazardSubjectRelation"
|
|
ofType="com.zd.laboratory.domain.LabHazardSubjectRelation"
|
|
@@ -171,6 +174,7 @@
|
|
|
inspect_check_count,
|
|
inspect_check_count,
|
|
|
inspect_sign_time,
|
|
inspect_sign_time,
|
|
|
details,
|
|
details,
|
|
|
|
|
+ hardware_type,
|
|
|
(SELECT GROUP_CONCAT(ur.nick_name)
|
|
(SELECT GROUP_CONCAT(ur.nick_name)
|
|
|
FROM sys_user ur
|
|
FROM sys_user ur
|
|
|
WHERE ur.`user_id`
|
|
WHERE ur.`user_id`
|
|
@@ -256,6 +260,7 @@
|
|
|
t.inspect_check_count,
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
t.inspect_sign_time,
|
|
|
t.details,
|
|
t.details,
|
|
|
|
|
+ t.hardware_type,
|
|
|
(select i.id from xxp_card_info i where i.subJect_id=t.id LIMIT 1) xxpCardInfoId,
|
|
(select i.id from xxp_card_info i where i.subJect_id=t.id LIMIT 1) xxpCardInfoId,
|
|
|
CONCAT(su.nick_name, '@', su.phonenumber) AS adminNameAndPhone,
|
|
CONCAT(su.nick_name, '@', su.phonenumber) AS adminNameAndPhone,
|
|
|
|
|
|
|
@@ -311,7 +316,8 @@
|
|
|
t.inspect_skipped,
|
|
t.inspect_skipped,
|
|
|
t.inspect_check_count,
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
t.inspect_sign_time,
|
|
|
- t.details
|
|
|
|
|
|
|
+ t.details,
|
|
|
|
|
+ t.hardware_type
|
|
|
from lab_subject t
|
|
from lab_subject t
|
|
|
left join sys_user su on su.user_id = t.admin_id
|
|
left join sys_user su on su.user_id = t.admin_id
|
|
|
left join sys_dept sd on sd.dept_id = t.dept_id
|
|
left join sys_dept sd on sd.dept_id = t.dept_id
|
|
@@ -461,7 +467,8 @@
|
|
|
t.inspect_skipped,
|
|
t.inspect_skipped,
|
|
|
t.inspect_check_count,
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
t.inspect_sign_time,
|
|
|
- t.details
|
|
|
|
|
|
|
+ t.details,
|
|
|
|
|
+ t.hardware_type
|
|
|
from lab_subject t
|
|
from lab_subject t
|
|
|
left join sys_user su on su.user_id = t.admin_id AND su.`del_flag`=0
|
|
left join sys_user su on su.user_id = t.admin_id AND su.`del_flag`=0
|
|
|
left join sys_dept sd on sd.dept_id = t.dept_id
|
|
left join sys_dept sd on sd.dept_id = t.dept_id
|
|
@@ -584,6 +591,7 @@
|
|
|
<if test="inspectCheckCount != null">inspect_check_count,</if>
|
|
<if test="inspectCheckCount != null">inspect_check_count,</if>
|
|
|
<if test="inspectSignTime != null">inspect_sign_time,</if>
|
|
<if test="inspectSignTime != null">inspect_sign_time,</if>
|
|
|
<if test="details != null">details,</if>
|
|
<if test="details != null">details,</if>
|
|
|
|
|
+ <if test="hardwareType != null">hardware_type,</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
<if test="id != null">#{id},</if>
|
|
@@ -624,6 +632,7 @@
|
|
|
<if test="inspectCheckCount != null">#{inspectCheckCount},</if>
|
|
<if test="inspectCheckCount != null">#{inspectCheckCount},</if>
|
|
|
<if test="inspectSignTime != null">#{inspectSignTime},</if>
|
|
<if test="inspectSignTime != null">#{inspectSignTime},</if>
|
|
|
<if test="details != null">#{details},</if>
|
|
<if test="details != null">#{details},</if>
|
|
|
|
|
+ <if test="hardwareType != null">#{hardwareType},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
|
@@ -668,6 +677,7 @@
|
|
|
<if test="inspectCheckCount != null">inspect_check_count = #{inspectCheckCount},</if>
|
|
<if test="inspectCheckCount != null">inspect_check_count = #{inspectCheckCount},</if>
|
|
|
<if test="inspectSignTime != null">inspect_sign_time = #{inspectSignTime},</if>
|
|
<if test="inspectSignTime != null">inspect_sign_time = #{inspectSignTime},</if>
|
|
|
<if test="details != null">details = #{details},</if>
|
|
<if test="details != null">details = #{details},</if>
|
|
|
|
|
+ <if test="hardwareType != null">hardware_type = #{hardwareType},</if>
|
|
|
</trim>
|
|
</trim>
|
|
|
where id = #{id}
|
|
where id = #{id}
|
|
|
</update>
|
|
</update>
|