123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- <?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.sooka.system.mapper.TUInterfaceinfoMapper">
- <resultMap type="com.sooka.model.bo.TUInterfaceinfo" id="TUInterfaceinfoResult">
- </resultMap>
- <sql id="selectTUInterfaceinfoVo">
- select id, status, remark, del_flag, create_by, create_time, update_by, update_time, interface_name, info_item, usage_scenarios, share_type, interface_type, env, sign_serveraddress, interface_address, type_iam, type_aksk,code,callsuccnum,callfailnum from t_u_interfaceinfo
- </sql>
- <parameterMap id="TUInterfaceinfo" type="com.sooka.model.bo.TUInterfaceinfo"></parameterMap>
- <select id="selectTUInterfaceinfoList" parameterMap="TUInterfaceinfo" resultMap="TUInterfaceinfoResult">
- <include refid="selectTUInterfaceinfoVo"/>
- <where>
- <if test="status != null and status != ''"> and status = #{status}</if>
- <if test="interfaceName != null and interfaceName != ''"> and interface_name like concat('%', #{interfaceName}, '%')</if>
- <if test="infoItem != null and infoItem != ''"> and info_item = #{infoItem}</if>
- <if test="usageScenarios != null and usageScenarios != ''"> and usage_scenarios = #{usageScenarios}</if>
- <if test="shareType != null and shareType != ''"> and share_type = #{shareType}</if>
- <if test="interfaceType != null and interfaceType != ''"> and interface_type = #{interfaceType}</if>
- <if test="env != null and env != ''"> and env = #{env}</if>
- <if test="signServeraddress != null and signServeraddress != ''"> and sign_serveraddress = #{signServeraddress}</if>
- <if test="interfaceAddress != null and interfaceAddress != ''"> and interface_address = #{interfaceAddress}</if>
- <if test="typeIam != null and typeIam != ''"> and type_iam = #{typeIam}</if>
- <if test="typeAksk != null and typeAksk != ''"> and type_aksk = #{typeAksk}</if>
- <if test="code != null and code != ''"> and code = #{code}</if>
- <if test="callsuccnum != null and callsuccnum != ''"> and callsuccnum = #{callsuccnum}</if>
- <if test="callfailnum != null and callfailnum != ''"> and callfailnum = #{callfailnum}</if>
- </where>
- </select>
- <select id="selectTUInterfaceinfoById" parameterType="String" resultMap="TUInterfaceinfoResult">
- <include refid="selectTUInterfaceinfoVo"/>
- where id = #{id}
- </select>
- <insert id="insertTUInterfaceinfo" parameterMap="TUInterfaceinfo">
- insert into t_u_interfaceinfo
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="status != null">status,</if>
- <if test="remark != null">remark,</if>
- <if test="delFlag != null">del_flag,</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>
- <if test="interfaceName != null and interfaceName != ''">interface_name,</if>
- <if test="infoItem != null">info_item,</if>
- <if test="usageScenarios != null">usage_scenarios,</if>
- <if test="shareType != null">share_type,</if>
- <if test="interfaceType != null">interface_type,</if>
- <if test="env != null">env,</if>
- <if test="signServeraddress != null">sign_serveraddress,</if>
- <if test="interfaceAddress != null">interface_address,</if>
- <if test="typeIam != null">type_iam,</if>
- <if test="typeAksk != null">type_aksk,</if>
- <if test="code != null">code,</if>
- <if test="callsuccnum != null">callsuccnum,</if>
- <if test="callfailnum != null">callfailnum,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id},</if>
- <if test="status != null">#{status},</if>
- <if test="remark != null">#{remark},</if>
- <if test="delFlag != null">#{delFlag},</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>
- <if test="interfaceName != null and interfaceName != ''">#{interfaceName},</if>
- <if test="infoItem != null">#{infoItem},</if>
- <if test="usageScenarios != null">#{usageScenarios},</if>
- <if test="shareType != null">#{shareType},</if>
- <if test="interfaceType != null">#{interfaceType},</if>
- <if test="env != null">#{env},</if>
- <if test="signServeraddress != null">#{signServeraddress},</if>
- <if test="interfaceAddress != null">#{interfaceAddress},</if>
- <if test="typeIam != null">#{typeIam},</if>
- <if test="typeAksk != null">#{typeAksk},</if>
- <if test="code != null">#{code},</if>
- <if test="callsuccnum != null">#{callsuccnum},</if>
- <if test="callfailnum != null">#{callfailnum},</if>
- </trim>
- </insert>
- <update id="updateTUInterfaceinfo" parameterMap="TUInterfaceinfo">
- update t_u_interfaceinfo
- <trim prefix="SET" suffixOverrides=",">
- <if test="status != null">status = #{status},</if>
- <if test="remark != null">remark = #{remark},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</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>
- <if test="interfaceName != null and interfaceName != ''">interface_name = #{interfaceName},</if>
- <if test="infoItem != null">info_item = #{infoItem},</if>
- <if test="usageScenarios != null">usage_scenarios = #{usageScenarios},</if>
- <if test="shareType != null">share_type = #{shareType},</if>
- <if test="interfaceType != null">interface_type = #{interfaceType},</if>
- <if test="env != null">env = #{env},</if>
- <if test="signServeraddress != null">sign_serveraddress = #{signServeraddress},</if>
- <if test="interfaceAddress != null">interface_address = #{interfaceAddress},</if>
- <if test="typeIam != null">type_iam = #{typeIam},</if>
- <if test="typeAksk != null">type_aksk = #{typeAksk},</if>
- <if test="code != null">code = #{code},</if>
- <if test="callsuccnum != null">callsuccnum = #{callsuccnum},</if>
- <if test="callfailnum != null">callfailnum = #{callfailnum},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deleteTUInterfaceinfoById" parameterType="String">
- delete from t_u_interfaceinfo where id = #{id}
- </delete>
- <delete id="deleteTUInterfaceinfoByIds" parameterType="String">
- delete from t_u_interfaceinfo where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- <select id="getMaxCode" resultType="java.lang.Integer" >
- SELECT max(CONVERT(code, UNSIGNED INTEGER)) from t_u_interfaceinfo
- </select>
- </mapper>
|