|
|
|
@ -1,97 +1,162 @@
|
|
|
|
|
<?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">
|
|
|
|
|
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" />
|
|
|
|
|
<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
|
|
|
|
|
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 id="selectSzsEnterpriseInformationList" parameterType="SzsEnterpriseInformation"
|
|
|
|
|
resultMap="SzsEnterpriseInformationResult">
|
|
|
|
|
SELECT
|
|
|
|
|
a.*,
|
|
|
|
|
CASE WHEN b.ent_code IS NOT NULL THEN 1 ELSE 2 END AS is_point
|
|
|
|
|
a.*
|
|
|
|
|
FROM
|
|
|
|
|
szs_enterprise_information a
|
|
|
|
|
LEFT JOIN
|
|
|
|
|
b_key_enterprise b ON a.UUIT_NO = b.ent_code )s
|
|
|
|
|
szs_enterprise_information a
|
|
|
|
|
<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>
|
|
|
|
|
<if test="supervisionLarge != null and supervisionLarge != ''">and a.SUPERVISION_LARGE like
|
|
|
|
|
concat('%',#{supervisionLarge}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="uuitNo != null and uuitNo != ''">and a.UUIT_NO = #{uuitNo}</if>
|
|
|
|
|
<if test="subdistrict != null and subdistrict != ''">and a.SUBDISTRICT like concat('%',#{subdistrict},
|
|
|
|
|
'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="aboveDesignatedTwo != null and aboveDesignatedTwo != ''">and a.ABOVE_DESIGNATED_TWO =
|
|
|
|
|
#{aboveDesignatedTwo}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="enterpriseName != null and enterpriseName != ''">and a.enterprise_name like
|
|
|
|
|
concat('%',#{enterpriseName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSzsEnterpriseInformationByID" parameterType="String" resultMap="SzsEnterpriseInformationResult">
|
|
|
|
|
<include refid="selectSzsEnterpriseInformationVo"/>
|
|
|
|
|
where ID = #{ID}
|
|
|
|
@ -162,7 +227,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="majorProduct != null">MAJOR_PRODUCT,</if>
|
|
|
|
|
<if test="htmlText != null">HTML_TEXT,</if>
|
|
|
|
|
<if test="fixedAssets != null">FIXED_ASSETS,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="jhptUpdateTime != null">#{jhptUpdateTime},</if>
|
|
|
|
|
<if test="legalPersonCellphone != null">#{legalPersonCellphone},</if>
|
|
|
|
@ -225,7 +290,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="majorProduct != null">#{majorProduct},</if>
|
|
|
|
|
<if test="htmlText != null">#{htmlText},</if>
|
|
|
|
|
<if test="fixedAssets != null">#{fixedAssets},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<update id="updateSzsEnterpriseInformation" parameterType="SzsEnterpriseInformation">
|
|
|
|
@ -287,7 +352,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<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="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>
|
|
|
|
@ -298,11 +365,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSzsEnterpriseInformationByID" parameterType="String">
|
|
|
|
|
delete from szs_enterprise_information where ID = #{ID}
|
|
|
|
|
delete
|
|
|
|
|
from szs_enterprise_information
|
|
|
|
|
where ID = #{ID}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteSzsEnterpriseInformationByIDs" parameterType="String">
|
|
|
|
|
delete from szs_enterprise_information where ID in
|
|
|
|
|
delete from szs_enterprise_information where ID in
|
|
|
|
|
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{ID}
|
|
|
|
|
</foreach>
|
|
|
|
|