qidingqiang vor 5 Monaten
Ursprung
Commit
4d739d7a85

+ 3 - 2
zd-modules/zd-modules-laboratory/src/main/resources/mapper/laboratory/LabViolationMapper.xml

@@ -536,8 +536,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 
         /* 3. 负面名单 id(只取一条即可) */
         LEFT JOIN lab_negative_list_records n
-        ON n.user_id = u.user_id;
-        where true
+        ON n.user_id = u.user_id
+        <where>
            <!--<if test="userId!=null"> and join_user_id=#{userId}</if>-->
            <if test="creact_id!=null"> and creact_id=#{creact_id}</if>
 
@@ -569,6 +569,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="order=='blackListNum'">
             order by v.black_list_num ${orderType}
         </if>
+        </where>
     </select>
 
     <update id="updateLabViolationNum" >