<?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.pipenetwork.dao.PipeNetworkRainPerforatedStrainerHistoryMapper"> <!-- 通用映射列 --> <resultMap id="BaseResultMap" type="com.xf.huludao.pipenetwork.entity.PipeNetworkRainPerforatedStrainerHistory"> <result column="id" property="id"/> <result column="gutter_inlet_number" property="gutterInletNumber"/> <result column="original_x" property="originalX"/> <result column="original_y" property="originalY"/> <result column="transfrom_x" property="transfromX"/> <result column="transfrom_y" property="transfromY"/> <result column="geometrys" property="geometrys"/> <result column="road_name" property="roadName"/> <result column="rainwater_pattern" property="rainwaterPattern"/> <result column="mouth_shape" property="mouthShape"/> <result column="storm_drain_one" property="stormDrainOne"/> <result column="storm_drain_two" property="stormDrainTwo"/> <result column="grate_material" property="grateMaterial"/> <result column="grate_spacing" property="grateSpacing"/> <result column="grate_thickness" property="grateThickness"/> <result column="grate_depth" property="grateDepth"/> <result column="surface_elevation" property="surfaceElevation"/> <result column="garbage_to_intercept" property="garbageToIntercept"/> <result column="deodorization_device" property="deodorizationDevice"/> <result column="cutoff_equipment" property="cutoffEquipment"/> <result column="drainage_type" property="drainageType"/> <result column="construction_date" property="constructionDate"/> <result column="ownership_units" property="ownershipUnits"/> <result column="operational_units" property="operationalUnits"/> <result column="data_sources" property="dataSources"/> <result column="remark" property="remark"/> <result column="data_gain_time" property="dataGainTime"/> <result column="update_logo" property="updateLogo"/> <result column="model_id" property="modelId"/> <result column="z" property="z"/> <result column="create_user" property="createUser"/> <result column="create_time" property="createTime"/> <result column="create_dept" property="createDept"/> <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, gutter_inlet_number, original_x, original_y, transfrom_x, transfrom_y, geometrys, road_name, rainwater_pattern, mouth_shape, storm_drain_one, storm_drain_two, grate_material, grate_spacing, grate_thickness, grate_depth, surface_elevation, garbage_to_intercept, deodorization_device, cutoff_equipment, drainage_type, construction_date, ownership_units, operational_units, data_sources, remark, data_gain_time, update_logo, model_id, z, create_user, create_time, create_dept, 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.gutterInletNumber != null and request.gutterInletNumber != ''"> and gutter_inlet_number = #{request.gutterInletNumber} </if> <if test="request.originalX != null and request.originalX != ''"> and original_x = #{request.originalX} </if> <if test="request.originalY != null and request.originalY != ''"> and original_y = #{request.originalY} </if> <if test="request.transfromX != null and request.transfromX != ''"> and transfrom_x = #{request.transfromX} </if> <if test="request.transfromY != null and request.transfromY != ''"> and transfrom_y = #{request.transfromY} </if> <if test="request.geometrys != null and request.geometrys != ''"> and geometrys = #{request.geometrys} </if> <if test="request.roadName != null and request.roadName != ''"> and road_name = #{request.roadName} </if> <if test="request.rainwaterPattern != null and request.rainwaterPattern != ''"> and rainwater_pattern = #{request.rainwaterPattern} </if> <if test="request.mouthShape != null and request.mouthShape != ''"> and mouth_shape = #{request.mouthShape} </if> <if test="request.stormDrainOne != null and request.stormDrainOne != ''"> and storm_drain_one = #{request.stormDrainOne} </if> <if test="request.stormDrainTwo != null and request.stormDrainTwo != ''"> and storm_drain_two = #{request.stormDrainTwo} </if> <if test="request.grateMaterial != null and request.grateMaterial != ''"> and grate_material = #{request.grateMaterial} </if> <if test="request.grateSpacing != null and request.grateSpacing != ''"> and grate_spacing = #{request.grateSpacing} </if> <if test="request.grateThickness != null and request.grateThickness != ''"> and grate_thickness = #{request.grateThickness} </if> <if test="request.grateDepth != null and request.grateDepth != ''"> and grate_depth = #{request.grateDepth} </if> <if test="request.surfaceElevation != null and request.surfaceElevation != ''"> and surface_elevation = #{request.surfaceElevation} </if> <if test="request.garbageToIntercept != null and request.garbageToIntercept != ''"> and garbage_to_intercept = #{request.garbageToIntercept} </if> <if test="request.deodorizationDevice != null and request.deodorizationDevice != ''"> and deodorization_device = #{request.deodorizationDevice} </if> <if test="request.cutoffEquipment != null and request.cutoffEquipment != ''"> and cutoff_equipment = #{request.cutoffEquipment} </if> <if test="request.drainageType != null and request.drainageType != ''"> and drainage_type = #{request.drainageType} </if> <if test="request.constructionDate != null and request.constructionDate != ''"> and construction_date = #{request.constructionDate} </if> <if test="request.ownershipUnits != null and request.ownershipUnits != ''"> and ownership_units = #{request.ownershipUnits} </if> <if test="request.operationalUnits != null and request.operationalUnits != ''"> and operational_units = #{request.operationalUnits} </if> <if test="request.dataSources != null and request.dataSources != ''"> and data_sources = #{request.dataSources} </if> <if test="request.remark != null and request.remark != ''"> and remark = #{request.remark} </if> <if test="request.dataGainTime != null and request.dataGainTime != ''"> and data_gain_time = #{request.dataGainTime} </if> <if test="request.updateLogo != null and request.updateLogo != ''"> and update_logo = #{request.updateLogo} </if> <if test="request.modelId != null and request.modelId != ''"> and model_id = #{request.modelId} </if> <if test="request.z != null and request.z != ''"> and z = #{request.z} </if> <if test="request.createUser != null and request.createUser != ''"> and create_user = #{request.createUser} </if> <if test="request.createTime != null and request.createTime != ''"> and create_time = #{request.createTime} </if> <if test="request.createDept != null and request.createDept != ''"> and create_dept = #{request.createDept} </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 pipe_network_rain_perforated_strainer_history where is_deleted = 0 <include refid="Where_Condition"/> </select> </mapper>