agent2.0版本数据适配,开发脚本策略接口
This commit is contained in:
+82
@@ -0,0 +1,82 @@
|
||||
<?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.ruoyi.rocketmq.mapper.InitialSystemOtherCollectDataMapper">
|
||||
|
||||
<resultMap type="InitialSystemOtherCollectData" id="InitialSystemOtherCollectDataResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="clientId" column="client_id" />
|
||||
<result property="collectType" column="collect_type" />
|
||||
<result property="collectValue" column="collect_value" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createBy" column="create_by" />
|
||||
<result property="updateBy" column="update_by" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectInitialSystemOtherCollectDataVo">
|
||||
select id, client_id, collect_type, collect_value, create_time, update_time, create_by, update_by from initial_system_other_collect_data
|
||||
</sql>
|
||||
|
||||
<select id="selectInitialSystemOtherCollectDataList" parameterType="InitialSystemOtherCollectData" resultMap="InitialSystemOtherCollectDataResult">
|
||||
<include refid="selectInitialSystemOtherCollectDataVo"/>
|
||||
<where>
|
||||
<if test="clientId != null and clientId != ''"> and client_id = #{clientId}</if>
|
||||
<if test="collectType != null and collectType != ''"> and collect_type = #{collectType}</if>
|
||||
<if test="collectValue != null and collectValue != ''"> and collect_value = #{collectValue}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectInitialSystemOtherCollectDataById" parameterType="Long" resultMap="InitialSystemOtherCollectDataResult">
|
||||
<include refid="selectInitialSystemOtherCollectDataVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertInitialSystemOtherCollectData" parameterType="InitialSystemOtherCollectData" useGeneratedKeys="true" keyProperty="id">
|
||||
insert IGNORE into initial_system_other_collect_data
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="clientId != null and clientId != ''">client_id,</if>
|
||||
<if test="collectType != null and collectType != ''">collect_type,</if>
|
||||
<if test="collectValue != null">collect_value,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="clientId != null and clientId != ''">#{clientId},</if>
|
||||
<if test="collectType != null and collectType != ''">#{collectType},</if>
|
||||
<if test="collectValue != null">#{collectValue},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateInitialSystemOtherCollectData" parameterType="InitialSystemOtherCollectData">
|
||||
update initial_system_other_collect_data
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="clientId != null and clientId != ''">client_id = #{clientId},</if>
|
||||
<if test="collectType != null and collectType != ''">collect_type = #{collectType},</if>
|
||||
<if test="collectValue != null">collect_value = #{collectValue},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteInitialSystemOtherCollectDataById" parameterType="Long">
|
||||
delete from initial_system_other_collect_data where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteInitialSystemOtherCollectDataByIds" parameterType="String">
|
||||
delete from initial_system_other_collect_data where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user