|
@@ -10,16 +10,10 @@
|
|
|
<result column="mountain_name" jdbcType="VARCHAR" property="mountainName" />
|
|
<result column="mountain_name" jdbcType="VARCHAR" property="mountainName" />
|
|
|
<result column="platform_name" jdbcType="VARCHAR" property="platformName" />
|
|
<result column="platform_name" jdbcType="VARCHAR" property="platformName" />
|
|
|
<result column="platform_address" jdbcType="VARCHAR" property="platformAddress" />
|
|
<result column="platform_address" jdbcType="VARCHAR" property="platformAddress" />
|
|
|
- <result column="design
|
|
|
|
|
-
|
|
|
|
|
-_company" jdbcType="VARCHAR" property="design
|
|
|
|
|
-
|
|
|
|
|
-Company" />
|
|
|
|
|
|
|
+ <result column="design_company" jdbcType="VARCHAR" property="designCompany" />
|
|
|
<result column="design_contacts" jdbcType="VARCHAR" property="designContacts" />
|
|
<result column="design_contacts" jdbcType="VARCHAR" property="designContacts" />
|
|
|
<result column="design_phone" jdbcType="VARCHAR" property="designPhone" />
|
|
<result column="design_phone" jdbcType="VARCHAR" property="designPhone" />
|
|
|
- <result column="build
|
|
|
|
|
-_company" jdbcType="VARCHAR" property="build
|
|
|
|
|
-Company" />
|
|
|
|
|
|
|
+ <result column="build_company" jdbcType="VARCHAR" property="buildCompany" />
|
|
|
<result column="build_contacts" jdbcType="VARCHAR" property="buildContacts" />
|
|
<result column="build_contacts" jdbcType="VARCHAR" property="buildContacts" />
|
|
|
<result column="build_phone" jdbcType="VARCHAR" property="buildPhone" />
|
|
<result column="build_phone" jdbcType="VARCHAR" property="buildPhone" />
|
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
|
@@ -32,279 +26,19 @@ Company" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List">
|
|
<sql id="Base_Column_List">
|
|
|
<!--@mbg.generated-->
|
|
<!--@mbg.generated-->
|
|
|
- id, `name`, mountain_id, mountain_name, platform_name, platform_address, design
|
|
|
|
|
-
|
|
|
|
|
-_company,
|
|
|
|
|
- design_contacts, design_phone, build
|
|
|
|
|
-_company, build_contacts, build_phone, remark,
|
|
|
|
|
|
|
+ id, `name`, mountain_id, mountain_name, platform_name, platform_address, design_company,
|
|
|
|
|
+ design_contacts, design_phone, build_company, build_contacts, build_phone, remark,
|
|
|
`status`, create_by, create_time, update_by, update_time, del_flag
|
|
`status`, create_by, create_time, update_by, update_time, del_flag
|
|
|
</sql>
|
|
</sql>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- select
|
|
|
|
|
- <include refid="Base_Column_List" />
|
|
|
|
|
- from kws_project
|
|
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
|
|
+ <select id="selectByProjectParam" resultType="com.sckw.slope.detection.model.vo.ProjectVo">
|
|
|
|
|
+ select
|
|
|
|
|
+ <include refid="Base_Column_List">
|
|
|
|
|
+ </include>
|
|
|
|
|
+ from kws_project
|
|
|
|
|
+ <where>
|
|
|
|
|
+ <if test="name != null and name != ''">
|
|
|
|
|
+ and name like concat('%', #{name}, '%')
|
|
|
|
|
+ </if>
|
|
|
|
|
+ </where>
|
|
|
</select>
|
|
</select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- delete from kws_project
|
|
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
- </delete>
|
|
|
|
|
- <insert id="insert" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsProject">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- insert into kws_project (id, `name`, mountain_id,
|
|
|
|
|
- mountain_name, platform_name, platform_address,
|
|
|
|
|
- design
|
|
|
|
|
-
|
|
|
|
|
-_company, design_contacts, design_phone,
|
|
|
|
|
- build
|
|
|
|
|
-_company, build_contacts, build_phone,
|
|
|
|
|
- remark, `status`, create_by,
|
|
|
|
|
- create_time, update_by, update_time,
|
|
|
|
|
- del_flag)
|
|
|
|
|
- values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{mountainId,jdbcType=VARCHAR},
|
|
|
|
|
- #{mountainName,jdbcType=VARCHAR}, #{platformName,jdbcType=VARCHAR}, #{platformAddress,jdbcType=VARCHAR},
|
|
|
|
|
- #{design
|
|
|
|
|
-
|
|
|
|
|
-Company,jdbcType=VARCHAR}, #{designContacts,jdbcType=VARCHAR}, #{designPhone,jdbcType=VARCHAR},
|
|
|
|
|
- #{build
|
|
|
|
|
-Company,jdbcType=VARCHAR}, #{buildContacts,jdbcType=VARCHAR}, #{buildPhone,jdbcType=VARCHAR},
|
|
|
|
|
- #{remark,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createBy,jdbcType=BIGINT},
|
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- #{delFlag,jdbcType=TINYINT})
|
|
|
|
|
- </insert>
|
|
|
|
|
- <insert id="insertSelective" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsProject">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- insert into kws_project
|
|
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
- <if test="id != null">
|
|
|
|
|
- id,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- `name`,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainId != null">
|
|
|
|
|
- mountain_id,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainName != null">
|
|
|
|
|
- mountain_name,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformName != null">
|
|
|
|
|
- platform_name,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformAddress != null">
|
|
|
|
|
- platform_address,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="design
|
|
|
|
|
-
|
|
|
|
|
-Company != null">
|
|
|
|
|
- design
|
|
|
|
|
-
|
|
|
|
|
-_company,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designContacts != null">
|
|
|
|
|
- design_contacts,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designPhone != null">
|
|
|
|
|
- design_phone,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="build
|
|
|
|
|
-Company != null">
|
|
|
|
|
- build
|
|
|
|
|
-_company,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildContacts != null">
|
|
|
|
|
- build_contacts,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildPhone != null">
|
|
|
|
|
- build_phone,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="remark != null">
|
|
|
|
|
- remark,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="status != null">
|
|
|
|
|
- `status`,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createBy != null">
|
|
|
|
|
- create_by,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- create_time,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateBy != null">
|
|
|
|
|
- update_by,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- update_time,
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="delFlag != null">
|
|
|
|
|
- del_flag,
|
|
|
|
|
- </if>
|
|
|
|
|
- </trim>
|
|
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
- <if test="id != null">
|
|
|
|
|
- #{id,jdbcType=BIGINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- #{name,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainId != null">
|
|
|
|
|
- #{mountainId,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainName != null">
|
|
|
|
|
- #{mountainName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformName != null">
|
|
|
|
|
- #{platformName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformAddress != null">
|
|
|
|
|
- #{platformAddress,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="design
|
|
|
|
|
-
|
|
|
|
|
-Company != null">
|
|
|
|
|
- #{design
|
|
|
|
|
-
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designContacts != null">
|
|
|
|
|
- #{designContacts,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designPhone != null">
|
|
|
|
|
- #{designPhone,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="build
|
|
|
|
|
-Company != null">
|
|
|
|
|
- #{build
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildContacts != null">
|
|
|
|
|
- #{buildContacts,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildPhone != null">
|
|
|
|
|
- #{buildPhone,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="remark != null">
|
|
|
|
|
- #{remark,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="status != null">
|
|
|
|
|
- #{status,jdbcType=TINYINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createBy != null">
|
|
|
|
|
- #{createBy,jdbcType=BIGINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateBy != null">
|
|
|
|
|
- #{updateBy,jdbcType=BIGINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="delFlag != null">
|
|
|
|
|
- #{delFlag,jdbcType=TINYINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- </trim>
|
|
|
|
|
- </insert>
|
|
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsProject">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- update kws_project
|
|
|
|
|
- <set>
|
|
|
|
|
- <if test="name != null">
|
|
|
|
|
- `name` = #{name,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainId != null">
|
|
|
|
|
- mountain_id = #{mountainId,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="mountainName != null">
|
|
|
|
|
- mountain_name = #{mountainName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformName != null">
|
|
|
|
|
- platform_name = #{platformName,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="platformAddress != null">
|
|
|
|
|
- platform_address = #{platformAddress,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="design
|
|
|
|
|
-
|
|
|
|
|
-Company != null">
|
|
|
|
|
- design
|
|
|
|
|
-
|
|
|
|
|
-_company = #{design
|
|
|
|
|
-
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designContacts != null">
|
|
|
|
|
- design_contacts = #{designContacts,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="designPhone != null">
|
|
|
|
|
- design_phone = #{designPhone,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="build
|
|
|
|
|
-Company != null">
|
|
|
|
|
- build
|
|
|
|
|
-_company = #{build
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildContacts != null">
|
|
|
|
|
- build_contacts = #{buildContacts,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="buildPhone != null">
|
|
|
|
|
- build_phone = #{buildPhone,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="remark != null">
|
|
|
|
|
- remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="status != null">
|
|
|
|
|
- `status` = #{status,jdbcType=TINYINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createBy != null">
|
|
|
|
|
- create_by = #{createBy,jdbcType=BIGINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="createTime != null">
|
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateBy != null">
|
|
|
|
|
- update_by = #{updateBy,jdbcType=BIGINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="updateTime != null">
|
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- </if>
|
|
|
|
|
- <if test="delFlag != null">
|
|
|
|
|
- del_flag = #{delFlag,jdbcType=TINYINT},
|
|
|
|
|
- </if>
|
|
|
|
|
- </set>
|
|
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
- </update>
|
|
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.sckw.slope.detection.model.dos.mysql.KwsProject">
|
|
|
|
|
- <!--@mbg.generated-->
|
|
|
|
|
- update kws_project
|
|
|
|
|
- set `name` = #{name,jdbcType=VARCHAR},
|
|
|
|
|
- mountain_id = #{mountainId,jdbcType=VARCHAR},
|
|
|
|
|
- mountain_name = #{mountainName,jdbcType=VARCHAR},
|
|
|
|
|
- platform_name = #{platformName,jdbcType=VARCHAR},
|
|
|
|
|
- platform_address = #{platformAddress,jdbcType=VARCHAR},
|
|
|
|
|
- design
|
|
|
|
|
-
|
|
|
|
|
-_company = #{design
|
|
|
|
|
-
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- design_contacts = #{designContacts,jdbcType=VARCHAR},
|
|
|
|
|
- design_phone = #{designPhone,jdbcType=VARCHAR},
|
|
|
|
|
- build
|
|
|
|
|
-_company = #{build
|
|
|
|
|
-Company,jdbcType=VARCHAR},
|
|
|
|
|
- build_contacts = #{buildContacts,jdbcType=VARCHAR},
|
|
|
|
|
- build_phone = #{buildPhone,jdbcType=VARCHAR},
|
|
|
|
|
- remark = #{remark,jdbcType=VARCHAR},
|
|
|
|
|
- `status` = #{status,jdbcType=TINYINT},
|
|
|
|
|
- create_by = #{createBy,jdbcType=BIGINT},
|
|
|
|
|
- create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- update_by = #{updateBy,jdbcType=BIGINT},
|
|
|
|
|
- update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
- del_flag = #{delFlag,jdbcType=TINYINT}
|
|
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
|
|
- </update>
|
|
|
|
|
</mapper>
|
|
</mapper>
|