202404 免责声明
This commit is contained in:
@@ -11,9 +11,5 @@ public interface DisclaimersMapper {
|
||||
|
||||
Disclaimers selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(Disclaimers record);
|
||||
|
||||
int updateByPrimaryKeyWithBLOBs(Disclaimers record);
|
||||
|
||||
int updateByPrimaryKey(Disclaimers record);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ public class DisclaimersService extends BaseServiceImpl {
|
||||
// 需要更新或者创建
|
||||
if (disclaimers.getId() != null && disclaimers.getId() > 0) {
|
||||
// 更新
|
||||
disclaimers.setPlatformId(1);
|
||||
disclaimersMapper.updateByPrimaryKey(disclaimers);
|
||||
} else {
|
||||
// 新建
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
description
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Integer" >
|
||||
select
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
@@ -43,11 +43,11 @@
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sv.entity.Disclaimers" >
|
||||
insert into sv_disclaimers (id, platform_id, created_id,
|
||||
modified_id, created_time, modified_time,
|
||||
insert into sv_disclaimers (id, platform_id, created_id,
|
||||
modified_id, created_time, modified_time,
|
||||
deleted, description)
|
||||
values (#{id,jdbcType=INTEGER}, #{platformId,jdbcType=INTEGER}, #{createdId,jdbcType=INTEGER},
|
||||
#{modifiedId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP},
|
||||
values (#{id,jdbcType=INTEGER}, #{platformId,jdbcType=INTEGER}, #{createdId,jdbcType=INTEGER},
|
||||
#{modifiedId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP},
|
||||
#{deleted,jdbcType=INTEGER}, #{description,jdbcType=LONGVARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sv.entity.Disclaimers" >
|
||||
@@ -105,7 +105,7 @@
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sv.entity.Disclaimers" >
|
||||
<update id="updateByPrimaryKey" parameterType="com.sv.entity.Disclaimers" >
|
||||
update sv_disclaimers
|
||||
<set >
|
||||
<if test="platformId != null" >
|
||||
@@ -132,25 +132,4 @@
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sv.entity.Disclaimers" >
|
||||
update sv_disclaimers
|
||||
set platform_id = #{platformId,jdbcType=INTEGER},
|
||||
created_id = #{createdId,jdbcType=INTEGER},
|
||||
modified_id = #{modifiedId,jdbcType=INTEGER},
|
||||
created_time = #{createdTime,jdbcType=TIMESTAMP},
|
||||
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
||||
deleted = #{deleted,jdbcType=INTEGER},
|
||||
description = #{description,jdbcType=LONGVARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sv.entity.Disclaimers" >
|
||||
update sv_disclaimers
|
||||
set platform_id = #{platformId,jdbcType=INTEGER},
|
||||
created_id = #{createdId,jdbcType=INTEGER},
|
||||
modified_id = #{modifiedId,jdbcType=INTEGER},
|
||||
created_time = #{createdTime,jdbcType=TIMESTAMP},
|
||||
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},
|
||||
deleted = #{deleted,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user