|
|
@@ -32,6 +32,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectVO" id="LabSubjectResultVO">
|
|
|
@@ -81,6 +82,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<resultMap type="com.zd.laboratory.domain.vo.LabSubjectDetailVO" id="subjectAndInfoResult">
|
|
|
@@ -123,6 +125,7 @@
|
|
|
<result property="inspectCheckCount" column="inspect_check_count"/>
|
|
|
<result property="inspectSignTime" column="inspect_sign_time"/>
|
|
|
<result property="details" column="details"/>
|
|
|
+ <result property="hardwareType" column="hardware_type"/>
|
|
|
|
|
|
<collection property="hazardSubjectRelations" column="id"
|
|
|
ofType="com.zd.laboratory.domain.LabHazardSubjectRelation"
|
|
|
@@ -171,6 +174,7 @@
|
|
|
inspect_check_count,
|
|
|
inspect_sign_time,
|
|
|
details,
|
|
|
+ hardware_type,
|
|
|
(SELECT GROUP_CONCAT(ur.nick_name)
|
|
|
FROM sys_user ur
|
|
|
WHERE ur.`user_id`
|
|
|
@@ -256,6 +260,7 @@
|
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
|
t.details,
|
|
|
+ t.hardware_type,
|
|
|
(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,
|
|
|
|
|
|
@@ -312,7 +317,8 @@
|
|
|
t.inspect_skipped,
|
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
|
- t.details
|
|
|
+ t.details,
|
|
|
+ t.hardware_type
|
|
|
from lab_subject t
|
|
|
left join sys_user su on su.user_id = t.admin_id
|
|
|
left join sys_dept sd on sd.dept_id = t.dept_id
|
|
|
@@ -462,7 +468,8 @@
|
|
|
t.inspect_skipped,
|
|
|
t.inspect_check_count,
|
|
|
t.inspect_sign_time,
|
|
|
- t.details
|
|
|
+ t.details,
|
|
|
+ t.hardware_type
|
|
|
from lab_subject t
|
|
|
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
|
|
|
@@ -585,6 +592,7 @@
|
|
|
<if test="inspectCheckCount != null">inspect_check_count,</if>
|
|
|
<if test="inspectSignTime != null">inspect_sign_time,</if>
|
|
|
<if test="details != null">details,</if>
|
|
|
+ <if test="hardwareType != null">hardware_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@@ -625,6 +633,7 @@
|
|
|
<if test="inspectCheckCount != null">#{inspectCheckCount},</if>
|
|
|
<if test="inspectSignTime != null">#{inspectSignTime},</if>
|
|
|
<if test="details != null">#{details},</if>
|
|
|
+ <if test="hardwareType != null">#{hardwareType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -669,6 +678,7 @@
|
|
|
<if test="inspectCheckCount != null">inspect_check_count = #{inspectCheckCount},</if>
|
|
|
<if test="inspectSignTime != null">inspect_sign_time = #{inspectSignTime},</if>
|
|
|
<if test="details != null">details = #{details},</if>
|
|
|
+ <if test="hardwareType != null">hardware_type = #{hardwareType},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
|
@@ -1127,7 +1137,8 @@
|
|
|
<if test="name != null and name !=''">
|
|
|
and s.name like concat('%', #{name}, '%')
|
|
|
</if>
|
|
|
- and id not in( select subject_id from xxp_card_info <if test="id != null ">where subject_id != #{id}</if> )
|
|
|
+ and id not in( select subject_id from xxp_card_info )
|
|
|
+ <if test="id != null ">or s.id = #{id}</if>
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|