Initial project

This commit is contained in:
Timi
2025-07-08 16:31:30 +08:00
parent 1c6a45c8c2
commit ae0f56a6dc
356 changed files with 21123 additions and 109 deletions
@@ -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>