<?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.javaweb.platform.mapper.HoleInfoMapper">
|
|
<resultMap type="HoleInfo" id="HoleInfoResult">
|
<result property="id" column="id" />
|
<result property="projNo" column="proj_no" />
|
<result property="holeNo" column="hole_no" />
|
<result property="officeCode" column="office_code" />
|
<result property="holeElev" column="hole_elev" />
|
<result property="holeDepth" column="hole_depth" />
|
<result property="holeShift" column="hole_shift" />
|
<result property="holeType" column="hole_type" />
|
<result property="rigModel" column="rig_model" />
|
<result property="holeDiam" column="hole_diam" />
|
<result property="endDiam" column="end_diam" />
|
<result property="startDate" column="start_date" />
|
<result property="endDate" column="end_date" />
|
<result property="crownNo" column="crown_no" />
|
<result property="mileageMile" column="mileage_mile" />
|
<result property="holeHeightDif" column="hole_height_dif" />
|
<result property="roadLevel" column="road_level" />
|
<result property="grooveDepth" column="groove_depth" />
|
<result property="grooveLenth" column="groove_lenth" />
|
<result property="grooveWidth" column="groove_width" />
|
<result property="manholeDepth" column="manhole_depth" />
|
<result property="drillRig" column="drill_rig" />
|
<result property="drillComp" column="drill_comp" />
|
<result property="longitude" column="longitude" />
|
<result property="latitude" column="latitude" />
|
<result property="locationTime" column="location_time" />
|
<result property="remarkMsg" column="remark_msg" />
|
<result property="task" column="task" />
|
<result property="taskRemark" column="task_remark" />
|
<result property="state" column="state" />
|
<result property="progress" column="progress" />
|
<result property="createTime" column="create_time" />
|
<result property="updateTime" column="update_time" />
|
<result property="descriptorSign" column="descriptor_sign" />
|
<result property="drillerSign" column="driller_sign" />
|
<result property="measurerSign" column="measurer_sign" />
|
<result property="correctorSign" column="corrector_sign" />
|
<result property="procuratorSign" column="procurator_sign" />
|
<result property="descriptor" column="descriptor" />
|
<result property="descriptorNo" column="descriptor_no" />
|
<result property="driller" column="driller" />
|
<result property="drillerNo" column="driller_no" />
|
<result property="drillImg" column="drill_img" />
|
<result property="drillVideo" column="drill_video" />
|
<result property="delFlag" column="del_flag" />
|
<result property="drillrigno" column="drillRigNo" />
|
<result property="ids" column="ids" />
|
<result property="isHistory" column="is_history" />
|
</resultMap>
|
|
<sql id="selectHoleInfoVo">
|
select id, proj_no, hole_no, office_code, hole_elev, hole_depth, hole_shift, hole_type, rig_model, hole_diam, end_diam, start_date, end_date, crown_no, mileage_mile, hole_height_dif, road_level, groove_depth, groove_lenth, groove_width, manhole_depth, drill_rig, drill_comp, longitude, latitude, location_time, remark_msg, task, task_remark, state, progress, create_time, update_time, descriptor_sign, driller_sign, measurer_sign, corrector_sign, procurator_sign, descriptor, descriptor_no, driller, driller_no, drill_img, drill_video, del_flag, drillRigNo, ids, is_history from js_hole_info
|
</sql>
|
|
<select id="selectBynCircle" resultMap="HoleInfoResult">
|
<include refid="selectHoleInfoVo"/>
|
WHERE fun_distance(#{latitude},#{longitude} ,latitude,longitude) < #{radius} and descriptor is not null and descriptor is not null
|
</select>
|
|
<select id="selectHoleInfoList" parameterType="HoleInfo" resultMap="HoleInfoResult">
|
<include refid="selectHoleInfoVo"/>
|
<where>
|
<if test="projNo != null and projNo != ''"> and proj_no = #{projNo}</if>
|
<if test="holeNo != null and holeNo != ''"> and hole_no = #{holeNo}</if>
|
<if test="officeCode != null and officeCode != ''"> and office_code = #{officeCode}</if>
|
<if test="holeElev != null "> and hole_elev = #{holeElev}</if>
|
<if test="holeDepth != null "> and hole_depth = #{holeDepth}</if>
|
<if test="holeShift != null and holeShift != ''"> and hole_shift = #{holeShift}</if>
|
<if test="holeType != null and holeType != ''"> and hole_type = #{holeType}</if>
|
<if test="rigModel != null and rigModel != ''"> and rig_model = #{rigModel}</if>
|
<if test="holeDiam != null "> and hole_diam = #{holeDiam}</if>
|
<if test="endDiam != null "> and end_diam = #{endDiam}</if>
|
<if test="startDate != null "> and start_date = #{startDate}</if>
|
<if test="endDate != null "> and end_date = #{endDate}</if>
|
<if test="crownNo != null and crownNo != ''"> and crown_no = #{crownNo}</if>
|
<if test="mileageMile != null "> and mileage_mile = #{mileageMile}</if>
|
<if test="holeHeightDif != null "> and hole_height_dif = #{holeHeightDif}</if>
|
<if test="roadLevel != null "> and road_level = #{roadLevel}</if>
|
<if test="grooveDepth != null "> and groove_depth = #{grooveDepth}</if>
|
<if test="grooveLenth != null "> and groove_lenth = #{grooveLenth}</if>
|
<if test="grooveWidth != null "> and groove_width = #{grooveWidth}</if>
|
<if test="manholeDepth != null "> and manhole_depth = #{manholeDepth}</if>
|
<if test="drillRig != null and drillRig != ''"> and drill_rig = #{drillRig}</if>
|
<if test="drillComp != null and drillComp != ''"> and drill_comp = #{drillComp}</if>
|
<if test="longitude != null and longitude != ''"> and longitude = #{longitude}</if>
|
<if test="latitude != null and latitude != ''"> and latitude = #{latitude}</if>
|
<if test="locationTime != null "> and location_time = #{locationTime}</if>
|
<if test="remarkMsg != null and remarkMsg != ''"> and remark_msg = #{remarkMsg}</if>
|
<if test="task != null and task != ''"> and task = #{task}</if>
|
<if test="taskRemark != null and taskRemark != ''"> and task_remark = #{taskRemark}</if>
|
<if test="state != null and state != ''"> and state = #{state}</if>
|
<if test="progress != null and progress != ''"> and progress = #{progress}</if>
|
<if test="descriptorSign != null and descriptorSign != ''"> and descriptor_sign = #{descriptorSign}</if>
|
<if test="drillerSign != null and drillerSign != ''"> and driller_sign = #{drillerSign}</if>
|
<if test="measurerSign != null and measurerSign != ''"> and measurer_sign = #{measurerSign}</if>
|
<if test="correctorSign != null and correctorSign != ''"> and corrector_sign = #{correctorSign}</if>
|
<if test="procuratorSign != null and procuratorSign != ''"> and procurator_sign = #{procuratorSign}</if>
|
<if test="descriptor != null and descriptor != ''"> and descriptor = #{descriptor}</if>
|
and descriptor is not null
|
<if test="descriptorNo != null and descriptorNo != ''"> and descriptor_no = #{descriptorNo}</if>
|
<if test="driller != null and driller != ''"> and driller = #{driller}</if>
|
<if test="drillerNo != null and drillerNo != ''"> and driller_no = #{drillerNo}</if>
|
<if test="drillImg != null and drillImg != ''"> and drill_img = #{drillImg}</if>
|
<if test="drillVideo != null and drillVideo != ''"> and drill_video = #{drillVideo}</if>
|
<if test="drillrigno != null and drillrigno != ''"> and drillRigNo = #{drillrigno}</if>
|
<if test="ids != null and ids != ''"> and ids = #{ids}</if>
|
<if test="isHistory != null and isHistory != ''"> and is_history = #{isHistory}</if>
|
</where>
|
</select>
|
|
<select id="selectHoleInfoById" parameterType="String" resultMap="HoleInfoResult">
|
<include refid="selectHoleInfoVo"/>
|
where id = #{id}
|
</select>
|
|
<select id="selectHoleInfoByProject" parameterType="HoleInfo" resultType="int">
|
select count(proj_no) from js_hole_info where proj_no = #{projNo} and descriptor is not null
|
</select>
|
|
<insert id="insertHoleInfo" parameterType="HoleInfo">
|
insert into js_hole_info
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="id != null and id != ''">id,</if>
|
<if test="projNo != null and projNo != ''">proj_no,</if>
|
<if test="holeNo != null and holeNo != ''">hole_no,</if>
|
<if test="officeCode != null and officeCode != ''">office_code,</if>
|
<if test="holeElev != null ">hole_elev,</if>
|
<if test="holeDepth != null ">hole_depth,</if>
|
<if test="holeShift != null and holeShift != ''">hole_shift,</if>
|
<if test="holeType != null and holeType != ''">hole_type,</if>
|
<if test="rigModel != null and rigModel != ''">rig_model,</if>
|
<if test="holeDiam != null ">hole_diam,</if>
|
<if test="endDiam != null ">end_diam,</if>
|
<if test="startDate != null ">start_date,</if>
|
<if test="endDate != null ">end_date,</if>
|
<if test="crownNo != null and crownNo != ''">crown_no,</if>
|
<if test="mileageMile != null ">mileage_mile,</if>
|
<if test="holeHeightDif != null ">hole_height_dif,</if>
|
<if test="roadLevel != null ">road_level,</if>
|
<if test="grooveDepth != null ">groove_depth,</if>
|
<if test="grooveLenth != null ">groove_lenth,</if>
|
<if test="grooveWidth != null ">groove_width,</if>
|
<if test="manholeDepth != null ">manhole_depth,</if>
|
<if test="drillRig != null and drillRig != ''">drill_rig,</if>
|
<if test="drillComp != null and drillComp != ''">drill_comp,</if>
|
<if test="longitude != null and longitude != ''">longitude,</if>
|
<if test="latitude != null and latitude != ''">latitude,</if>
|
<if test="locationTime != null ">location_time,</if>
|
<if test="remarkMsg != null and remarkMsg != ''">remark_msg,</if>
|
<if test="task != null and task != ''">task,</if>
|
<if test="taskRemark != null and taskRemark != ''">task_remark,</if>
|
<if test="state != null and state != ''">state,</if>
|
<if test="progress != null and progress != ''">progress,</if>
|
<if test="createTime != null ">create_time,</if>
|
<if test="updateTime != null ">update_time,</if>
|
<if test="descriptorSign != null and descriptorSign != ''">descriptor_sign,</if>
|
<if test="drillerSign != null and drillerSign != ''">driller_sign,</if>
|
<if test="measurerSign != null and measurerSign != ''">measurer_sign,</if>
|
<if test="correctorSign != null and correctorSign != ''">corrector_sign,</if>
|
<if test="procuratorSign != null and procuratorSign != ''">procurator_sign,</if>
|
<if test="descriptor != null and descriptor != ''">descriptor,</if>
|
<if test="descriptorNo != null and descriptorNo != ''">descriptor_no,</if>
|
<if test="driller != null and driller != ''">driller,</if>
|
<if test="drillerNo != null and drillerNo != ''">driller_no,</if>
|
<if test="drillImg != null and drillImg != ''">drill_img,</if>
|
<if test="drillVideo != null and drillVideo != ''">drill_video,</if>
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
<if test="drillrigno != null and drillrigno != ''">drillRigNo,</if>
|
<if test="ids != null and ids != ''">ids,</if>
|
<if test="isHistory != null and isHistory != ''">is_history,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="id != null and id != ''">#{id},</if>
|
<if test="projNo != null and projNo != ''">#{projNo},</if>
|
<if test="holeNo != null and holeNo != ''">#{holeNo},</if>
|
<if test="officeCode != null and officeCode != ''">#{officeCode},</if>
|
<if test="holeElev != null ">#{holeElev},</if>
|
<if test="holeDepth != null ">#{holeDepth},</if>
|
<if test="holeShift != null and holeShift != ''">#{holeShift},</if>
|
<if test="holeType != null and holeType != ''">#{holeType},</if>
|
<if test="rigModel != null and rigModel != ''">#{rigModel},</if>
|
<if test="holeDiam != null ">#{holeDiam},</if>
|
<if test="endDiam != null ">#{endDiam},</if>
|
<if test="startDate != null ">#{startDate},</if>
|
<if test="endDate != null ">#{endDate},</if>
|
<if test="crownNo != null and crownNo != ''">#{crownNo},</if>
|
<if test="mileageMile != null ">#{mileageMile},</if>
|
<if test="holeHeightDif != null ">#{holeHeightDif},</if>
|
<if test="roadLevel != null ">#{roadLevel},</if>
|
<if test="grooveDepth != null ">#{grooveDepth},</if>
|
<if test="grooveLenth != null ">#{grooveLenth},</if>
|
<if test="grooveWidth != null ">#{grooveWidth},</if>
|
<if test="manholeDepth != null ">#{manholeDepth},</if>
|
<if test="drillRig != null and drillRig != ''">#{drillRig},</if>
|
<if test="drillComp != null and drillComp != ''">#{drillComp},</if>
|
<if test="longitude != null and longitude != ''">#{longitude},</if>
|
<if test="latitude != null and latitude != ''">#{latitude},</if>
|
<if test="locationTime != null ">#{locationTime},</if>
|
<if test="remarkMsg != null and remarkMsg != ''">#{remarkMsg},</if>
|
<if test="task != null and task != ''">#{task},</if>
|
<if test="taskRemark != null and taskRemark != ''">#{taskRemark},</if>
|
<if test="state != null and state != ''">#{state},</if>
|
<if test="progress != null and progress != ''">#{progress},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
<if test="updateTime != null ">#{updateTime},</if>
|
<if test="descriptorSign != null and descriptorSign != ''">#{descriptorSign},</if>
|
<if test="drillerSign != null and drillerSign != ''">#{drillerSign},</if>
|
<if test="measurerSign != null and measurerSign != ''">#{measurerSign},</if>
|
<if test="correctorSign != null and correctorSign != ''">#{correctorSign},</if>
|
<if test="procuratorSign != null and procuratorSign != ''">#{procuratorSign},</if>
|
<if test="descriptor != null and descriptor != ''">#{descriptor},</if>
|
<if test="descriptorNo != null and descriptorNo != ''">#{descriptorNo},</if>
|
<if test="driller != null and driller != ''">#{driller},</if>
|
<if test="drillerNo != null and drillerNo != ''">#{drillerNo},</if>
|
<if test="drillImg != null and drillImg != ''">#{drillImg},</if>
|
<if test="drillVideo != null and drillVideo != ''">#{drillVideo},</if>
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
<if test="drillrigno != null and drillrigno != ''">#{drillrigno},</if>
|
<if test="ids != null and ids != ''">#{ids},</if>
|
<if test="isHistory != null and isHistory != ''">#{isHistory},</if>
|
</trim>
|
</insert>
|
|
<update id="updateHoleInfo" parameterType="HoleInfo">
|
update js_hole_info
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="projNo != null and projNo != ''">proj_no = #{projNo},</if>
|
<if test="holeNo != null and holeNo != ''">hole_no = #{holeNo},</if>
|
<if test="officeCode != null and officeCode != ''">office_code = #{officeCode},</if>
|
<if test="holeElev != null ">hole_elev = #{holeElev},</if>
|
<if test="holeDepth != null ">hole_depth = #{holeDepth},</if>
|
<if test="holeShift != null and holeShift != ''">hole_shift = #{holeShift},</if>
|
<if test="holeType != null and holeType != ''">hole_type = #{holeType},</if>
|
<if test="rigModel != null and rigModel != ''">rig_model = #{rigModel},</if>
|
<if test="holeDiam != null ">hole_diam = #{holeDiam},</if>
|
<if test="endDiam != null ">end_diam = #{endDiam},</if>
|
<if test="startDate != null ">start_date = #{startDate},</if>
|
<if test="endDate != null ">end_date = #{endDate},</if>
|
<if test="crownNo != null and crownNo != ''">crown_no = #{crownNo},</if>
|
<if test="mileageMile != null ">mileage_mile = #{mileageMile},</if>
|
<if test="holeHeightDif != null ">hole_height_dif = #{holeHeightDif},</if>
|
<if test="roadLevel != null ">road_level = #{roadLevel},</if>
|
<if test="grooveDepth != null ">groove_depth = #{grooveDepth},</if>
|
<if test="grooveLenth != null ">groove_lenth = #{grooveLenth},</if>
|
<if test="grooveWidth != null ">groove_width = #{grooveWidth},</if>
|
<if test="manholeDepth != null ">manhole_depth = #{manholeDepth},</if>
|
<if test="drillRig != null and drillRig != ''">drill_rig = #{drillRig},</if>
|
<if test="drillComp != null and drillComp != ''">drill_comp = #{drillComp},</if>
|
<if test="longitude != null and longitude != ''">longitude = #{longitude},</if>
|
<if test="latitude != null and latitude != ''">latitude = #{latitude},</if>
|
<if test="locationTime != null ">location_time = #{locationTime},</if>
|
<if test="remarkMsg != null and remarkMsg != ''">remark_msg = #{remarkMsg},</if>
|
<if test="task != null and task != ''">task = #{task},</if>
|
<if test="taskRemark != null and taskRemark != ''">task_remark = #{taskRemark},</if>
|
<if test="state != null and state != ''">state = #{state},</if>
|
<if test="progress != null and progress != ''">progress = #{progress},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
<if test="descriptorSign != null and descriptorSign != ''">descriptor_sign = #{descriptorSign},</if>
|
<if test="drillerSign != null and drillerSign != ''">driller_sign = #{drillerSign},</if>
|
<if test="measurerSign != null and measurerSign != ''">measurer_sign = #{measurerSign},</if>
|
<if test="correctorSign != null and correctorSign != ''">corrector_sign = #{correctorSign},</if>
|
<if test="procuratorSign != null and procuratorSign != ''">procurator_sign = #{procuratorSign},</if>
|
<if test="descriptor != null and descriptor != ''">descriptor = #{descriptor},</if>
|
<if test="descriptorNo != null and descriptorNo != ''">descriptor_no = #{descriptorNo},</if>
|
<if test="driller != null and driller != ''">driller = #{driller},</if>
|
<if test="drillerNo != null and drillerNo != ''">driller_no = #{drillerNo},</if>
|
<if test="drillImg != null and drillImg != ''">drill_img = #{drillImg},</if>
|
<if test="drillVideo != null and drillVideo != ''">drill_video = #{drillVideo},</if>
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
<if test="drillrigno != null and drillrigno != ''">drillRigNo = #{drillrigno},</if>
|
<if test="ids != null and ids != ''">ids = #{ids},</if>
|
<if test="isHistory != null and isHistory != ''">is_history = #{isHistory},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteHoleInfoById" parameterType="String">
|
delete from js_hole_info where id = #{id}
|
</delete>
|
|
<delete id="deleteHoleInfoByIds" parameterType="String">
|
delete from js_hole_info where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|