| | |
| | | <select id="queryQuestionAnswerTitleValueResult" parameterType="Map" resultType="Map"> |
| | | select t.value_id valueId,t.qa_value qaValue,count(uqav.person_id) userCount |
| | | from question_answer_title_value t |
| | | LEFT JOIN user_question_answer_value uqav on t.title_id = uqav.title_id and uqav.status_cd = '0' |
| | | LEFT JOIN user_question_answer_value uqav on t.value_id = uqav.value_id and uqav.status_cd = '0' |
| | | where 1 =1 |
| | | <if test="valueId !=null and valueId != ''"> |
| | | and t.value_id= #{valueId} |
| | |
| | | <if test="seq !=null and seq != ''"> |
| | | and t.seq= #{seq} |
| | | </if> |
| | | order by t.seq |
| | | GROUP BY t.value_id,t.qa_value |
| | | </select> |
| | | <!-- 查询答卷选项信息 add by wuxw 2018-07-03 --> |
| | |
| | | <if test="titleId !=null and titleId != ''"> |
| | | and t.title_id= #{titleId} |
| | | </if> |
| | | |
| | | <if test="titleIds !=null"> |
| | | and t.title_id in |
| | | <foreach collection="titleIds" item="item" open="(" close=")" separator=","> |