修改导入的一些bug

This commit is contained in:
2025-07-15 17:19:29 +08:00
parent 2edea640d0
commit 31e2a0c5c4
7 changed files with 966 additions and 147 deletions

View File

@ -90,12 +90,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<select id="selectIndex" resultType="com.ruoyi.dw.domain.vo.AnswerCountVo">
select answer, count(0) as answer_count from dw_answer
where indo_id = #{infoId}
and question_id in
<foreach item="questionId" collection="questionIds" open="(" separator="," close=")">
#{questionId}
</foreach>
select answer, count(0) as answer_count
from dw_answer
where indo_id = #{infoId}
and question_id = #{questionId}
group by answer
</select>