xiangpei
2024-03-15 551fa4de5446f9564de08e666740fceccfd5ba6a
src/main/resources/mapper/ExamPaperAnswerMapper.xml
@@ -299,7 +299,7 @@
    FROM t_exam_paper_answer
    where id = #{id}
  </select>
  <select id="selectByPaperName" resultMap="BaseResultMap" parameterType="java.lang.String">
    SELECT
    <include refid="Base_Column_List"/>
@@ -346,10 +346,18 @@
        </foreach>
      </if>
    </select>
    <select id="getByCreatUser" resultMap="BaseResultMap" parameterType="com.mindskip.xzs.domain.vo.ScoreTemplatesCountVO">
      select
      <include refid="Base_Column_List4"/>
      from t_exam_paper_answer where create_user = #{createUser} and create_time between '2023-01-01'and '2023-12-31'
        <include refid="Base_Column_List4"/>
      from
           t_exam_paper_answer
      <where>
        AND create_user = #{query.createUser}
        <if test="query.start != null and query.end != null">
          AND create_time between #{query.start} and #{query.end}
        </if>
      </where>
    </select>
  <select id="getByExamPaperIds" resultMap="BaseResultMap" parameterType="list">