<?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.smartor.mapper.ServiceOutPathMapper">
|
|
<resultMap type="com.smartor.domain.ServiceOutPath" id="ServiceOutPathResult">
|
<result property="id" column="id"/>
|
<result property="param1" column="param1"/>
|
<result property="param2" column="param2"/>
|
<result property="param3" column="param3"/>
|
<result property="param5" column="param5"/>
|
<result property="createTime" column="create_time"/>
|
<result property="updateTime" column="update_time"/>
|
<result property="delFlag" column="del_flag"/>
|
<result property="radix" column="radix"/>
|
<result property="guid" column="guid"/>
|
<result property="orgid" column="orgid"/>
|
</resultMap>
|
|
<sql id="selectServiceOutPathVo">
|
select id,
|
param1,
|
param2,
|
param3,
|
param5,
|
create_time,
|
update_time,
|
radix,
|
guid,
|
orgid,
|
del_flag
|
from service_out_path
|
</sql>
|
|
<select id="selectServiceOutPathList" parameterType="com.smartor.domain.ServiceOutPath"
|
resultMap="ServiceOutPathResult">
|
<include refid="selectServiceOutPathVo"/>
|
<where>
|
del_flag=0
|
and orgid is null
|
<if test="param1 != null ">
|
and param1 = #{param1}
|
</if>
|
<if test="param2 != null ">
|
and param2 = #{param2}
|
</if>
|
<if test="param3 != null and param3 != ''">
|
and param3 = #{param3}
|
</if>
|
<if test="param5 != null and param5 != ''">
|
and param5 = #{param5}
|
</if>
|
<if test="createTime != null">
|
and create_time = #{createTime}
|
</if>
|
<if test="radix != null and radix != ''">
|
and radix=#{radix}
|
</if>
|
|
</where>
|
</select>
|
|
<select id="selectServiceOutPathById" parameterType="Long"
|
resultMap="ServiceOutPathResult">
|
<include refid="selectServiceOutPathVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertServiceOutPath" parameterType="com.smartor.domain.ServiceOutPath" useGeneratedKeys="true"
|
keyProperty="id">
|
insert into service_out_path
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="param1 != null">param1,
|
</if>
|
<if test="param2 != null">param2,
|
</if>
|
<if test="param3 != null">param3,
|
</if>
|
<if test="param5 != null">param5,
|
</if>
|
<if test="param6 != null">param6,
|
</if>
|
<if test="radix != null">radix,
|
</if>
|
<if test="createTime != null">create_time,
|
</if>
|
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="param1 != null">#{param1},
|
</if>
|
<if test="param2 != null">#{param2},
|
</if>
|
<if test="param3 != null">#{param3},
|
</if>
|
<if test="param5 != null">#{param5},
|
</if>
|
<if test="param6 != null">#{param6},
|
</if>
|
<if test="radix != null">#{radix},
|
</if>
|
<if test="createTime != null">#{createTime},
|
</if>
|
</trim>
|
</insert>
|
|
<update id="updateServiceOutPath" parameterType="com.smartor.domain.ServiceOutPath">
|
update service_out_path
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="param1 != null">param1 =
|
#{param1},
|
</if>
|
<if test="param2 != null">param2 =
|
#{param2},
|
</if>
|
<if test="param3 != null">param3 =
|
#{param3},
|
</if>
|
<if test="param5 != null">param5 =
|
#{param5},
|
</if>
|
<if test="radix != null">radix =
|
#{radix},
|
</if>
|
<if test="guid != null">guid =
|
#{guid},
|
</if>
|
<if test="orgid != null">orgid =
|
#{orgid},
|
</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<update id="deleteServiceOutPathById" parameterType="Long">
|
update service_out_path
|
<trim prefix="SET" suffixOverrides=",">
|
del_flag =1
|
</trim>
|
where id = #{id}
|
</update>
|
|
<update id="deleteServiceOutPathByIds" parameterType="String">
|
update service_out_path
|
<trim prefix="SET" suffixOverrides=",">
|
del_flag =1
|
</trim>
|
where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</update>
|
|
|
</mapper>
|