浏览代码

删除不需要的 xml 文件

bzd_lxf 1 月之前
父节点
当前提交
13cc545bfd

+ 0 - 128
pm-system/src/main/resources/mapper/enterpriseInfo/EnterpriseBranchMapper.xml

@@ -1,128 +0,0 @@
-<?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.pm.enterpriseInfo.mapper.EnterpriseBranchMapper">
-
-    <resultMap type="pd" id="EnterpriseBranchResult">
-        <result property="branchId"            column="branch_id"            />
-        <result property="enterpriseId"        column="enterprise_id"        />
-        <result property="branchName"          column="branch_name"          />
-        <result property="branchCode"          column="branch_code"          />
-        <result property="branchType"          column="branch_type"          />
-        <result property="address"             column="address"              />
-        <result property="contactPerson"       column="contact_person"       />
-        <result property="contactPhone"        column="contact_phone"        />
-        <result property="longitude"           column="longitude"            />
-        <result property="latitude"            column="latitude"             />
-        <result property="status"              column="status"               />
-        <result property="createBy"            column="create_by"            />
-        <result property="createTime"          column="create_time"          />
-        <result property="updateBy"            column="update_by"            />
-        <result property="updateTime"          column="update_time"          />
-    </resultMap>
-
-    <sql id="selectEnterpriseBranchVo">
-        select branch_id, enterprise_id, branch_name, branch_code, branch_type, address,
-               contact_person, contact_phone, longitude, latitude, status, create_by,
-               create_time, update_by, update_time
-        from sys_enterprise_branch
-    </sql>
-
-    <select id="selectEnterpriseBranchList" parameterType="pd" resultMap="EnterpriseBranchResult">
-        <include refid="selectEnterpriseBranchVo"/>
-        <where>
-            <if test="enterpriseId != null ">
-                and enterprise_id = #{enterpriseId}
-            </if>
-            <if test="branchName != null  and branchName != ''">
-                and branch_name like concat('%', #{branchName}, '%')
-            </if>
-            <if test="branchCode != null  and branchCode != ''">
-                and branch_code = #{branchCode}
-            </if>
-            <if test="branchType != null  and branchType != ''">
-                and branch_type = #{branchType}
-            </if>
-            <if test="status != null  and status != ''">
-                and status = #{status}
-            </if>
-        </where>
-        order by create_time desc
-    </select>
-
-    <select id="selectEnterpriseBranchByBranchId" parameterType="Long" resultMap="EnterpriseBranchResult">
-        <include refid="selectEnterpriseBranchVo"/>
-        where branch_id = #{branchId}
-    </select>
-
-    <select id="selectBranchesByEnterpriseId" parameterType="Long" resultMap="EnterpriseBranchResult">
-        <include refid="selectEnterpriseBranchVo"/>
-        where enterprise_id = #{enterpriseId}
-        order by create_time desc
-    </select>
-
-    <insert id="insertEnterpriseBranch" parameterType="pd" useGeneratedKeys="true" keyProperty="branchId">
-        insert into sys_enterprise_branch
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="enterpriseId != null">enterprise_id,</if>
-            <if test="branchName != null and branchName != ''">branch_name,</if>
-            <if test="branchCode != null and branchCode != ''">branch_code,</if>
-            <if test="branchType != null">branch_type,</if>
-            <if test="address != null">address,</if>
-            <if test="contactPerson != null">contact_person,</if>
-            <if test="contactPhone != null">contact_phone,</if>
-            <if test="longitude != null">longitude,</if>
-            <if test="latitude != null">latitude,</if>
-            <if test="status != null">status,</if>
-            <if test="createBy != null">create_by,</if>
-            create_time,
-            <if test="updateBy != null">update_by,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="enterpriseId != null">#{enterpriseId},</if>
-            <if test="branchName != null and branchName != ''">#{branchName},</if>
-            <if test="branchCode != null and branchCode != ''">#{branchCode},</if>
-            <if test="branchType != null">#{branchType},</if>
-            <if test="address != null">#{address},</if>
-            <if test="contactPerson != null">#{contactPerson},</if>
-            <if test="contactPhone != null">#{contactPhone},</if>
-            <if test="longitude != null">#{longitude},</if>
-            <if test="latitude != null">#{latitude},</if>
-            <if test="status != null">#{status},</if>
-            <if test="createBy != null">#{createBy},</if>
-            sysdate(),
-            <if test="updateBy != null">#{updateBy},</if>
-        </trim>
-    </insert>
-
-    <update id="updateEnterpriseBranch" parameterType="pd">
-        update sys_enterprise_branch
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
-            <if test="branchName != null and branchName != ''">branch_name = #{branchName},</if>
-            <if test="branchCode != null and branchCode != ''">branch_code = #{branchCode},</if>
-            <if test="branchType != null">branch_type = #{branchType},</if>
-            <if test="address != null">address = #{address},</if>
-            <if test="contactPerson != null">contact_person = #{contactPerson},</if>
-            <if test="contactPhone != null">contact_phone = #{contactPhone},</if>
-            <if test="longitude != null">longitude = #{longitude},</if>
-            <if test="latitude != null">latitude = #{latitude},</if>
-            <if test="status != null">status = #{status},</if>
-            <if test="updateBy != null">update_by = #{updateBy},</if>
-            update_time = sysdate(),
-        </trim>
-        where branch_id = #{branchId}
-    </update>
-
-    <delete id="deleteEnterpriseBranchByBranchId" parameterType="Long">
-        delete from sys_enterprise_branch where branch_id = #{branchId}
-    </delete>
-
-    <delete id="deleteEnterpriseBranchByBranchIds" parameterType="String">
-        delete from sys_enterprise_branch where branch_id in
-        <foreach item="branchId" collection="array" open="(" separator="," close=")">
-            #{branchId}
-        </foreach>
-    </delete>
-</mapper>

+ 0 - 124
pm-system/src/main/resources/mapper/enterpriseInfo/EnterpriseCertificateMapper.xml

@@ -1,124 +0,0 @@
-<?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.pm.enterpriseInfo.mapper.EnterpriseCertificateMapper">
-
-    <resultMap type="pd" id="EnterpriseCertificateResult">
-        <result property="certificateId"       column="certificate_id"       />
-        <result property="enterpriseId"        column="enterprise_id"        />
-        <result property="certificateName"     column="certificate_name"     />
-        <result property="certificateType"     column="certificate_type"     />
-        <result property="certificateNumber"   column="certificate_number"   />
-        <result property="issueDate"           column="issue_date"           />
-        <result property="expireDate"          column="expire_date"          />
-        <result property="issueAuthority"      column="issue_authority"      />
-        <result property="certificateFile"     column="certificate_file"     />
-        <result property="status"              column="status"               />
-        <result property="createBy"            column="create_by"            />
-        <result property="createTime"          column="create_time"          />
-        <result property="updateBy"            column="update_by"            />
-        <result property="updateTime"          column="update_time"          />
-    </resultMap>
-
-    <sql id="selectEnterpriseCertificateVo">
-        select certificate_id, enterprise_id, certificate_name, certificate_type, certificate_number,
-               issue_date, expire_date, issue_authority, certificate_file, status, create_by, create_time,
-               update_by, update_time
-        from sys_enterprise_certificate
-    </sql>
-
-    <select id="selectEnterpriseCertificateList" parameterType="pd" resultMap="EnterpriseCertificateResult">
-        <include refid="selectEnterpriseCertificateVo"/>
-        <where>
-            <if test="enterpriseId != null ">
-                and enterprise_id = #{enterpriseId}
-            </if>
-            <if test="certificateName != null  and certificateName != ''">
-                and certificate_name like concat('%', #{certificateName}, '%')
-            </if>
-            <if test="certificateType != null  and certificateType != ''">
-                and certificate_type = #{certificateType}
-            </if>
-            <if test="certificateNumber != null  and certificateNumber != ''">
-                and certificate_number = #{certificateNumber}
-            </if>
-            <if test="status != null  and status != ''">
-                and status = #{status}
-            </if>
-        </where>
-        order by create_time desc
-    </select>
-
-    <select id="selectEnterpriseCertificateByCertificateId" parameterType="Long" resultMap="EnterpriseCertificateResult">
-        <include refid="selectEnterpriseCertificateVo"/>
-        where certificate_id = #{certificateId}
-    </select>
-
-    <select id="selectCertificatesByEnterpriseId" parameterType="Long" resultMap="EnterpriseCertificateResult">
-        <include refid="selectEnterpriseCertificateVo"/>
-        where enterprise_id = #{enterpriseId}
-        order by create_time desc
-    </select>
-
-    <insert id="insertEnterpriseCertificate" parameterType="pd" useGeneratedKeys="true" keyProperty="certificateId">
-        insert into sys_enterprise_certificate
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="enterpriseId != null">enterprise_id,</if>
-            <if test="certificateName != null and certificateName != ''">certificate_name,</if>
-            <if test="certificateType != null and certificateType != ''">certificate_type,</if>
-            <if test="certificateNumber != null">certificate_number,</if>
-            <if test="issueDate != null">issue_date,</if>
-            <if test="expireDate != null">expire_date,</if>
-            <if test="issueAuthority != null">issue_authority,</if>
-            <if test="certificateFile != null">certificate_file,</if>
-            <if test="status != null">status,</if>
-            <if test="createBy != null">create_by,</if>
-            create_time,
-            <if test="updateBy != null">update_by,</if>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="enterpriseId != null">#{enterpriseId},</if>
-            <if test="certificateName != null and certificateName != ''">#{certificateName},</if>
-            <if test="certificateType != null and certificateType != ''">#{certificateType},</if>
-            <if test="certificateNumber != null">#{certificateNumber},</if>
-            <if test="issueDate != null">#{issueDate},</if>
-            <if test="expireDate != null">#{expireDate},</if>
-            <if test="issueAuthority != null">#{issueAuthority},</if>
-            <if test="certificateFile != null">#{certificateFile},</if>
-            <if test="status != null">#{status},</if>
-            <if test="createBy != null">#{createBy},</if>
-            sysdate(),
-            <if test="updateBy != null">#{updateBy},</if>
-        </trim>
-    </insert>
-
-    <update id="updateEnterpriseCertificate" parameterType="pd">
-        update sys_enterprise_certificate
-        <trim prefix="SET" suffixOverrides=",">
-            <if test="enterpriseId != null">enterprise_id = #{enterpriseId},</if>
-            <if test="certificateName != null and certificateName != ''">certificate_name = #{certificateName},</if>
-            <if test="certificateType != null and certificateType != ''">certificate_type = #{certificateType},</if>
-            <if test="certificateNumber != null">certificate_number = #{certificateNumber},</if>
-            <if test="issueDate != null">issue_date = #{issueDate},</if>
-            <if test="expireDate != null">expire_date = #{expireDate},</if>
-            <if test="issueAuthority != null">issue_authority = #{issueAuthority},</if>
-            <if test="certificateFile != null">certificate_file = #{certificateFile},</if>
-            <if test="status != null">status = #{status},</if>
-            <if test="updateBy != null">update_by = #{updateBy},</if>
-            update_time = sysdate(),
-        </trim>
-        where certificate_id = #{certificateId}
-    </update>
-
-    <delete id="deleteEnterpriseCertificateByCertificateId" parameterType="Long">
-        delete from sys_enterprise_certificate where certificate_id = #{certificateId}
-    </delete>
-
-    <delete id="deleteEnterpriseCertificateByCertificateIds" parameterType="String">
-        delete from sys_enterprise_certificate where certificate_id in
-        <foreach item="certificateId" collection="array" open="(" separator="," close=")">
-            #{certificateId}
-        </foreach>
-    </delete>
-</mapper>