|
@@ -0,0 +1,770 @@
|
|
|
+<?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.jeeplus.modules.filing.earlyEngineering.mapper.EarlyEngineeringMapper">
|
|
|
+
|
|
|
+ <sql id="earlyEngineeringColumns">
|
|
|
+ a.id AS "id",
|
|
|
+ a.create_by AS "createBy.id",
|
|
|
+ a.create_date AS "createDate",
|
|
|
+ a.update_by AS "updateBy.id",
|
|
|
+ a.update_date AS "updateDate",
|
|
|
+ a.remarks AS "remarks",
|
|
|
+ a.del_flag AS "delFlag",
|
|
|
+ a.projectCode AS "projectCode",
|
|
|
+ a.monomerCode AS "monomerCode",
|
|
|
+ a.entryName AS "entryName",
|
|
|
+ b.preDesignNo AS "preDesignNo",
|
|
|
+ b.initialDesignDate AS "initialDesignDate",
|
|
|
+ b.preDesignAnnex AS "preDesignAnnex",
|
|
|
+ c.batchOverview AS "batchOverview",
|
|
|
+ c.batchStatistics AS "batchStatistics",
|
|
|
+ c.estimateCode AS "estimateCode",
|
|
|
+ c.designCost AS "designCost",
|
|
|
+ c.supervisionFeeCode AS "supervisionFeeCode",
|
|
|
+ c.managementFeeCode AS "managementFeeCode",
|
|
|
+ c.dataCode AS "dataCode",
|
|
|
+ d.letterDesign AS "letterDesign",
|
|
|
+ d.disigningContract AS "disigningContract",
|
|
|
+ d.ownerDapartment AS "ownerDapartment",
|
|
|
+ d.threeDepartment AS "threeDepartment",
|
|
|
+ d.inspectionControl AS "inspectionControl",
|
|
|
+ d.letterAcceptance AS "letterAcceptance",
|
|
|
+ d.conContract AS "conContract",
|
|
|
+ d.otherContracts AS "otherContracts",
|
|
|
+ e.landNo AS "landNo",
|
|
|
+ e.landDate AS "landDate",
|
|
|
+ e.landAnnex AS "landAnnex",
|
|
|
+ e.eiaNo AS "eiaNo",
|
|
|
+ e.eiaDate AS "eiaDate",
|
|
|
+ e.eiaAnnex AS "eiaAnnex",
|
|
|
+ e.acceptanceNo AS "acceptanceNo",
|
|
|
+ e.acceptanceDate AS "acceptanceDate",
|
|
|
+ e.acceptanceAnnex AS "acceptanceAnnex",
|
|
|
+ e.replyNo AS "replyNo",
|
|
|
+ e.replyDate AS "replyDate",
|
|
|
+ e.replyAnnex AS "replyAnnex",
|
|
|
+ e.soilNo AS "soilNo",
|
|
|
+ e.soilDate AS "soilDate",
|
|
|
+ e.soilannex AS "soilannex",
|
|
|
+ e.depositNo AS "depositNo",
|
|
|
+ e.depositDate AS "depositDate",
|
|
|
+ e.depositAnnex AS "depositAnnex",
|
|
|
+ e.recordNo AS "recordNo",
|
|
|
+ e.recordDate AS "recordDate",
|
|
|
+ e.recordAnnex AS "recordAnnex",
|
|
|
+ e.siteProposalNo AS "siteProposalNo",
|
|
|
+ e.siteProposalDate AS "siteProposalDate",
|
|
|
+ e.siteProposalAnnex AS "siteProposalAnnex",
|
|
|
+ e.planningNo AS "planningNo",
|
|
|
+ e.planningDate AS "planningDate",
|
|
|
+ e.planningAnnex AS "planningAnnex",
|
|
|
+ e.usePlanNo AS "usePlanNo",
|
|
|
+ e.usePlanDate AS "usePlanDate",
|
|
|
+ e.usePlanAnnex AS "usePlanAnnex",
|
|
|
+ e.requisitonNo AS "requisitonNo",
|
|
|
+ e.requisitonDate AS "requisitonDate",
|
|
|
+ e.requisitonAnnex AS "requisitonAnnex",
|
|
|
+ e.conLandNo AS "conLandNo",
|
|
|
+ e.conLandDate AS "conLandDate",
|
|
|
+ e.conLandAnnex AS "conLandAnnex",
|
|
|
+ e.transferNo AS "transferNo",
|
|
|
+ e.transferDate AS "transferDate",
|
|
|
+ e.transferAnnex AS "transferAnnex",
|
|
|
+ e.certificateNo AS "certificateNo",
|
|
|
+ e.certificateDate AS "certificateDate",
|
|
|
+ e.certificateAnnex AS "certificateAnnex",
|
|
|
+ e.permitNo AS "permitNo",
|
|
|
+ e.permitDate AS "permitDate",
|
|
|
+ e.permitAnnex AS "permitAnnex",
|
|
|
+ e.fireProNo AS "fireProNo",
|
|
|
+ e.fireProdate AS "fireProdate",
|
|
|
+ e.fireProAnnex AS "fireProAnnex",
|
|
|
+ e.fireAccNo AS "fireAccNo",
|
|
|
+ e.fireAccDate AS "fireAccDate",
|
|
|
+ e.fireAccAnnex AS "fireAccAnnex",
|
|
|
+ e.estateNo AS "estateNo",
|
|
|
+ e.estateDate AS "estateDate",
|
|
|
+ e.estateAnnex AS "estateAnnex",
|
|
|
+ f.planningLevel AS "planningLevel",
|
|
|
+ f.surveyReport AS "surveyReport",
|
|
|
+ f.redLineMap AS "redLineMap",
|
|
|
+ f.redLineLand AS "redLineLand",
|
|
|
+ f.zongMap AS "zongMap",
|
|
|
+ f.recordSurvey AS "recordSurvey",
|
|
|
+ f.recordDesign AS "recordDesign",
|
|
|
+ f.recordContract AS "recordContract",
|
|
|
+ f.supervisionRecord AS "supervisionRecord",
|
|
|
+ f.qulifiedOpinions AS "qulifiedOpinions",
|
|
|
+ f.constructionComments AS "constructionComments",
|
|
|
+ f.constructionDrawing AS "constructionDrawing",
|
|
|
+ f.seismicReview AS "seismicReview",
|
|
|
+ f.planningSetting AS "planningSetting",
|
|
|
+ f.safetyRecord AS "safetyRecord",
|
|
|
+ f.qualityRecord AS "qualityRecord",
|
|
|
+ f.constructionPermit AS "constructionPermit",
|
|
|
+ f.planBuiltMapping AS "planBuiltMapping",
|
|
|
+ f.qualityAcceptance AS "qualityAcceptance",
|
|
|
+ f.urbanArchives AS "urbanArchives",
|
|
|
+ f.completionRecord AS "completionRecord",
|
|
|
+ f.realEstate AS "realEstate",
|
|
|
+ f.reportOnLang AS "reportOnLang"
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <sql id="earlyEngineeringJoins">
|
|
|
+ LEFT JOIN filing_early_designstage b on a.projectCode = b.projectCode
|
|
|
+ LEFT JOIN filing_early_reviewstage c on a.projectCode = c.projectCode
|
|
|
+ LEFT JOIN filing_early_biddingcontract d on a.projectCode = d.projectCode
|
|
|
+ LEFT JOIN filing_early_applicationfor e on a.projectCode = e.projectCode
|
|
|
+ LEFT JOIN filing_early_legalcompliance f on a.projectCode = f.projectCode
|
|
|
+ </sql>
|
|
|
+
|
|
|
+
|
|
|
+ <select id="get" resultType="EarlyEngineering">
|
|
|
+ SELECT
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ WHERE a.id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findList" resultType="EarlyEngineering">
|
|
|
+ SELECT
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ <where>
|
|
|
+ a.del_flag = #{DEL_FLAG_NORMAL}
|
|
|
+ ${dataScope}
|
|
|
+ and a.parentId = '0'
|
|
|
+ <if test="projectCode != null and projectCode != ''">
|
|
|
+ and a.projectCode = #{projectCode}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <choose>
|
|
|
+ <when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
+ ORDER BY ${page.orderBy}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ ORDER BY a.update_date DESC
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="findAllList" resultType="EarlyEngineering">
|
|
|
+ SELECT
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ <where>
|
|
|
+ a.del_flag = #{DEL_FLAG_NORMAL}
|
|
|
+ ${dataScope}
|
|
|
+ </where>
|
|
|
+ <choose>
|
|
|
+ <when test="page !=null and page.orderBy != null and page.orderBy != ''">
|
|
|
+ ORDER BY ${page.orderBy}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ ORDER BY a.update_date DESC
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insert">
|
|
|
+ INSERT INTO filing_early_legalcompliance(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ planningLevel,
|
|
|
+ surveyReport,
|
|
|
+ redLineMap,
|
|
|
+ redLineLand,
|
|
|
+ zongMap,
|
|
|
+ recordSurvey,
|
|
|
+ recordDesign,
|
|
|
+ recordContract,
|
|
|
+ supervisionRecord,
|
|
|
+ qulifiedOpinions,
|
|
|
+ constructionComments,
|
|
|
+ constructionDrawing,
|
|
|
+ seismicReview,
|
|
|
+ planningSetting,
|
|
|
+ safetyRecord,
|
|
|
+ qualityRecord,
|
|
|
+ constructionPermit,
|
|
|
+ planBuiltMapping,
|
|
|
+ qualityAcceptance,
|
|
|
+ urbanArchives,
|
|
|
+ completionRecord,
|
|
|
+ realEstate,
|
|
|
+ reportOnLang)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{planningLevel},
|
|
|
+ #{surveyReport},
|
|
|
+ #{redLineMap},
|
|
|
+ #{redLineLand},
|
|
|
+ #{zongMap},
|
|
|
+ #{recordSurvey},
|
|
|
+ #{recordDesign},
|
|
|
+ #{recordContract},
|
|
|
+ #{supervisionRecord},
|
|
|
+ #{qulifiedOpinions},
|
|
|
+ #{constructionComments},
|
|
|
+ #{constructionDrawing},
|
|
|
+ #{seismicReview},
|
|
|
+ #{planningSetting},
|
|
|
+ #{safetyRecord},
|
|
|
+ #{qualityRecord},
|
|
|
+ #{constructionPermit},
|
|
|
+ #{planBuiltMapping},
|
|
|
+ #{qualityAcceptance},
|
|
|
+ #{urbanArchives},
|
|
|
+ #{completionRecord},
|
|
|
+ #{realEstate},
|
|
|
+ #{reportOnLang})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertDesign">
|
|
|
+ INSERT INTO filing_early_designstage(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ preDesignNo,
|
|
|
+ initialDesignDate,
|
|
|
+ preDesignAnnex)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{preDesignNo},
|
|
|
+ #{initialDesignDate},
|
|
|
+ #{preDesignAnnex})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertReviewStage">
|
|
|
+ INSERT INTO filing_early_reviewstage(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ batchOverview,
|
|
|
+ batchStatistics,
|
|
|
+ estimateCode,
|
|
|
+ designCost,
|
|
|
+ supervisionFeeCode,
|
|
|
+ managementFeeCode,
|
|
|
+ dataCode)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{batchOverview},
|
|
|
+ #{batchStatistics},
|
|
|
+ #{estimateCode},
|
|
|
+ #{designCost},
|
|
|
+ #{supervisionFeeCode},
|
|
|
+ #{managementFeeCode},
|
|
|
+ #{dataCode})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertBiddingContract">
|
|
|
+ INSERT INTO filing_early_biddingcontract(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ letterDesign,
|
|
|
+ disigningContract,
|
|
|
+ ownerDapartment,
|
|
|
+ threeDepartment,
|
|
|
+ inspectionControl,
|
|
|
+ letterAcceptance,
|
|
|
+ conContract,
|
|
|
+ otherContracts)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{letterDesign},
|
|
|
+ #{disigningContract},
|
|
|
+ #{ownerDapartment},
|
|
|
+ #{threeDepartment},
|
|
|
+ #{inspectionControl},
|
|
|
+ #{letterAcceptance},
|
|
|
+ #{conContract},
|
|
|
+ #{otherContracts})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertApplicationFor">
|
|
|
+ INSERT INTO filing_early_applicationfor(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ landNo,
|
|
|
+ landDate,
|
|
|
+ landAnnex,
|
|
|
+ eiaNo,
|
|
|
+ eiaDate,
|
|
|
+ eiaAnnex,
|
|
|
+ acceptanceNo,
|
|
|
+ acceptanceDate,
|
|
|
+ acceptanceAnnex,
|
|
|
+ replyNo,
|
|
|
+ replyDate,
|
|
|
+ replyAnnex,
|
|
|
+ soilNo,
|
|
|
+ soilDate,
|
|
|
+ soilannex,
|
|
|
+ depositNo,
|
|
|
+ depositDate,
|
|
|
+ depositAnnex,
|
|
|
+ recordNo,
|
|
|
+ recordDate,
|
|
|
+ recordAnnex,
|
|
|
+ siteProposalNo,
|
|
|
+ siteProposalDate,
|
|
|
+ siteProposalAnnex,
|
|
|
+ planningNo,
|
|
|
+ planningDate,
|
|
|
+ planningAnnex,
|
|
|
+ usePlanNo,
|
|
|
+ usePlanDate,
|
|
|
+ usePlanAnnex,
|
|
|
+ requisitonNo,
|
|
|
+ requisitonDate,
|
|
|
+ requisitonAnnex,
|
|
|
+ conLandNo,
|
|
|
+ conLandDate,
|
|
|
+ conLandAnnex,
|
|
|
+ transferNo,
|
|
|
+ transferDate,
|
|
|
+ transferAnnex,
|
|
|
+ certificateNo,
|
|
|
+ certificateDate,
|
|
|
+ certificateAnnex,
|
|
|
+ permitNo,
|
|
|
+ permitDate,
|
|
|
+ permitAnnex,
|
|
|
+ fireProNo,
|
|
|
+ fireProdate,
|
|
|
+ fireProAnnex,
|
|
|
+ fireAccNo,
|
|
|
+ fireAccDate,
|
|
|
+ fireAccAnnex,
|
|
|
+ estateNo,
|
|
|
+ estateDate,
|
|
|
+ estateAnnex)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{landNo},
|
|
|
+ #{landDate},
|
|
|
+ #{landAnnex},
|
|
|
+ #{eiaNo},
|
|
|
+ #{eiaDate},
|
|
|
+ #{eiaAnnex},
|
|
|
+ #{acceptanceNo},
|
|
|
+ #{acceptanceDate},
|
|
|
+ #{acceptanceAnnex},
|
|
|
+ #{replyNo},
|
|
|
+ #{replyDate},
|
|
|
+ #{replyAnnex},
|
|
|
+ #{soilNo},
|
|
|
+ #{soilDate},
|
|
|
+ #{soilannex},
|
|
|
+ #{depositNo},
|
|
|
+ #{depositDate},
|
|
|
+ #{depositAnnex},
|
|
|
+ #{recordNo},
|
|
|
+ #{recordDate},
|
|
|
+ #{recordAnnex},
|
|
|
+ #{siteProposalNo},
|
|
|
+ #{siteProposalDate},
|
|
|
+ #{siteProposalAnnex},
|
|
|
+ #{planningNo},
|
|
|
+ #{planningDate},
|
|
|
+ #{planningAnnex},
|
|
|
+ #{usePlanNo},
|
|
|
+ #{usePlanDate},
|
|
|
+ #{usePlanAnnex},
|
|
|
+ #{requisitonNo},
|
|
|
+ #{requisitonDate},
|
|
|
+ #{requisitonAnnex},
|
|
|
+ #{conLandNo},
|
|
|
+ #{conLandDate},
|
|
|
+ #{conLandAnnex},
|
|
|
+ #{transferNo},
|
|
|
+ #{transferDate},
|
|
|
+ #{transferAnnex},
|
|
|
+ #{certificateNo},
|
|
|
+ #{certificateDate},
|
|
|
+ #{certificateAnnex},
|
|
|
+ #{permitNo},
|
|
|
+ #{permitDate},
|
|
|
+ #{permitAnnex},
|
|
|
+ #{fireProNo},
|
|
|
+ #{fireProdate},
|
|
|
+ #{fireProAnnex},
|
|
|
+ #{fireAccNo},
|
|
|
+ #{fireAccDate},
|
|
|
+ #{fireAccAnnex},
|
|
|
+ #{estateNo},
|
|
|
+ #{estateDate},
|
|
|
+ #{estateAnnex})
|
|
|
+ </insert>
|
|
|
+ <insert id="insertLegalCompliance">
|
|
|
+ INSERT INTO filing_early_legalcompliance(id,
|
|
|
+ create_by,
|
|
|
+ create_date,
|
|
|
+ update_by,
|
|
|
+ update_date,
|
|
|
+ remarks,
|
|
|
+ del_flag,
|
|
|
+ projectCode,
|
|
|
+ planningLevel,
|
|
|
+ surveyReport,
|
|
|
+ redLineMap,
|
|
|
+ redLineLand,
|
|
|
+ zongMap,
|
|
|
+ recordSurvey,
|
|
|
+ recordDesign,
|
|
|
+ recordContract,
|
|
|
+ supervisionRecord,
|
|
|
+ qulifiedOpinions,
|
|
|
+ constructionComments,
|
|
|
+ constructionDrawing,
|
|
|
+ seismicReview,
|
|
|
+ planningSetting,
|
|
|
+ safetyRecord,
|
|
|
+ qualityRecord,
|
|
|
+ constructionPermit,
|
|
|
+ planBuiltMapping,
|
|
|
+ qualityAcceptance,
|
|
|
+ urbanArchives,
|
|
|
+ completionRecord,
|
|
|
+ realEstate,
|
|
|
+ reportOnLang)
|
|
|
+ VALUES (#{id},
|
|
|
+ #{createBy.id},
|
|
|
+ #{createDate},
|
|
|
+ #{updateBy.id},
|
|
|
+ #{updateDate},
|
|
|
+ #{remarks},
|
|
|
+ #{delFlag},
|
|
|
+ #{projectCode},
|
|
|
+ #{planningLevel},
|
|
|
+ #{surveyReport},
|
|
|
+ #{redLineMap},
|
|
|
+ #{redLineLand},
|
|
|
+ #{zongMap},
|
|
|
+ #{recordSurvey},
|
|
|
+ #{recordDesign},
|
|
|
+ #{recordContract},
|
|
|
+ #{supervisionRecord},
|
|
|
+ #{qulifiedOpinions},
|
|
|
+ #{constructionComments},
|
|
|
+ #{constructionDrawing},
|
|
|
+ #{seismicReview},
|
|
|
+ #{planningSetting},
|
|
|
+ #{safetyRecord},
|
|
|
+ #{qualityRecord},
|
|
|
+ #{constructionPermit},
|
|
|
+ #{planBuiltMapping},
|
|
|
+ #{qualityAcceptance},
|
|
|
+ #{urbanArchives},
|
|
|
+ #{completionRecord},
|
|
|
+ #{realEstate},
|
|
|
+ #{reportOnLang})
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="update">
|
|
|
+ UPDATE filing_early_legalcompliance
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ planningLevel = #{planningLevel},
|
|
|
+ surveyReport = #{surveyReport},
|
|
|
+ redLineMap = #{redLineMap},
|
|
|
+ redLineLand = #{redLineLand},
|
|
|
+ zongMap = #{zongMap},
|
|
|
+ recordSurvey = #{recordSurvey},
|
|
|
+ recordDesign = #{recordDesign},
|
|
|
+ recordContract = #{recordContract},
|
|
|
+ supervisionRecord = #{supervisionRecord},
|
|
|
+ qulifiedOpinions = #{qulifiedOpinions},
|
|
|
+ constructionComments = #{constructionComments},
|
|
|
+ constructionDrawing = #{constructionDrawing},
|
|
|
+ seismicReview = #{seismicReview},
|
|
|
+ planningSetting = #{planningSetting},
|
|
|
+ safetyRecord = #{safetyRecord},
|
|
|
+ qualityRecord = #{qualityRecord},
|
|
|
+ constructionPermit = #{constructionPermit},
|
|
|
+ planBuiltMapping = #{planBuiltMapping},
|
|
|
+ qualityAcceptance = #{qualityAcceptance},
|
|
|
+ urbanArchives = #{urbanArchives},
|
|
|
+ completionRecord = #{completionRecord},
|
|
|
+ realEstate = #{realEstate},
|
|
|
+ reportOnLang = #{reportOnLang}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!--物理删除-->
|
|
|
+ <update id="delete">
|
|
|
+ DELETE
|
|
|
+ FROM filing_early_legalcompliance
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <!--逻辑删除-->
|
|
|
+ <update id="deleteByLogic">
|
|
|
+ UPDATE filing_early_legalcompliance
|
|
|
+ SET del_flag = #{DEL_FLAG_DELETE}
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+ <update id="updateDesign">
|
|
|
+ UPDATE filing_early_designstage
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ preDesignNo = #{preDesignNo},
|
|
|
+ initialDesignDate = #{initialDesignDate},
|
|
|
+ preDesignAnnex = #{preDesignAnnex}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+ <update id="updateReviewStage">
|
|
|
+ UPDATE filing_early_reviewstage
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ batchOverview = #{batchOverview},
|
|
|
+ batchStatistics = #{batchStatistics},
|
|
|
+ estimateCode = #{estimateCode},
|
|
|
+ designCost = #{designCost},
|
|
|
+ supervisionFeeCode = #{supervisionFeeCode},
|
|
|
+ managementFeeCode = #{managementFeeCode},
|
|
|
+ dataCode = #{dataCode}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+ <update id="updateBiddingContract">
|
|
|
+ UPDATE filing_early_biddingcontract
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ letterDesign = #{letterDesign},
|
|
|
+ disigningContract = #{disigningContract},
|
|
|
+ ownerDapartment = #{ownerDapartment},
|
|
|
+ threeDepartment = #{threeDepartment},
|
|
|
+ inspectionControl = #{inspectionControl},
|
|
|
+ letterAcceptance = #{letterAcceptance},
|
|
|
+ conContract = #{conContract},
|
|
|
+ otherContracts = #{otherContracts}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+ <update id="updateApplicationFor">
|
|
|
+ UPDATE filing_early_applicationfor
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ landNo = #{landNo},
|
|
|
+ landDate = #{landDate},
|
|
|
+ landAnnex = #{landAnnex},
|
|
|
+ eiaNo = #{eiaNo},
|
|
|
+ eiaDate = #{eiaDate},
|
|
|
+ eiaAnnex = #{eiaAnnex},
|
|
|
+ acceptanceNo = #{acceptanceNo},
|
|
|
+ acceptanceDate = #{acceptanceDate},
|
|
|
+ acceptanceAnnex = #{acceptanceAnnex},
|
|
|
+ replyNo = #{replyNo},
|
|
|
+ replyDate = #{replyDate},
|
|
|
+ replyAnnex = #{replyAnnex},
|
|
|
+ soilNo = #{soilNo},
|
|
|
+ soilDate = #{soilDate},
|
|
|
+ soilannex = #{soilannex},
|
|
|
+ depositNo = #{depositNo},
|
|
|
+ depositDate = #{depositDate},
|
|
|
+ depositAnnex = #{depositAnnex},
|
|
|
+ recordNo = #{recordNo},
|
|
|
+ recordDate = #{recordDate},
|
|
|
+ recordAnnex = #{recordAnnex},
|
|
|
+ siteProposalNo = #{siteProposalNo},
|
|
|
+ siteProposalDate = #{siteProposalDate},
|
|
|
+ siteProposalAnnex = #{siteProposalAnnex},
|
|
|
+ planningNo = #{planningNo},
|
|
|
+ planningDate = #{planningDate},
|
|
|
+ planningAnnex = #{planningAnnex},
|
|
|
+ usePlanNo = #{usePlanNo},
|
|
|
+ usePlanDate = #{usePlanDate},
|
|
|
+ usePlanAnnex = #{usePlanAnnex},
|
|
|
+ requisitonNo = #{requisitonNo},
|
|
|
+ requisitonDate = #{requisitonDate},
|
|
|
+ requisitonAnnex = #{requisitonAnnex},
|
|
|
+ conLandNo = #{conLandNo},
|
|
|
+ conLandDate = #{conLandDate},
|
|
|
+ conLandAnnex = #{conLandAnnex},
|
|
|
+ transferNo = #{transferNo},
|
|
|
+ transferDate = #{transferDate},
|
|
|
+ transferAnnex = #{transferAnnex},
|
|
|
+ certificateNo = #{certificateNo},
|
|
|
+ certificateDate = #{certificateDate},
|
|
|
+ certificateAnnex = #{certificateAnnex},
|
|
|
+ permitNo = #{permitNo},
|
|
|
+ permitDate = #{permitDate},
|
|
|
+ permitAnnex = #{permitAnnex},
|
|
|
+ fireProNo = #{fireProNo},
|
|
|
+ fireProdate = #{fireProdate},
|
|
|
+ fireProAnnex = #{fireProAnnex},
|
|
|
+ fireAccNo = #{fireAccNo},
|
|
|
+ fireAccDate = #{fireAccDate},
|
|
|
+ fireAccAnnex = #{fireAccAnnex},
|
|
|
+ estateNo = #{estateNo},
|
|
|
+ estateDate = #{estateDate},
|
|
|
+ estateAnnex = #{estateAnnex}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+ <update id="updateLegalCompliance">
|
|
|
+ UPDATE filing_early_legalcompliance
|
|
|
+ SET create_date = #{createDate},
|
|
|
+ update_by = #{updateBy.id},
|
|
|
+ update_date = #{updateDate},
|
|
|
+ remarks = #{remarks},
|
|
|
+ planningLevel = #{planningLevel},
|
|
|
+ surveyReport = #{surveyReport},
|
|
|
+ redLineMap = #{redLineMap},
|
|
|
+ redLineLand = #{redLineLand},
|
|
|
+ zongMap = #{zongMap},
|
|
|
+ recordSurvey = #{recordSurvey},
|
|
|
+ recordDesign = #{recordDesign},
|
|
|
+ recordContract = #{recordContract},
|
|
|
+ supervisionRecord = #{supervisionRecord},
|
|
|
+ qulifiedOpinions = #{qulifiedOpinions},
|
|
|
+ constructionComments = #{constructionComments},
|
|
|
+ constructionDrawing = #{constructionDrawing},
|
|
|
+ seismicReview = #{seismicReview},
|
|
|
+ planningSetting = #{planningSetting},
|
|
|
+ safetyRecord = #{safetyRecord},
|
|
|
+ qualityRecord = #{qualityRecord},
|
|
|
+ constructionPermit = #{constructionPermit},
|
|
|
+ planBuiltMapping = #{planBuiltMapping},
|
|
|
+ qualityAcceptance = #{qualityAcceptance},
|
|
|
+ urbanArchives = #{urbanArchives},
|
|
|
+ completionRecord = #{completionRecord},
|
|
|
+ realEstate = #{realEstate},
|
|
|
+ reportOnLang = #{reportOnLang}
|
|
|
+ WHERE projectCode = #{projectCode}
|
|
|
+ </update>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 根据实体名称和字段名称和字段值获取唯一记录 -->
|
|
|
+ <select id="findUniqueByProperty" resultType="EarlyEngineering" statementType="STATEMENT">
|
|
|
+ select *
|
|
|
+ FROM filing_early_legalcompliance
|
|
|
+ where ${propertyName} = '${value}'
|
|
|
+ </select>
|
|
|
+ <select id="findChildList" resultType="com.jeeplus.modules.filing.earlyEngineering.entity.EarlyEngineering">
|
|
|
+ select
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ <where>
|
|
|
+ <if test="projectCode != null and projectCode != ''">
|
|
|
+ a.parentId = #{projectCode}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+ <select id="findByCode" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_legalcompliance
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+ <select id="findByIdList" resultType="com.jeeplus.modules.filing.earlyEngineering.entity.EarlyEngineering">
|
|
|
+ SELECT
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ WHERE a.id in(
|
|
|
+ <foreach collection="list" index="index" item="item" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </select>
|
|
|
+ <select id="findAll" resultType="com.jeeplus.modules.filing.earlyEngineering.entity.EarlyEngineering">
|
|
|
+ SELECT
|
|
|
+ <include refid="earlyEngineeringColumns"/>
|
|
|
+ FROM filing_basic_information a
|
|
|
+ <include refid="earlyEngineeringJoins"/>
|
|
|
+ WHERE a.id in(
|
|
|
+ <foreach collection="list" index="index" item="item" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ )
|
|
|
+ </select>
|
|
|
+ <select id="findDesignStage" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_designstage
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+ <select id="findReviewStage" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_reviewstage
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+ <select id="findBiddingContract" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_biddingcontract
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+ <select id="findApplicationFor" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_applicationfor
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+ <select id="findLegalCompliance" resultType="java.lang.Integer">
|
|
|
+ select count(id)
|
|
|
+ from filing_early_legalcompliance
|
|
|
+ where projectCode = #{projectCode}
|
|
|
+ </select>
|
|
|
+
|
|
|
+</mapper>
|