陈昶聿
15 小时以前 f3434f830cfee5838211e58a3a361c73f7166342
smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -10,12 +10,18 @@
        <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"/>
        <result property="radix" column="radix"/>
        <result property="guid" column="guid"/>
        <result property="orgid" column="orgid"/>
        <result property="url" column="url"/>
        <result property="wardCode" column="ward_code"/>
        <result property="wardName" column="ward_name"/>
        <result property="deptCode" column="dept_code"/>
        <result property="deptName" column="dept_name"/>
    </resultMap>
    <sql id="selectServiceOutPathVo">
@@ -24,11 +30,17 @@
               param2,
               param3,
               param5,
               param6,
               create_time,
               update_time,
               radix,
               guid,
               orgid,
               url,
               ward_code,
               ward_name,
               dept_code,
               dept_name,
               del_flag
        from service_out_path
    </sql>
@@ -37,27 +49,44 @@
            resultMap="ServiceOutPathResult">
        <include refid="selectServiceOutPathVo"/>
        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="createTime != null">
                and create_time = #{createTime}
            </if>
            <if test="radix != null  and radix != ''">
                and radix=#{radix}
            </if>
        and del_flag = 0
        <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>
        <if test="url != null  and url != ''">
            and url=#{url}
        </if>
        <if test="wardCode != null  and wardCode != ''">
            and ward_code=#{wardCode}
        </if>
        <if test="wardName != null  and wardName != ''">
            and ward_name=#{wardName}
        </if>
        <if test="deptCode != null  and deptCode != ''">
            and dept_code=#{deptCode}
        </if>
        <if test="deptName != null  and deptName != ''">
            and dept_name=#{deptName}
        </if>
    </select>
    <select id="selectServiceOutPathById" parameterType="Long"
@@ -82,7 +111,19 @@
            </if>
            <if test="radix != null">radix,
            </if>
            <if test="orgid != null">orgid,
            </if>
            <if test="createTime != null">create_time,
            </if>
            <if test="url != null">url,
            </if>
            <if test="wardCode != null">ward_code,
            </if>
            <if test="wardName != null">ward_name,
            </if>
            <if test="deptCode != null">dept_code,
            </if>
            <if test="deptName != null">dept_name,
            </if>
        </trim>
@@ -99,7 +140,19 @@
            </if>
            <if test="radix != null">#{radix},
            </if>
            <if test="orgid != null">#{orgid},
            </if>
            <if test="createTime != null">#{createTime},
            </if>
            <if test="url != null">#{url},
            </if>
            <if test="wardCode != null">#{wardCode},
            </if>
            <if test="wardName != null">#{wardName},
            </if>
            <if test="deptCode != null">#{deptCode},
            </if>
            <if test="deptName != null">#{deptName},
            </if>
        </trim>
    </insert>
@@ -119,6 +172,9 @@
            <if test="param5 != null">param5 =
                #{param5},
            </if>
            <if test="param6 != null">param6 =
                #{param6},
            </if>
            <if test="radix != null">radix =
                #{radix},
            </if>
@@ -127,6 +183,24 @@
            </if>
            <if test="orgid != null">orgid =
                #{orgid},
            </if>
            <if test="updateTime != null">update_time =
                #{updateTime},
            </if>
            <if test="url != null">url =
                #{url},
            </if>
            <if test="wardCode != null">ward_code =
                #{wardCode},
            </if>
            <if test="wardName != null">ward_name =
                #{wardName},
            </if>
            <if test="deptCode != null">dept_code =
                #{deptCode},
            </if>
            <if test="deptName != null">dept_name =
                #{deptName},
            </if>
        </trim>
        where id = #{id}
@@ -150,9 +224,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>