|
@@ -80,10 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
AND up.goods_id =#{goodsId}
|
|
AND up.goods_id =#{goodsId}
|
|
</if>
|
|
</if>
|
|
<if test="educationTypeId != null and educationTypeId !='' ">
|
|
<if test="educationTypeId != null and educationTypeId !='' ">
|
|
- AND (SELECT cet.education_type_id FROM goods g LEFT JOIN course_education_type cet on g.education_type_id = cet.id where up.goods_id = g.goods_id) =#{educationTypeId}
|
|
|
|
|
|
+ AND (SELECT cet.id FROM goods g LEFT JOIN course_education_type cet on g.education_type_id = cet.id where up.goods_id = g.goods_id) =#{educationTypeId}
|
|
</if>
|
|
</if>
|
|
<if test="businessId != null and businessId !='' ">
|
|
<if test="businessId != null and businessId !='' ">
|
|
- AND (SELECT cet.business_id FROM goods g LEFT JOIN course_business cet on g.business_id = cet.id where up.goods_id = g.goods_id) =#{businessId}
|
|
|
|
|
|
+ AND (SELECT cet.id FROM goods g LEFT JOIN course_business cet on g.business_id = cet.id where up.goods_id = g.goods_id) =#{businessId}
|
|
</if>
|
|
</if>
|
|
<if test="schoolId != null and schoolId !='' ">
|
|
<if test="schoolId != null and schoolId !='' ">
|
|
AND (SELECT g.school_id FROM goods g where up.goods_id = g.goods_id) =#{schoolId}
|
|
AND (SELECT g.school_id FROM goods g where up.goods_id = g.goods_id) =#{schoolId}
|