项目初始化
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
<?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.quartz.sysurl.mapper.SysUrlMapper">
|
||||
|
||||
<resultMap type="SysUrl" id="SysUrlResult">
|
||||
<result property="ip" column="ip" />
|
||||
<result property="port" column="port" />
|
||||
<result property="address" column="address" />
|
||||
<result property="type" column="type" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysUrlVo">
|
||||
select ip, port, address, type from sys_url
|
||||
</sql>
|
||||
|
||||
<select id="selectSysUrlList" parameterType="SysUrl" resultMap="SysUrlResult">
|
||||
<include refid="selectSysUrlVo"/>
|
||||
<where>
|
||||
<if test="ip != null and ip != ''"> and ip = #{ip}</if>
|
||||
<if test="port != null and port != ''"> and port = #{port}</if>
|
||||
<if test="address != null and address != ''"> and address = #{address}</if>
|
||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSysUrlByIp" parameterType="String" resultMap="SysUrlResult">
|
||||
<include refid="selectSysUrlVo"/>
|
||||
where ip = #{ip}
|
||||
</select>
|
||||
|
||||
<insert id="insertSysUrl" parameterType="SysUrl">
|
||||
insert into sys_url
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="ip != null">ip,</if>
|
||||
<if test="port != null">port,</if>
|
||||
<if test="address != null">address,</if>
|
||||
<if test="type != null">type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="ip != null">#{ip},</if>
|
||||
<if test="port != null">#{port},</if>
|
||||
<if test="address != null">#{address},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysUrl" parameterType="SysUrl">
|
||||
update sys_url
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="port != null">port = #{port},</if>
|
||||
<if test="address != null">address = #{address},</if>
|
||||
<if test="type != null">type = #{type},</if>
|
||||
</trim>
|
||||
where ip = #{ip}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSysUrlByIp" parameterType="String">
|
||||
delete from sys_url where ip = #{ip}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysUrlByIps" parameterType="String">
|
||||
delete from sys_url where ip in
|
||||
<foreach item="ip" collection="array" open="(" separator="," close=")">
|
||||
#{ip}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user