陈昶聿
6 小时以前 e1b933c0c344494afe86bae9162dca9bdc34fd56
smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -17,6 +17,11 @@
        <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">
@@ -31,6 +36,11 @@
               radix,
               guid,
               orgid,
               url,
               ward_code,
               ward_name,
               dept_code,
               dept_name,
               del_flag
        from service_out_path
    </sql>
@@ -40,7 +50,6 @@
        <include refid="selectServiceOutPathVo"/>
        where 1=1
        and del_flag = 0
        and orgid is null
        <if test="param1 != null ">
            and param1 = #{param1}
        </if>
@@ -62,7 +71,22 @@
        <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"
@@ -91,6 +115,16 @@
            </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>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -109,6 +143,16 @@
            <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>
@@ -140,6 +184,24 @@
            <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}
    </update>
@@ -167,7 +229,7 @@
        FROM INFORMATION_SCHEMA.TABLES
        WHERE TABLE_NAME = 'service_out_path'
          AND table_schema = DATABASE()
          and onorgid
--           and onorgid
    </select>
</mapper>