|
|
@@ -14,6 +14,9 @@
|
|
|
<result column="task_context" property="task_context" jdbcType="LONGVARCHAR" />
|
|
|
<result column="task_files" property="task_files" jdbcType="LONGVARCHAR" />
|
|
|
<result column="task_notifier" property="task_notifier" jdbcType="LONGVARCHAR" />
|
|
|
+ <result column="classz_name" property="classz_name" jdbcType="VARCHAR" />
|
|
|
+ <result column="grade_name" property="grade_name" jdbcType="VARCHAR" />
|
|
|
+ <result column="publish_date" property="publish_date" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
@@ -30,12 +33,14 @@
|
|
|
insert into task_notify (subject_id, task_title,
|
|
|
task_status, create_date, start_date,
|
|
|
end_date, task_creator, school_id,
|
|
|
- task_context, task_files, task_notifier
|
|
|
+ task_context, task_files, task_notifier,
|
|
|
+ classz_name, grade_name
|
|
|
)
|
|
|
values (#{subject_id,jdbcType=BIGINT}, #{task_title,jdbcType=VARCHAR},
|
|
|
#{task_status,jdbcType=INTEGER}, #{create_date,jdbcType=TIMESTAMP}, #{start_date,jdbcType=TIMESTAMP},
|
|
|
#{end_date,jdbcType=TIMESTAMP}, #{task_creator,jdbcType=BIGINT}, #{school_id,jdbcType=BIGINT},
|
|
|
- #{task_context,jdbcType=LONGVARCHAR}, #{task_files,jdbcType=LONGVARCHAR}, #{task_notifier,jdbcType=LONGVARCHAR}
|
|
|
+ #{task_context,jdbcType=LONGVARCHAR}, #{task_files,jdbcType=LONGVARCHAR}, #{task_notifier,jdbcType=LONGVARCHAR},
|
|
|
+ #{task_title,jdbcType=VARCHAR},#{task_title,jdbcType=VARCHAR}
|
|
|
)
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.usoftchina.smartschool.school.po.HomeWork" >
|
|
|
@@ -195,7 +200,8 @@
|
|
|
</select>
|
|
|
<update id="updateByPublish" parameterType="java.lang.Long">
|
|
|
update task_notify
|
|
|
- set task_status = 1
|
|
|
+ set task_status = 1 ,
|
|
|
+ publish_date = now()
|
|
|
where task_id = #{task_id,jdbcType=BIGINT}
|
|
|
</update>
|
|
|
</mapper>
|