龚焕茏
2024-07-24 c09344cd536257fe7d71435840508f11d8269242
feat:选人增加姓名条件
2个文件已修改
8 ■■■■■ 已修改文件
src/main/java/com/mindskip/xzs/domain/vo/ExamTemplatesVO.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ExamPaperMapper.xml 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/mindskip/xzs/domain/vo/ExamTemplatesVO.java
@@ -16,7 +16,7 @@
    private String name;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ctime;
    private LocalDateTime now;
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