You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

328 lines
22 KiB

<?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.ruoyi.programManagement.mapper.SzsEnterpriseInformationMapper">
<resultMap type="SzsEnterpriseInformation" id="SzsEnterpriseInformationResult">
<result property="jhptUpdateTime" column="jhpt_update_time" />
<result property="legalPersonCellphone" column="LEGAL_PERSON_CELLPHONE" />
<result property="indusTypeMiddle" column="INDUS_TYPE_MIDDLE" />
<result property="legalPersonType" column="LEGAL_PERSON_TYPE" />
<result property="indusTypeLagre" column="INDUS_TYPE_LAGRE" />
<result property="supervisionLarge" column="SUPERVISION_LARGE" />
<result property="CITY" column="CITY" />
<result property="businessAddress" column="BUSINESS_ADDRESS" />
<result property="COUNTY" column="COUNTY" />
<!-- <result property="REMARK" column="REMARK" />-->
<result property="reportHistoryId" column="REPORT_HISTORY_ID" />
<result property="registerTime" column="REGISTER_TIME" />
<result property="enterpriseAddress" column="ENTERPRISE_ADDRESS" />
<result property="createBy" column="CREATE_BY" />
<result property="updateTime" column="UPDATE_TIME" />
<result property="PROVINCE" column="PROVINCE" />
<result property="SQRLXFS" column="SQRLXFS" />
<result property="SQR" column="SQR" />
<result property="termEnd" column="TERM_END" />
<result property="ID" column="ID" />
<result property="VILLAGE" column="VILLAGE" />
<result property="updateBy" column="UPDATE_BY" />
<result property="legalPersonPost" column="LEGAL_PERSON_POST" />
<result property="legalPerson" column="LEGAL_PERSON" />
<result property="zjEconKind" column="ZJ_ECON_KIND" />
<result property="corpStatus" column="CORP_STATUS" />
<result property="createTime" column="CREATE_TIME" />
<result property="uuitNo" column="UUIT_NO" />
<result property="supervisionSmall" column="SUPERVISION_SMALL" />
<result property="rigisterAddress" column="RIGISTER_ADDRESS" />
<result property="riskReport" column="RISK_REPORT" />
<result property="indusTypeSmall" column="INDUS_TYPE_SMALL" />
<result property="isDelete" column="IS_DELETE" />
<result property="businessScope" column="BUSINESS_SCOPE" />
<result property="startTime" column="START_TIME" />
<result property="legalPersonTel" column="LEGAL_PERSON_TEL" />
<result property="indusTypeClass" column="INDUS_TYPE_CLASS" />
<result property="termStart" column="TERM_START" />
<result property="enterpristScale" column="ENTERPRIST_SCALE" />
<result property="registrationOrg" column="REGISTRATION_ORG" />
<result property="districtCode" column="DISTRICT_CODE" />
<result property="subdistrict" column="SUBDISTRICT" />
<result property="otherName" column="OTHER_NAME" />
<result property="rigisterFund" column="RIGISTER_FUND" />
<result property="enterpriseName" column="ENTERPRISE_NAME" />
<result property="orgCode" column="ORG_CODE" />
<result property="aboveDesignated" column="ABOVE_DESIGNATED" />
<result property="FRZJH" column="FRZJH" />
<result property="CREATER" column="CREATER" />
<result property="UPDATER" column="UPDATER" />
<!-- <result property="CREATETIME" column="CREATETIME" />-->
<!-- <result property="UPDATETIME" column="UPDATETIME" />-->
<result property="lastPageNumber" column="LAST_PAGE_NUMBER" />
<result property="floorSpace" column="FLOOR_SPACE" />
<result property="aboveDesignatedTwo" column="ABOVE_DESIGNATED_TWO" />
<result property="safetyProductionInvestment" column="SAFETY_PRODUCTION_INVESTMENT" />
<result property="lastYearOperatingIncome" column="LAST_YEAR_OPERATING_INCOME" />
<result property="lastYeatOnStream" column="LAST_YEAT_ON_STREAM" />
<result property="majorProduct" column="MAJOR_PRODUCT" />
<result property="htmlText" column="HTML_TEXT" />
<result property="fixedAssets" column="FIXED_ASSETS" />
</resultMap>
<sql id="selectSzsEnterpriseInformationVo">
select jhpt_update_time, LEGAL_PERSON_CELLPHONE, INDUS_TYPE_MIDDLE, LEGAL_PERSON_TYPE, INDUS_TYPE_LAGRE, SUPERVISION_LARGE, CITY, BUSINESS_ADDRESS, COUNTY, REMARK, REPORT_HISTORY_ID, REGISTER_TIME, ENTERPRISE_ADDRESS, CREATE_BY, UPDATE_TIME, PROVINCE, SQRLXFS, SQR, TERM_END, ID, VILLAGE, UPDATE_BY, LEGAL_PERSON_POST, LEGAL_PERSON, ZJ_ECON_KIND, CORP_STATUS, CREATE_TIME, UUIT_NO, SUPERVISION_SMALL, RIGISTER_ADDRESS, RISK_REPORT, INDUS_TYPE_SMALL, IS_DELETE, BUSINESS_SCOPE, START_TIME, LEGAL_PERSON_TEL, INDUS_TYPE_CLASS, TERM_START, ENTERPRIST_SCALE, REGISTRATION_ORG, DISTRICT_CODE, SUBDISTRICT, OTHER_NAME, RIGISTER_FUND, ENTERPRISE_NAME, ORG_CODE, ABOVE_DESIGNATED, FRZJH, CREATER, UPDATER, CREATETIME, UPDATETIME, LAST_PAGE_NUMBER, FLOOR_SPACE, ABOVE_DESIGNATED_TWO, SAFETY_PRODUCTION_INVESTMENT, LAST_YEAR_OPERATING_INCOME, LAST_YEAT_ON_STREAM, MAJOR_PRODUCT, HTML_TEXT, FIXED_ASSETS from szs_enterprise_information
</sql>
<select id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation" resultMap="SzsEnterpriseInformationResult">
select s.* from(
SELECT
a.*,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
FROM
szs_enterprise_information a
LEFT JOIN
b_key_enterprise b ON a.UUIT_NO = b.ent_code )s
<where>
<if test="supervisionLarge != null and supervisionLarge != ''"> and s.SUPERVISION_LARGE like concat('%',#{supervisionLarge}, '%')</if>
<if test="uuitNo != null and uuitNo != ''"> and s.UUIT_NO = #{uuitNo}</if>
<if test="subdistrict != null and subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{subdistrict}, '%') </if>
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo}</if>
<if test="isPoint != null and isPoint != ''">and s.is_point=#{isPoint}</if>
<if test="enterpriseName != null and enterpriseName != ''">and s.enterprise_name like concat('%',#{enterpriseName}, '%')</if>
</where>
</select>
<select id="selectSzsEnterpriseInformationByID" parameterType="String" resultMap="SzsEnterpriseInformationResult">
<include refid="selectSzsEnterpriseInformationVo"/>
where ID = #{ID}
</select>
<select id="selectList" resultType="com.ruoyi.programManagement.entity.SzsEnterpriseInformation">
select s.* from(
SELECT
a.*,
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
FROM
(select * from szs_enterprise_information limit #{req.newpageNum},#{req.newpageSize}) a
LEFT JOIN
b_key_enterprise b ON a.UUIT_NO = b.ent_code )s
<where>
<if test="req.supervisionLarge != null and req.supervisionLarge != ''"> and s.SUPERVISION_LARGE like concat('%',#{req.supervisionLarge}, '%')</if>
<if test="req.uuitNo != null and req.uuitNo != ''"> and s.UUIT_NO = #{uuitNo}</if>
<if test="req.subdistrict != null and req.subdistrict != ''"> and s.SUBDISTRICT like concat('%',#{req.subdistrict}, '%') </if>
<if test="req.aboveDesignatedTwo != null and req.aboveDesignatedTwo != ''"> and s.ABOVE_DESIGNATED_TWO = #{req.aboveDesignatedTwo}</if>
<if test="req.isPoint != null and req.isPoint != ''">and s.is_point=#{isPoint}</if>
<if test="req.enterpriseName != null and req.enterpriseName != ''">and s.enterprise_name like concat('%',#{req.enterpriseName}, '%')</if>
</where>
</select>
<insert id="insertSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
insert into szs_enterprise_information
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time,</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE,</if>
<if test="indusTypeMiddle != null">INDUS_TYPE_MIDDLE,</if>
<if test="legalPersonType != null">LEGAL_PERSON_TYPE,</if>
<if test="indusTypeLagre != null">INDUS_TYPE_LAGRE,</if>
<if test="supervisionLarge != null">SUPERVISION_LARGE,</if>
<if test="CITY != null">CITY,</if>
<if test="businessAddress != null">BUSINESS_ADDRESS,</if>
<if test="COUNTY != null">COUNTY,</if>
<if test="REMARK != null">REMARK,</if>
<if test="reportHistoryId != null">REPORT_HISTORY_ID,</if>
<if test="registerTime != null">REGISTER_TIME,</if>
<if test="enterpriseAddress != null">ENTERPRISE_ADDRESS,</if>
<if test="createBy != null">CREATE_BY,</if>
<if test="updateTime != null">UPDATE_TIME,</if>
<if test="PROVINCE != null">PROVINCE,</if>
<if test="SQRLXFS != null">SQRLXFS,</if>
<if test="SQR != null">SQR,</if>
<if test="termEnd != null">TERM_END,</if>
<if test="ID != null">ID,</if>
<if test="VILLAGE != null">VILLAGE,</if>
<if test="updateBy != null">UPDATE_BY,</if>
<if test="legalPersonPost != null">LEGAL_PERSON_POST,</if>
<if test="legalPerson != null">LEGAL_PERSON,</if>
<if test="zjEconKind != null">ZJ_ECON_KIND,</if>
<if test="corpStatus != null">CORP_STATUS,</if>
<if test="createTime != null">CREATE_TIME,</if>
<if test="uuitNo != null">UUIT_NO,</if>
<if test="supervisionSmall != null">SUPERVISION_SMALL,</if>
<if test="rigisterAddress != null">RIGISTER_ADDRESS,</if>
<if test="riskReport != null">RISK_REPORT,</if>
<if test="indusTypeSmall != null">INDUS_TYPE_SMALL,</if>
<if test="isDelete != null">IS_DELETE,</if>
<if test="businessScope != null">BUSINESS_SCOPE,</if>
<if test="startTime != null">START_TIME,</if>
<if test="legalPersonTel != null">LEGAL_PERSON_TEL,</if>
<if test="indusTypeClass != null">INDUS_TYPE_CLASS,</if>
<if test="termStart != null">TERM_START,</if>
<if test="enterpristScale != null">ENTERPRIST_SCALE,</if>
<if test="registrationOrg != null">REGISTRATION_ORG,</if>
<if test="districtCode != null">DISTRICT_CODE,</if>
<if test="SUBDISTRICT != null">SUBDISTRICT,</if>
<if test="otherName != null">OTHER_NAME,</if>
<if test="rigisterFund != null">RIGISTER_FUND,</if>
<if test="enterpriseName != null">ENTERPRISE_NAME,</if>
<if test="orgCode != null">ORG_CODE,</if>
<if test="aboveDesignated != null">ABOVE_DESIGNATED,</if>
<if test="FRZJH != null">FRZJH,</if>
<if test="CREATER != null">CREATER,</if>
<if test="UPDATER != null">UPDATER,</if>
<if test="CREATETIME != null">CREATETIME,</if>
<if test="UPDATETIME != null">UPDATETIME,</if>
<if test="lastPageNumber != null">LAST_PAGE_NUMBER,</if>
<if test="floorSpace != null">FLOOR_SPACE,</if>
<if test="aboveDesignatedTwo != null">ABOVE_DESIGNATED_TWO,</if>
<if test="safetyProductionInvestment != null">SAFETY_PRODUCTION_INVESTMENT,</if>
<if test="lastYearOperatingIncome != null">LAST_YEAR_OPERATING_INCOME,</if>
<if test="lastYeatOnStream != null">LAST_YEAT_ON_STREAM,</if>
<if test="majorProduct != null">MAJOR_PRODUCT,</if>
<if test="htmlText != null">HTML_TEXT,</if>
<if test="fixedAssets != null">FIXED_ASSETS,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="jhptUpdateTime != null">#{jhptUpdateTime},</if>
<if test="legalPersonCellphone != null">#{legalPersonCellphone},</if>
<if test="indusTypeMiddle != null">#{indusTypeMiddle},</if>
<if test="legalPersonType != null">#{legalPersonType},</if>
<if test="indusTypeLagre != null">#{indusTypeLagre},</if>
<if test="supervisionLarge != null">#{supervisionLarge},</if>
<if test="CITY != null">#{CITY},</if>
<if test="businessAddress != null">#{businessAddress},</if>
<if test="COUNTY != null">#{COUNTY},</if>
<if test="REMARK != null">#{REMARK},</if>
<if test="reportHistoryId != null">#{reportHistoryId},</if>
<if test="registerTime != null">#{registerTime},</if>
<if test="enterpriseAddress != null">#{enterpriseAddress},</if>
<if test="createBy != null">#{createBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="PROVINCE != null">#{PROVINCE},</if>
<if test="SQRLXFS != null">#{SQRLXFS},</if>
<if test="SQR != null">#{SQR},</if>
<if test="termEnd != null">#{termEnd},</if>
<if test="ID != null">#{ID},</if>
<if test="VILLAGE != null">#{VILLAGE},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="legalPersonPost != null">#{legalPersonPost},</if>
<if test="legalPerson != null">#{legalPerson},</if>
<if test="zjEconKind != null">#{zjEconKind},</if>
<if test="corpStatus != null">#{corpStatus},</if>
<if test="createTime != null">#{createTime},</if>
<if test="uuitNo != null">#{uuitNo},</if>
<if test="supervisionSmall != null">#{supervisionSmall},</if>
<if test="rigisterAddress != null">#{rigisterAddress},</if>
<if test="riskReport != null">#{riskReport},</if>
<if test="indusTypeSmall != null">#{indusTypeSmall},</if>
<if test="isDelete != null">#{isDelete},</if>
<if test="businessScope != null">#{businessScope},</if>
<if test="startTime != null">#{startTime},</if>
<if test="legalPersonTel != null">#{legalPersonTel},</if>
<if test="indusTypeClass != null">#{indusTypeClass},</if>
<if test="termStart != null">#{termStart},</if>
<if test="enterpristScale != null">#{enterpristScale},</if>
<if test="registrationOrg != null">#{registrationOrg},</if>
<if test="districtCode != null">#{districtCode},</if>
<if test="SUBDISTRICT != null">#{SUBDISTRICT},</if>
<if test="otherName != null">#{otherName},</if>
<if test="rigisterFund != null">#{rigisterFund},</if>
<if test="enterpriseName != null">#{enterpriseName},</if>
<if test="orgCode != null">#{orgCode},</if>
<if test="aboveDesignated != null">#{aboveDesignated},</if>
<if test="FRZJH != null">#{FRZJH},</if>
<if test="CREATER != null">#{CREATER},</if>
<if test="UPDATER != null">#{UPDATER},</if>
<if test="CREATETIME != null">#{CREATETIME},</if>
<if test="UPDATETIME != null">#{UPDATETIME},</if>
<if test="lastPageNumber != null">#{lastPageNumber},</if>
<if test="floorSpace != null">#{floorSpace},</if>
<if test="aboveDesignatedTwo != null">#{aboveDesignatedTwo},</if>
<if test="safetyProductionInvestment != null">#{safetyProductionInvestment},</if>
<if test="lastYearOperatingIncome != null">#{lastYearOperatingIncome},</if>
<if test="lastYeatOnStream != null">#{lastYeatOnStream},</if>
<if test="majorProduct != null">#{majorProduct},</if>
<if test="htmlText != null">#{htmlText},</if>
<if test="fixedAssets != null">#{fixedAssets},</if>
</trim>
</insert>
<update id="updateSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
update szs_enterprise_information
<trim prefix="SET" suffixOverrides=",">
<if test="jhptUpdateTime != null">jhpt_update_time = #{jhptUpdateTime},</if>
<if test="legalPersonCellphone != null">LEGAL_PERSON_CELLPHONE = #{legalPersonCellphone},</if>
<if test="indusTypeMiddle != null">INDUS_TYPE_MIDDLE = #{indusTypeMiddle},</if>
<if test="legalPersonType != null">LEGAL_PERSON_TYPE = #{legalPersonType},</if>
<if test="indusTypeLagre != null">INDUS_TYPE_LAGRE = #{indusTypeLagre},</if>
<if test="supervisionLarge != null">SUPERVISION_LARGE = #{supervisionLarge},</if>
<if test="CITY != null">CITY = #{CITY},</if>
<if test="businessAddress != null">BUSINESS_ADDRESS = #{businessAddress},</if>
<if test="COUNTY != null">COUNTY = #{COUNTY},</if>
<if test="REMARK != null">REMARK = #{REMARK},</if>
<if test="reportHistoryId != null">REPORT_HISTORY_ID = #{reportHistoryId},</if>
<if test="registerTime != null">REGISTER_TIME = #{registerTime},</if>
<if test="enterpriseAddress != null">ENTERPRISE_ADDRESS = #{enterpriseAddress},</if>
<if test="createBy != null">CREATE_BY = #{createBy},</if>
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
<if test="PROVINCE != null">PROVINCE = #{PROVINCE},</if>
<if test="SQRLXFS != null">SQRLXFS = #{SQRLXFS},</if>
<if test="SQR != null">SQR = #{SQR},</if>
<if test="termEnd != null">TERM_END = #{termEnd},</if>
<if test="VILLAGE != null">VILLAGE = #{VILLAGE},</if>
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
<if test="legalPersonPost != null">LEGAL_PERSON_POST = #{legalPersonPost},</if>
<if test="legalPerson != null">LEGAL_PERSON = #{legalPerson},</if>
<if test="zjEconKind != null">ZJ_ECON_KIND = #{zjEconKind},</if>
<if test="corpStatus != null">CORP_STATUS = #{corpStatus},</if>
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
<if test="uuitNo != null">UUIT_NO = #{uuitNo},</if>
<if test="supervisionSmall != null">SUPERVISION_SMALL = #{supervisionSmall},</if>
<if test="rigisterAddress != null">RIGISTER_ADDRESS = #{rigisterAddress},</if>
<if test="riskReport != null">RISK_REPORT = #{riskReport},</if>
<if test="indusTypeSmall != null">INDUS_TYPE_SMALL = #{indusTypeSmall},</if>
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
<if test="businessScope != null">BUSINESS_SCOPE = #{businessScope},</if>
<if test="startTime != null">START_TIME = #{startTime},</if>
<if test="legalPersonTel != null">LEGAL_PERSON_TEL = #{legalPersonTel},</if>
<if test="indusTypeClass != null">INDUS_TYPE_CLASS = #{indusTypeClass},</if>
<if test="termStart != null">TERM_START = #{termStart},</if>
<if test="enterpristScale != null">ENTERPRIST_SCALE = #{enterpristScale},</if>
<if test="registrationOrg != null">REGISTRATION_ORG = #{registrationOrg},</if>
<if test="districtCode != null">DISTRICT_CODE = #{districtCode},</if>
<if test="SUBDISTRICT != null">SUBDISTRICT = #{SUBDISTRICT},</if>
<if test="otherName != null">OTHER_NAME = #{otherName},</if>
<if test="rigisterFund != null">RIGISTER_FUND = #{rigisterFund},</if>
<if test="enterpriseName != null">ENTERPRISE_NAME = #{enterpriseName},</if>
<if test="orgCode != null">ORG_CODE = #{orgCode},</if>
<if test="aboveDesignated != null">ABOVE_DESIGNATED = #{aboveDesignated},</if>
<if test="FRZJH != null">FRZJH = #{FRZJH},</if>
<if test="CREATER != null">CREATER = #{CREATER},</if>
<if test="UPDATER != null">UPDATER = #{UPDATER},</if>
<if test="CREATETIME != null">CREATETIME = #{CREATETIME},</if>
<if test="UPDATETIME != null">UPDATETIME = #{UPDATETIME},</if>
<if test="lastPageNumber != null">LAST_PAGE_NUMBER = #{lastPageNumber},</if>
<if test="floorSpace != null">FLOOR_SPACE = #{floorSpace},</if>
<if test="aboveDesignatedTwo != null">ABOVE_DESIGNATED_TWO = #{aboveDesignatedTwo},</if>
<if test="safetyProductionInvestment != null">SAFETY_PRODUCTION_INVESTMENT = #{safetyProductionInvestment},</if>
<if test="lastYearOperatingIncome != null">LAST_YEAR_OPERATING_INCOME = #{lastYearOperatingIncome},</if>
<if test="lastYeatOnStream != null">LAST_YEAT_ON_STREAM = #{lastYeatOnStream},</if>
<if test="majorProduct != null">MAJOR_PRODUCT = #{majorProduct},</if>
<if test="htmlText != null">HTML_TEXT = #{htmlText},</if>
<if test="fixedAssets != null">FIXED_ASSETS = #{fixedAssets},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deleteSzsEnterpriseInformationByID" parameterType="String">
delete from szs_enterprise_information where ID = #{ID}
</delete>
<delete id="deleteSzsEnterpriseInformationByIDs" parameterType="String">
delete from szs_enterprise_information where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>