|
@@ -42,13 +42,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
school_class_type sc
|
|
|
JOIN school_info s ON s.inscode = sc.inscode
|
|
|
<where>
|
|
|
- sc.`status` = '0'
|
|
|
+ <if test="status != null and status != ''"> and sc.`status` = #{status}</if>
|
|
|
<if test="className != null and className != ''"> and sc.`class_name` like concat('%', #{className}, '%')</if>
|
|
|
<if test="totalPrice != null and totalPrice != ''"> and sc.total_price = #{totalPrice}</if>
|
|
|
<if test="train != null and train != ''"> and sc.train = #{train}</if>
|
|
|
<if test="payType != null and payType != ''"> and sc.pay_type = #{payType}</if>
|
|
|
<if test="pxcx != null and pxcx != ''"> and sc.pxcx = #{pxcx}</if>
|
|
|
- <if test="status != null and status != ''"> and sc.status = #{status}</if>
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|