龚焕茏
2024-07-24 c09344cd536257fe7d71435840508f11d8269242
src/main/resources/mapper/ExamPaperMapper.xml
@@ -483,11 +483,9 @@
      where
          user_name != 'admin' and a.status != 2 and a.deleted = 0 and (a.`condition` = 0 or a.`condition` is null)
          <if test="deptIds != null and deptIds.size > 0">
            and c.department_id in
            <foreach collection="deptIds" open="(" separator="," close=")" item="deptId">
              #{deptId}
            </foreach>
            and c.department_id in <foreach collection="deptIds" open="(" separator="," close=")" item="deptId"> #{deptId} </foreach>
          </if>
          <if test="realName"> and INSTR(a.real_name, #{realName}) </if>
      group by a.id, a.real_name
        <if test="(tagIds != null and tagIds.size > 0) or (excludeTagIds != null and excludeTagIds.size > 0)">
        having