|
@@ -30,23 +30,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!--pc班型查询列表-->
|
|
|
<select id="queryList" resultType="com.miaxis.school.vo.SchoolClassTypePcVO">
|
|
|
SELECT
|
|
|
- s.`id`,
|
|
|
- s.`class_name` as className,
|
|
|
- s.`total_price` as totalPrice,
|
|
|
- s.`train`,
|
|
|
- s.`pxcx`,
|
|
|
- s.`pay_type` AS payType,
|
|
|
- s.`create_time` as createTime
|
|
|
+ sc.`id`,
|
|
|
+ sc.`class_name` as className,
|
|
|
+ sc.`total_price` as totalPrice,
|
|
|
+ sc.`train`,
|
|
|
+ sc.`pxcx`,
|
|
|
+ sc.`pay_type` AS payType,
|
|
|
+ sc.`create_time` as createTime
|
|
|
FROM
|
|
|
- school_class_type s
|
|
|
- LEFT JOIN school_info si ON si.inscode = s.inscode
|
|
|
+ school_class_type sc
|
|
|
+ JOIN school_info s ON s.inscode = sc.inscode
|
|
|
<where>
|
|
|
- <if test="className != null and className != ''"> and s.`class_name` like concat('%', #{className}, '%')</if>
|
|
|
- <if test="totalPrice != null and totalPrice != ''"> and s.total_price = #{totalPrice}</if>
|
|
|
- <if test="train != null and train != ''"> and s.train = #{train}</if>
|
|
|
- <if test="payType != null and payType != ''"> and s.pay_type = #{payType}</if>
|
|
|
- <if test="pxcx != null and pxcx != ''"> and s.pxcx = #{pxcx}</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>
|
|
|
</where>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScope}
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|