This commit is contained in:
xzb 2022-10-12 17:44:11 +08:00
parent fabaff59fb
commit d64117292a
4 changed files with 44 additions and 44 deletions

View File

@ -83,7 +83,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from paper_composition
from rts_paper_composition
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -102,21 +102,21 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from paper_composition
from rts_paper_composition
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from paper_composition
delete from rts_paper_composition
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.paper.PaperCompositionExample">
delete from paper_composition
delete from rts_paper_composition
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.PaperComposition">
insert into paper_composition (id, `name`, profile,
insert into rts_paper_composition (id, `name`, profile,
org_id, start_time, end_time,
valid_duration, pass_score, creator_id,
create_time, update_time, `state`
@ -128,7 +128,7 @@
)
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.PaperComposition">
insert into paper_composition
insert into rts_paper_composition
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
@ -207,13 +207,13 @@
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.paper.PaperCompositionExample" resultType="java.lang.Long">
select count(*) from paper_composition
select count(*) from rts_paper_composition
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update paper_composition
update rts_paper_composition
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
@ -257,7 +257,7 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update paper_composition
update rts_paper_composition
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
profile = #{record.profile,jdbcType=VARCHAR},
@ -275,7 +275,7 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.PaperComposition">
update paper_composition
update rts_paper_composition
<set>
<if test="name != null">
`name` = #{name,jdbcType=VARCHAR},
@ -314,7 +314,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.paper.PaperComposition">
update paper_composition
update rts_paper_composition
set `name` = #{name,jdbcType=VARCHAR},
profile = #{profile,jdbcType=VARCHAR},
org_id = #{orgId,jdbcType=BIGINT},

View File

@ -77,7 +77,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from paper_rule
from rts_paper_rule
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -96,21 +96,21 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from paper_rule
from rts_paper_rule
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from paper_rule
delete from rts_paper_rule
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.paper.PaperRuleExample">
delete from paper_rule
delete from rts_paper_rule
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.PaperRule">
insert into paper_rule (id, pc_id, `type`,
insert into rts_paper_rule (id, pc_id, `type`,
subType, tags, amount,
score)
values (#{id,jdbcType=BIGINT}, #{pcId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER},
@ -118,7 +118,7 @@
#{score,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.PaperRule">
insert into paper_rule
insert into rts_paper_rule
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
@ -167,13 +167,13 @@
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.paper.PaperRuleExample" resultType="java.lang.Long">
select count(*) from paper_rule
select count(*) from rts_paper_rule
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update paper_rule
update rts_paper_rule
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
@ -202,7 +202,7 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update paper_rule
update rts_paper_rule
set id = #{record.id,jdbcType=BIGINT},
pc_id = #{record.pcId,jdbcType=BIGINT},
`type` = #{record.type,jdbcType=INTEGER},
@ -215,7 +215,7 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.PaperRule">
update paper_rule
update rts_paper_rule
<set>
<if test="pcId != null">
pc_id = #{pcId,jdbcType=BIGINT},
@ -239,7 +239,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.paper.PaperRule">
update paper_rule
update rts_paper_rule
set pc_id = #{pcId,jdbcType=BIGINT},
`type` = #{type,jdbcType=INTEGER},
subType = #{subtype,jdbcType=INTEGER},

View File

@ -79,7 +79,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from paper_user
from rts_paper_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -98,21 +98,21 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from paper_user
from rts_paper_user
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from paper_user
delete from rts_paper_user
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.paper.PaperUserExample">
delete from paper_user
delete from rts_paper_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.PaperUser">
insert into paper_user (id, user_id, pc_id,
insert into rts_paper_user (id, user_id, pc_id,
org_id, score, start_time,
end_time, cause, create_time
)
@ -122,7 +122,7 @@
)
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.PaperUser">
insert into paper_user
insert into rts_paper_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
@ -183,13 +183,13 @@
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.paper.PaperUserExample" resultType="java.lang.Long">
select count(*) from paper_user
select count(*) from rts_paper_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update paper_user
update rts_paper_user
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
@ -224,7 +224,7 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update paper_user
update rts_paper_user
set id = #{record.id,jdbcType=BIGINT},
user_id = #{record.userId,jdbcType=BIGINT},
pc_id = #{record.pcId,jdbcType=BIGINT},
@ -239,7 +239,7 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.PaperUser">
update paper_user
update rts_paper_user
<set>
<if test="userId != null">
user_id = #{userId,jdbcType=BIGINT},
@ -269,7 +269,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.paper.PaperUser">
update paper_user
update rts_paper_user
set user_id = #{userId,jdbcType=BIGINT},
pc_id = #{pcId,jdbcType=BIGINT},
org_id = #{orgId,jdbcType=BIGINT},

View File

@ -76,7 +76,7 @@
distinct
</if>
<include refid="Base_Column_List" />
from paper_user_question
from rts_paper_user_question
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
@ -95,21 +95,21 @@
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from paper_user_question
from rts_paper_user_question
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from paper_user_question
delete from rts_paper_user_question
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestionExample">
delete from paper_user_question
delete from rts_paper_user_question
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestion">
insert into paper_user_question (id, pu_id, org_id,
insert into rts_paper_user_question (id, pu_id, org_id,
`type`, question_id, `state`
)
values (#{id,jdbcType=BIGINT}, #{puId,jdbcType=BIGINT}, #{orgId,jdbcType=BIGINT},
@ -117,7 +117,7 @@
)
</insert>
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestion">
insert into paper_user_question
insert into rts_paper_user_question
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
@ -160,13 +160,13 @@
</trim>
</insert>
<select id="countByExample" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestionExample" resultType="java.lang.Long">
select count(*) from paper_user_question
select count(*) from rts_paper_user_question
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update paper_user_question
update rts_paper_user_question
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
@ -192,7 +192,7 @@
</if>
</update>
<update id="updateByExample" parameterType="map">
update paper_user_question
update rts_paper_user_question
set id = #{record.id,jdbcType=BIGINT},
pu_id = #{record.puId,jdbcType=BIGINT},
org_id = #{record.orgId,jdbcType=BIGINT},
@ -204,7 +204,7 @@
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestion">
update paper_user_question
update rts_paper_user_question
<set>
<if test="puId != null">
pu_id = #{puId,jdbcType=BIGINT},
@ -225,7 +225,7 @@
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.paper.PaperUserQuestion">
update paper_user_question
update rts_paper_user_question
set pu_id = #{puId,jdbcType=BIGINT},
org_id = #{orgId,jdbcType=BIGINT},
`type` = #{type,jdbcType=INTEGER},