| | |
| | | <if test="classesId !=null and classesId != ''"> |
| | | and t.classes_id= #{classesId} |
| | | </if> |
| | | <if test="classesIds !=null"> |
| | | and t.classes_id in |
| | | <foreach collection="classesIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | |
| | | <if test="timeId !=null and timeId != ''"> |
| | | and t.time_id= #{timeId} |
| | | </if> |
| | |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="classesId !=null and classesId != ''"> |
| | | , t.classes_id= #{classesId} |
| | | </if> |
| | | |
| | | <if test="startTime !=null and startTime != ''"> |
| | | , t.start_time= #{startTime} |
| | | </if> |
| | |
| | | <if test="timeId !=null and timeId != ''"> |
| | | and t.time_id= #{timeId} |
| | | </if> |
| | | <if test="classesId !=null and classesId != ''"> |
| | | and t.classes_id= #{classesId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | |
| | | select count(1) count |
| | | from classes_time t |
| | | where 1 =1 |
| | | <if test="classesId !=null and classesId != ''"> |
| | | and t.classes_id= #{classesId} |
| | | <if test="classesIds !=null"> |
| | | and t.classes_id in |
| | | <foreach collection="classesIds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="timeId !=null and timeId != ''"> |
| | | and t.time_id= #{timeId} |