|
@@ -0,0 +1,111 @@
|
|
|
+<?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.opt.mapper.SysInfoConfigMapper">
|
|
|
+
|
|
|
+ <resultMap type="SysInfoConfig" id="SysInfoConfigResult">
|
|
|
+ <result property="confId" column="conf_id" />
|
|
|
+ <result property="sysTpCd" column="sys_tp_cd" />
|
|
|
+ <result property="methTpCd" column="meth_tp_cd" />
|
|
|
+ <result property="methUrl" column="meth_url" />
|
|
|
+ <result property="appId" column="app_id" />
|
|
|
+ <result property="appKey" column="app_key" />
|
|
|
+ <result property="skKhh" column="sk_khh" />
|
|
|
+ <result property="skAccountNm" column="sk_account_nm" />
|
|
|
+ <result property="skAccount" column="sk_account" />
|
|
|
+ <result property="status" column="status" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectSysInfoConfigVo">
|
|
|
+ select conf_id, sys_tp_cd, meth_tp_cd, meth_url, app_id, app_key, sk_khh, sk_account_nm, sk_account, status, create_by, create_time, update_by, update_time from sys_info_config
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectSysInfoConfigList" parameterType="SysInfoConfig" resultMap="SysInfoConfigResult">
|
|
|
+ <include refid="selectSysInfoConfigVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="sysTpCd != null and sysTpCd != ''"> and sys_tp_cd = #{sysTpCd}</if>
|
|
|
+ <if test="methUrl != null and methUrl != ''"> and meth_url like concat('%', #{methUrl}, '%')</if>
|
|
|
+ <if test="appId != null and appId != ''"> and app_id like concat('%', #{appId}, '%')</if>
|
|
|
+ <if test="skKhh != null and skKhh != ''"> and sk_khh like concat('%', #{skKhh}, '%')</if>
|
|
|
+ <if test="skAccountNm != null and skAccountNm != ''"> and sk_account_nm like concat('%', #{skAccountNm}, '%')</if>
|
|
|
+ <if test="skAccount != null and skAccount != ''"> and sk_account like concat('%', #{skAccount}, '%')</if>
|
|
|
+ <if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectSysInfoConfigByConfId" parameterType="Long" resultMap="SysInfoConfigResult">
|
|
|
+ <include refid="selectSysInfoConfigVo"/>
|
|
|
+ where conf_id = #{confId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertSysInfoConfig" parameterType="SysInfoConfig" useGeneratedKeys="true" keyProperty="confId">
|
|
|
+ insert into sys_info_config
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="sysTpCd != null">sys_tp_cd,</if>
|
|
|
+ <if test="methTpCd != null">meth_tp_cd,</if>
|
|
|
+ <if test="methUrl != null">meth_url,</if>
|
|
|
+ <if test="appId != null">app_id,</if>
|
|
|
+ <if test="appKey != null">app_key,</if>
|
|
|
+ <if test="skKhh != null">sk_khh,</if>
|
|
|
+ <if test="skAccountNm != null">sk_account_nm,</if>
|
|
|
+ <if test="skAccount != null">sk_account,</if>
|
|
|
+ <if test="status != null">status,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="sysTpCd != null">#{sysTpCd},</if>
|
|
|
+ <if test="methTpCd != null">#{methTpCd},</if>
|
|
|
+ <if test="methUrl != null">#{methUrl},</if>
|
|
|
+ <if test="appId != null">#{appId},</if>
|
|
|
+ <if test="appKey != null">#{appKey},</if>
|
|
|
+ <if test="skKhh != null">#{skKhh},</if>
|
|
|
+ <if test="skAccountNm != null">#{skAccountNm},</if>
|
|
|
+ <if test="skAccount != null">#{skAccount},</if>
|
|
|
+ <if test="status != null">#{status},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateSysInfoConfig" parameterType="SysInfoConfig">
|
|
|
+ update sys_info_config
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="sysTpCd != null">sys_tp_cd = #{sysTpCd},</if>
|
|
|
+ <if test="methTpCd != null">meth_tp_cd = #{methTpCd},</if>
|
|
|
+ <if test="methUrl != null">meth_url = #{methUrl},</if>
|
|
|
+ <if test="appId != null">app_id = #{appId},</if>
|
|
|
+ <if test="appKey != null">app_key = #{appKey},</if>
|
|
|
+ <if test="skKhh != null">sk_khh = #{skKhh},</if>
|
|
|
+ <if test="skAccountNm != null">sk_account_nm = #{skAccountNm},</if>
|
|
|
+ <if test="skAccount != null">sk_account = #{skAccount},</if>
|
|
|
+ <if test="status != null">status = #{status},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where conf_id = #{confId}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteSysInfoConfigByConfId" parameterType="Long">
|
|
|
+ delete from sys_info_config where conf_id = #{confId}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteSysInfoConfigByConfIds" parameterType="String">
|
|
|
+ delete from sys_info_config where conf_id in
|
|
|
+ <foreach item="confId" collection="array" open="(" separator="," close=")">
|
|
|
+ #{confId}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+
|
|
|
+</mapper>
|