| | |
| | | <if test="query.classId != null"> |
| | | AND ter.class_id = #{query.classId} |
| | | </if> |
| | | <if test="query.contentType != null and query.contentType != '' "> |
| | | AND ter.content_type = #{query.contentType} |
| | | </if> |
| | | </where> |
| | | ORDER BY |
| | | ter.create_time DESC |
| | |
| | | <if test="query.subjectId != null"> |
| | | AND ter.subject_id = #{query.subjectId} |
| | | </if> |
| | | <if test="query.contentType != null and query.contentType != '' "> |
| | | AND ter.content_type = #{query.contentType} |
| | | </if> |
| | | </where> |
| | | ORDER BY |
| | | ter.create_time DESC |
| | |
| | | <insert id="add" keyColumn="id" useGeneratedKeys="true"> |
| | | INSERT INTO t_education_resource(content_type, content_url, subject_id, introduction, create_time, update_time, |
| | | attachment,create_user,class_id) |
| | | value (#{form.contentType}, #{form.contentUrl}, #{form.subjectId}, #{form.introduction}, #{form.createTime}, #{form.updateTime}, #{form.attachment},#{form.createUser},#{form.classId}) |
| | | values (#{form.contentType}, #{form.contentUrl}, #{form.subjectId}, #{form.introduction}, #{form.createTime}, #{form.updateTime}, #{form.attachment},#{form.createUser},#{form.classId}) |
| | | </insert> |
| | | |
| | | <update id="update"> |