<?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.xf.huludao.project.dao.GisLayerPsfqMapper"> <!-- 通用映射列 --> <resultMap id="BaseResultMap" type="com.xf.huludao.project.entity.GisLayerPsfq"> <result column="ID" property="id"/> <result column="UserID" property="UserID"/> <result column="objectid_1" property="objectid1"/> <result column="objectid" property="objectid"/> <result column="shape_leng" property="shapeLeng"/> <result column="mj" property="mj"/> <result column="fid_" property="fid"/> <result column="entity" property="entity"/> <result column="layer" property="layer"/> <result column="color" property="color"/> <result column="linetype" property="linetype"/> <result column="elevation" property="elevation"/> <result column="linewt" property="linewt"/> <result column="refname" property="refname"/> <result column="分区" property="分区"/> <result column="shape_le_1" property="shapeLe1"/> <result column="shape_area" property="shapeArea"/> <result column="fq" property="fq"/> <result column="属性" property="属性"/> <result column="fq_1" property="fq1"/> <result column="排水分" property="排水分"/> <result column="geometrys" property="geometrys"/> <result column="project_no" property="projectNo"/> <result column="create_user" property="createUser"/> <result column="create_dept" property="createDept"/> <result column="create_time" property="createTime"/> <result column="update_user" property="updateUser"/> <result column="update_time" property="updateTime"/> <result column="status" property="status"/> <result column="is_deleted" property="isDeleted"/> </resultMap> <!-- 通用数据库列 --> <sql id="Base_Column_List"> ID, UserID, objectid_1, objectid, shape_leng, mj, fid_, entity, layer, color, linetype, elevation, linewt, refname, 分区, shape_le_1, shape_area, fq, 属性, fq_1, 排水分, ST_AsText(geometrys) as geometrys, project_no, create_user, create_dept, create_time, update_user, update_time, status, is_deleted </sql> <sql id="Where_Condition"> <if test="request.id != null and request.id != ''"> and ID = #{request.id} </if> <if test="request.UserID != null and request.UserID != ''"> and UserID = #{request.UserID} </if> <if test="request.objectid1 != null and request.objectid1 != ''"> and objectid_1 = #{request.objectid1} </if> <if test="request.objectid != null and request.objectid != ''"> and objectid = #{request.objectid} </if> <if test="request.shapeLeng != null and request.shapeLeng != ''"> and shape_leng = #{request.shapeLeng} </if> <if test="request.mj != null and request.mj != ''"> and mj = #{request.mj} </if> <if test="request.fid != null and request.fid != ''"> and fid_ = #{request.fid} </if> <if test="request.entity != null and request.entity != ''"> and entity = #{request.entity} </if> <if test="request.layer != null and request.layer != ''"> and layer = #{request.layer} </if> <if test="request.color != null and request.color != ''"> and color = #{request.color} </if> <if test="request.linetype != null and request.linetype != ''"> and linetype = #{request.linetype} </if> <if test="request.elevation != null and request.elevation != ''"> and elevation = #{request.elevation} </if> <if test="request.linewt != null and request.linewt != ''"> and linewt = #{request.linewt} </if> <if test="request.refname != null and request.refname != ''"> and refname = #{request.refname} </if> <if test="request.分区 != null and request.分区 != ''"> and 分区 = #{request.分区} </if> <if test="request.shapeLe1 != null and request.shapeLe1 != ''"> and shape_le_1 = #{request.shapeLe1} </if> <if test="request.shapeArea != null and request.shapeArea != ''"> and shape_area = #{request.shapeArea} </if> <if test="request.fq != null and request.fq != ''"> and fq = #{request.fq} </if> <if test="request.属性 != null and request.属性 != ''"> and 属性 = #{request.属性} </if> <if test="request.fq1 != null and request.fq1 != ''"> and fq_1 = #{request.fq1} </if> <if test="request.排水分 != null and request.排水分 != ''"> and 排水分 = #{request.排水分} </if> <if test="request.geometrys != null and request.geometrys != ''"> and geometrys = #{request.geometrys} </if> <if test="request.projectNo != null and request.projectNo != ''"> and project_no = #{request.projectNo} </if> <if test="request.createUser != null and request.createUser != ''"> and create_user = #{request.createUser} </if> <if test="request.createDept != null and request.createDept != ''"> and create_dept = #{request.createDept} </if> <if test="request.createTime != null and request.createTime != ''"> and create_time = #{request.createTime} </if> <if test="request.updateUser != null and request.updateUser != ''"> and update_user = #{request.updateUser} </if> <if test="request.updateTime != null and request.updateTime != ''"> and update_time = #{request.updateTime} </if> <if test="request.status != null and request.status != ''"> and status = #{request.status} </if> <if test="request.isDeleted != null and request.isDeleted != ''"> and is_deleted = #{request.isDeleted} </if> </sql> <select id="selectByCondition" resultMap="BaseResultMap"> select <include refid="Base_Column_List"/> from gis_layer_psfq where is_deleted = 0 <include refid="Where_Condition"/> </select> <select id="exportGisLayerPsfq" resultType="com.xf.huludao.project.entity.GisLayerPsfq"> SELECT * FROM gis_layer_psfq ${ew.customSqlSegment} </select> </mapper>