and teacher_id_ = #{teacherId} and title_ like '%' #{title} '%' and batch_no_ = #{batchNo} AND FIND_IN_SET(o.id_, #{organIdList}) AND date(ee.create_time_) >= #{assignStartTime} AND date(ee.create_time_) <= #{assignEndTime} INSERT INTO extracurricular_exercises (id_,teacher_id_,student_id_list_,batch_no_,title_,attachments_,content_,expire_date_,completed_num_,expect_num_,create_time_,update_time_) VALUES(#{id},#{teacherId},#{studentIdList},#{batchNo},#{title},#{attachments},#{content},#{expireDate},#{completedNum},#{expectNum},NOW(), NOW()) UPDATE extracurricular_exercises student_id_list_ = #{studentIdList}, expire_date_ = #{expireDate}, batch_no_ = #{batchNo}, id_ = #{id}, teacher_id_ = #{teacherId}, title_ = #{title}, expect_num_ = #{expectNum}, content_ = #{content}, attachments_ = #{attachments}, completed_num_ = #{completedNum}, update_time_ = NOW() WHERE id_ = #{id} DELETE FROM extracurricular_exercises WHERE id_ = #{id} teacher_id_=#{teacherId} AND DATE_FORMAT(create_time_, '%Y-%m') = DATE_FORMAT(#{createTime}, '%Y-%m')