|
|
@@ -0,0 +1,65 @@
|
|
|
+<?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.onemap.sanya.mapper.Modeling3DMapper">
|
|
|
+
|
|
|
+ <resultMap type="Modeling3D" id="Modeling3DResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="plotId" column="plot_id" />
|
|
|
+ <result property="taskId" column="task_id" />
|
|
|
+ <result property="modelData" column="model_data" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectModeling3DVo">
|
|
|
+ select id, plot_id, task_id, model_data from "base".t_fzss_fzxz_3d_modeling
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectModeling3DList" parameterType="Modeling3D" resultMap="Modeling3DResult">
|
|
|
+ <include refid="selectModeling3DVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="plotId != null and plotId != ''"> and plot_id = #{plotId}</if>
|
|
|
+ <if test="taskId != null and taskId != ''"> and task_id = #{taskId}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectModeling3DById" parameterType="Long" resultMap="Modeling3DResult">
|
|
|
+ <include refid="selectModeling3DVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertModeling3D" parameterType="Modeling3D" useGeneratedKeys="true" keyProperty="id">
|
|
|
+ insert into "base".t_fzss_fzxz_3d_modeling
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="plotId != null">plot_id,</if>
|
|
|
+ <if test="taskId != null">task_id,</if>
|
|
|
+ <if test="modelData != null">model_data,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="plotId != null">#{plotId},</if>
|
|
|
+ <if test="taskId != null">#{taskId},</if>
|
|
|
+ <if test="modelData != null">#{modelData},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateModeling3D" parameterType="Modeling3D">
|
|
|
+ update "base".t_fzss_fzxz_3d_modeling
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="plotId != null">plot_id = #{plotId},</if>
|
|
|
+ <if test="taskId != null">task_id = #{taskId},</if>
|
|
|
+ <if test="modelData != null">model_data = #{modelData},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteModeling3DById" parameterType="Long">
|
|
|
+ delete from "base".t_fzss_fzxz_3d_modeling where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteModeling3DByIds" parameterType="String">
|
|
|
+ delete from "base".t_fzss_fzxz_3d_modeling where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|