增加问卷调查展示逻辑

This commit is contained in:
2025-06-27 17:36:33 +08:00
parent f120195f04
commit a0b941e3f7
6 changed files with 89 additions and 16 deletions

View File

@ -88,4 +88,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{id}
</foreach>
</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>
group by answer
</select>
</mapper>