Joburgess 5 anos atrás
pai
commit
8fdbd0810e

+ 3 - 3
mec-biz/src/main/resources/config/mybatis/VipGroupMapper.xml

@@ -416,13 +416,13 @@
         <where>
         <where>
             vgcgm.vip_group_id_=#{vipGroupId}
             vgcgm.vip_group_id_=#{vipGroupId}
             <if test="startTime!=null and endTime!=null">
             <if test="startTime!=null and endTime!=null">
-                cs.class_date_ BETWEEN #{startTime} AND #{endTime}
+                AND (cs.class_date_ BETWEEN #{startTime} AND #{endTime})
             </if>
             </if>
             <if test="teachMode!=null and teachMode!=''">
             <if test="teachMode!=null and teachMode!=''">
-                cs.teach_mode_=#{teachMode}
+                AND cs.teach_mode_=#{teachMode,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
             </if>
             <if test="status!=null and status!=''">
             <if test="status!=null and status!=''">
-                cs.status_=#{status}
+                AND cs.status_=#{status}
             </if>
             </if>
         </where>
         </where>
     </sql>
     </sql>