|
@@ -125,5 +125,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="businessId != null and businessId != ''">
|
|
<if test="businessId != null and businessId != ''">
|
|
|
AND g.business_id = #{businessId}
|
|
AND g.business_id = #{businessId}
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
|
|
+ AND g.school_id = #{schoolId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="majorId != null and majorId != ''">
|
|
|
|
|
+ AND g.major_id = #{majorId}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="goodsStatus != null and goodsStatus != ''">
|
|
|
|
|
+ AND g.goods_status = #{goodsStatus}
|
|
|
|
|
+ </if>
|
|
|
|
|
+ <if test="studyStartTime != null and studyStartTime != '' and studyEndTime != null and studyEndTime != ''">
|
|
|
|
|
+ and #{studyStartTime} BETWEEN g.validity_start_time and g.validity_end_time or #{studyEndTime} BETWEEN g.validity_start_time and g.validity_end_time
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|