Initial project
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.imyeyu.server.modules.system.mapper.AsyncTaskMapper">
|
||||
<sql id="table">async_task</sql>
|
||||
<insert id="insert">
|
||||
INSERT INTO <include refid="table" /> (
|
||||
uuid,
|
||||
name,
|
||||
type,
|
||||
message,
|
||||
status,
|
||||
progress,
|
||||
can_pause,
|
||||
can_interrupt,
|
||||
is_periodical,
|
||||
cron,
|
||||
start_at,
|
||||
interrupt_at,
|
||||
error_at,
|
||||
died_at,
|
||||
created_at
|
||||
) VALUES (
|
||||
#{uuid},
|
||||
#{name},
|
||||
#{type},
|
||||
#{message},
|
||||
#{status},
|
||||
#{progress},
|
||||
#{canPause},
|
||||
#{canInterrupt},
|
||||
#{isPeriodical},
|
||||
#{cron},
|
||||
#{startAt},
|
||||
#{interruptAt},
|
||||
#{errorAt},
|
||||
#{diedAt},
|
||||
#{createdAt}
|
||||
)
|
||||
</insert>
|
||||
<update id="update" parameterType="com.imyeyu.server.modules.system.entity.AsyncTask">
|
||||
UPDATE
|
||||
<include refid="table" />
|
||||
SET
|
||||
name = #{name},
|
||||
type = #{type},
|
||||
message = #{message},
|
||||
status = #{status},
|
||||
progress = #{progress},
|
||||
start_at = #{startAt},
|
||||
interrupt_at = #{interruptAt},
|
||||
error_at = #{errorAt},
|
||||
died_at = #{diedAt}
|
||||
WHERE
|
||||
uuid = #{uuid}
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user