|
@@ -0,0 +1,157 @@
|
|
|
+<?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="zhsq_qk.system.mapper.QkZwyxHallHandlingMapper">
|
|
|
+
|
|
|
+ <resultMap type="QkZwyxHallHandling" id="QkZwyxHallHandlingResult">
|
|
|
+ <result property="id" column="id"/>
|
|
|
+ <result property="buildLandUse" column="build_land_use"/>
|
|
|
+ <result property="architecturalEngineering" column="architectural_engineering"/>
|
|
|
+ <result property="architecturalLicence" column="architectural_licence"/>
|
|
|
+ <result property="projectTime" column="project_time"/>
|
|
|
+ <result property="projectApprovalStage" column="project_approval_stage"/>
|
|
|
+ <result property="planStage" column="plan_stage"/>
|
|
|
+ <result property="permitStage" column="permit_stage"/>
|
|
|
+ <result property="acceptancePhase" column="acceptance_phase"/>
|
|
|
+ <result property="hallTotal" column="hall_total"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectQkZwyxHallHandlingVo">
|
|
|
+ select id, build_land_use, architectural_engineering, architectural_licence, project_time, project_approval_stage, plan_stage, permit_stage, acceptance_phase, hall_total
|
|
|
+ from qk_zwyx_hall_handling
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectQkZwyxHallHandlingList" parameterType="QkZwyxHallHandling" resultMap="QkZwyxHallHandlingResult">
|
|
|
+ <include refid="selectQkZwyxHallHandlingVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="buildLandUse != null and buildLandUse != ''">
|
|
|
+ and build_land_use = #{buildLandUse}
|
|
|
+ </if>
|
|
|
+ <if test="architecturalEngineering != null and architecturalEngineering != ''">
|
|
|
+ and architectural_engineering = #{architecturalEngineering}
|
|
|
+ </if>
|
|
|
+ <if test="architecturalLicence != null and architecturalLicence != ''">
|
|
|
+ and architectural_licence = #{architecturalLicence}
|
|
|
+ </if>
|
|
|
+ <if test="projectTime != null and projectTime != ''">
|
|
|
+ and project_time = #{projectTime}
|
|
|
+ </if>
|
|
|
+ <if test="projectApprovalStage != null and projectApprovalStage != ''">
|
|
|
+ and project_approval_stage = #{projectApprovalStage}
|
|
|
+ </if>
|
|
|
+ <if test="planStage != null and planStage != ''">
|
|
|
+ and plan_stage = #{planStage}
|
|
|
+ </if>
|
|
|
+ <if test="permitStage != null and permitStage != ''">
|
|
|
+ and permit_stage = #{permitStage}
|
|
|
+ </if>
|
|
|
+ <if test="acceptancePhase != null and acceptancePhase != ''">
|
|
|
+ and acceptance_phase = #{acceptancePhase}
|
|
|
+ </if>
|
|
|
+ <if test="hallTotal != null and hallTotal != ''">
|
|
|
+ and hall_total = #{hallTotal}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectQkZwyxHallHandlingById" parameterType="Long"
|
|
|
+ resultMap="QkZwyxHallHandlingResult">
|
|
|
+ <include refid="selectQkZwyxHallHandlingVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertQkZwyxHallHandling" parameterType="QkZwyxHallHandling">
|
|
|
+ insert into qk_zwyx_hall_handling
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,
|
|
|
+ </if>
|
|
|
+ <if test="buildLandUse != null">build_land_use,
|
|
|
+ </if>
|
|
|
+ <if test="architecturalEngineering != null">architectural_engineering,
|
|
|
+ </if>
|
|
|
+ <if test="architecturalLicence != null">architectural_licence,
|
|
|
+ </if>
|
|
|
+ <if test="projectTime != null">project_time,
|
|
|
+ </if>
|
|
|
+ <if test="projectApprovalStage != null">project_approval_stage,
|
|
|
+ </if>
|
|
|
+ <if test="planStage != null">plan_stage,
|
|
|
+ </if>
|
|
|
+ <if test="permitStage != null">permit_stage,
|
|
|
+ </if>
|
|
|
+ <if test="acceptancePhase != null">acceptance_phase,
|
|
|
+ </if>
|
|
|
+ <if test="hallTotal != null">hall_total,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},
|
|
|
+ </if>
|
|
|
+ <if test="buildLandUse != null">#{buildLandUse},
|
|
|
+ </if>
|
|
|
+ <if test="architecturalEngineering != null">#{architecturalEngineering},
|
|
|
+ </if>
|
|
|
+ <if test="architecturalLicence != null">#{architecturalLicence},
|
|
|
+ </if>
|
|
|
+ <if test="projectTime != null">#{projectTime},
|
|
|
+ </if>
|
|
|
+ <if test="projectApprovalStage != null">#{projectApprovalStage},
|
|
|
+ </if>
|
|
|
+ <if test="planStage != null">#{planStage},
|
|
|
+ </if>
|
|
|
+ <if test="permitStage != null">#{permitStage},
|
|
|
+ </if>
|
|
|
+ <if test="acceptancePhase != null">#{acceptancePhase},
|
|
|
+ </if>
|
|
|
+ <if test="hallTotal != null">#{hallTotal},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateQkZwyxHallHandling" parameterType="QkZwyxHallHandling">
|
|
|
+ update qk_zwyx_hall_handling
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="buildLandUse != null">build_land_use =
|
|
|
+ #{buildLandUse},
|
|
|
+ </if>
|
|
|
+ <if test="architecturalEngineering != null">architectural_engineering =
|
|
|
+ #{architecturalEngineering},
|
|
|
+ </if>
|
|
|
+ <if test="architecturalLicence != null">architectural_licence =
|
|
|
+ #{architecturalLicence},
|
|
|
+ </if>
|
|
|
+ <if test="projectTime != null">project_time =
|
|
|
+ #{projectTime},
|
|
|
+ </if>
|
|
|
+ <if test="projectApprovalStage != null">project_approval_stage =
|
|
|
+ #{projectApprovalStage},
|
|
|
+ </if>
|
|
|
+ <if test="planStage != null">plan_stage =
|
|
|
+ #{planStage},
|
|
|
+ </if>
|
|
|
+ <if test="permitStage != null">permit_stage =
|
|
|
+ #{permitStage},
|
|
|
+ </if>
|
|
|
+ <if test="acceptancePhase != null">acceptance_phase =
|
|
|
+ #{acceptancePhase},
|
|
|
+ </if>
|
|
|
+ <if test="hallTotal != null">hall_total =
|
|
|
+ #{hallTotal},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteQkZwyxHallHandlingById" parameterType="Long">
|
|
|
+ delete
|
|
|
+ from qk_zwyx_hall_handling where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteQkZwyxHallHandlingByIds" parameterType="String">
|
|
|
+ delete from qk_zwyx_hall_handling where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|