|
@@ -30,4 +30,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <select id="selectQuestionColumnCount" parameterType="QuestionColumn" resultType="int">
|
|
|
+ select count(1) from question_column
|
|
|
+ <where>
|
|
|
+ <if test="sort != null "> and sort = #{sort}</if>
|
|
|
+ <if test="columnId != null "> and column_id = #{columnId}</if>
|
|
|
+ <if test="model != null and model != ''"> and model = #{model}</if>
|
|
|
+ <if test="subject != null and subject != ''"> and subject = #{subject}</if>
|
|
|
+ <if test="title != null and title != ''"> and title = #{title}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|