陈昶聿
20 小时以前 4a32d5080ec6a2feba71667405596b35f02d2a3d
smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -10,6 +10,7 @@
        <result property="param2" column="param2"/>
        <result property="param3" column="param3"/>
        <result property="param5" column="param5"/>
        <result property="param6" column="param6"/>
        <result property="createTime" column="create_time"/>
        <result property="updateTime" column="update_time"/>
        <result property="delFlag" column="del_flag"/>
@@ -24,6 +25,7 @@
               param2,
               param3,
               param5,
               param6,
               create_time,
               update_time,
               radix,
@@ -36,29 +38,31 @@
    <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 1=1
        and 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="param6 != null  and param6 != ''">
            and param6 = #{param6}
        </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"
@@ -120,6 +124,9 @@
            <if test="param5 != null">param5 =
                #{param5},
            </if>
            <if test="param6 != null">param6 =
                #{param6},
            </if>
            <if test="radix != null">radix =
                #{radix},
            </if>
@@ -151,9 +158,12 @@
            #{id}
        </foreach>
    </update>
    <select id="selectAutoId" resultType="Integer" >
        SELECT AUTO_INCREMENT FROM  INFORMATION_SCHEMA.TABLES
         WHERE  TABLE_NAME  = 'service_out_path'  AND table_schema = DATABASE() and onorgid
    <select id="selectAutoId" resultType="Integer">
        SELECT AUTO_INCREMENT
        FROM INFORMATION_SCHEMA.TABLES
        WHERE TABLE_NAME = 'service_out_path'
          AND table_schema = DATABASE()
          and onorgid
    </select>
</mapper>