Bläddra i källkod

大屏统计优化

xuxiaofei 2 år sedan
förälder
incheckning
e892a4a57d

+ 7 - 1
zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabSubjectMapper.xml

@@ -258,7 +258,6 @@
                t.inspect_skipped,
                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,
@@ -417,6 +416,13 @@
             <if test="level != null ">and t.level = #{level}</if>
             <if test="typeId != null ">and t.type_id = #{typeId}</if>
             <if test="subDept != null and subDept != ''">and t.sub_dept = #{subDept}</if>
+            <if test="ids!=null and ids.size()>0">
+            and t.id in
+                <foreach item="id" collection="ids" open="(" separator="," close=")">
+                    #{id}
+                </foreach>
+            </if>
+
             <!-- 数据范围过滤 -->
             ${params.dataScope}
         </where>