Joburgess 5 年之前
父节点
当前提交
8fdbd0810e
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      mec-biz/src/main/resources/config/mybatis/VipGroupMapper.xml

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

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