he2802 3 år sedan
förälder
incheckning
4ea629b84d

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/base/UserProfileMapper.xml

@@ -80,10 +80,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND up.goods_id =#{goodsId}
         </if>
         <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 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 test="schoolId != null and schoolId !='' ">
             AND (SELECT g.school_id FROM goods g  where up.goods_id = g.goods_id)  =#{schoolId}