<?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.geo.mapper.HoleYantuMapper">
|
|
<resultMap type="HoleYantu" id="HoleYantuResult">
|
<result property="ids" column="ids" />
|
<result property="code" column="code" />
|
<result property="projectId" column="project_id" />
|
<result property="holeId" column="hole_id" />
|
<result property="frequencyType" column="frequency_type" />
|
<result property="layerName" column="layer_name" />
|
<result property="causes" column="causes" />
|
<result property="era" column="era" />
|
<result property="beginDepth" column="begin_depth" />
|
<result property="endDepth" column="end_depth" />
|
<result property="title" column="title" />
|
<result property="createTime" column="create_time" />
|
<result property="recordPerson" column="record_person" />
|
<result property="recordPersonName" column="record_person_name" />
|
<result property="description" column="description" />
|
<result property="longitude" column="longitude" />
|
<result property="latitude" column="latitude" />
|
<result property="gpsTime" column="gps_time" />
|
<result property="isDelete" column="is_delete" />
|
<result property="position" column="position" />
|
<result property="locateTime" column="locate_time" />
|
<result property="reason" column="reason" />
|
<result property="pic1" column="pic1" />
|
<result property="pic2" column="pic2" />
|
<result property="pic3" column="pic3" />
|
<result property="zycf" column="zycf" />
|
<result property="cycf" column="cycf" />
|
<result property="djnd" column="djnd" />
|
<result property="msd" column="msd" />
|
<result property="jyx" column="jyx" />
|
<result property="wzcf" column="wzcf" />
|
<result property="ys" column="ys" />
|
<result property="zt" column="zt" />
|
<result property="bhw" column="bhw" />
|
<result property="jc" column="jc" />
|
<result property="sd" column="sd" />
|
<result property="ftfchd" column="ftfchd" />
|
<result property="fzntfchd" column="fzntfchd" />
|
<result property="kx" column="kx" />
|
<result property="czjl" column="czjl" />
|
<result property="klzc" column="klzc" />
|
<result property="hsl" column="hsl" />
|
<result property="tcw" column="tcw" />
|
<result property="klxz" column="klxz" />
|
<result property="klpl" column="klpl" />
|
<result property="kljp" column="kljp" />
|
<result property="ybljx" column="ybljx" />
|
<result property="ybljd" column="ybljd" />
|
<result property="jdljx" column="jdljx" />
|
<result property="jdljd" column="jdljd" />
|
<result property="zdlj" column="zdlj" />
|
<result property="mycf" column="mycf" />
|
<result property="fhcd" column="fhcd" />
|
<result property="kwzc" column="kwzc" />
|
<result property="jycd" column="jycd" />
|
<result property="wzcd" column="wzcd" />
|
<result property="jbzldj" column="jbzldj" />
|
<result property="kwx" column="kwx" />
|
<result property="jglx" column="jglx" />
|
<!--select子查询, column 传给子查询的参数-->
|
<!-- <collection property="holeMediaList" ofType="com.javaweb.geo.domain.HoleMedia" select="queryDetail" column="ids" />-->
|
</resultMap>
|
|
<resultMap type="HoleMedia" id="HoleMediaResult">
|
<result property="ids" column="ids" />
|
<result property="recordId" column="record_id" />
|
<result property="projectId" column="project_id" />
|
<result property="name" column="name" />
|
<result property="createTime" column="create_time" jdbcType="TIMESTAMP" />
|
<result property="type" column="type" />
|
<result property="internetPath" column="internet_path" />
|
<result property="createUser" column="create_user" />
|
<result property="uploadUser" column="upload_user" />
|
</resultMap>
|
|
<!--子查询的sql-->
|
<select id="queryDetail" resultMap="HoleMediaResult">
|
SELECT * FROM js_hole_media where record_id = #{ids}
|
</select>
|
|
<sql id="selectHoleYantuVo">
|
select ids,code, project_id, hole_id, frequency_type, layer_name, causes, era, begin_depth, end_depth, title, create_time, record_person, description, longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3, zycf, cycf, djnd, msd, jyx, wzcf, ys, zt, bhw, jc, sd, ftfchd, fzntfchd, kx, czjl, klzc, hsl, tcw, klxz, klpl, kljp, ybljx, ybljd, jdljx, jdljd, zdlj, mycf, fhcd, kwzc, jycd, wzcd, jbzldj, kwx, jglx from js_hole_yantu
|
</sql>
|
|
<select id="selectHoleYantuList" parameterType="HoleYantu" resultMap="HoleYantuResult">
|
select
|
a.ids, a.code, a.project_id, a.hole_id, a.frequency_type, a.layer_name, a.causes, era, a.begin_depth,
|
a.end_depth, a.title, a.create_time, a.record_person, u.real_name AS record_person_name, a.description,
|
a.longitude, a.latitude, a.gps_time, a.is_delete, a.position, a.locate_time, a.reason, a.pic1, a.pic2,
|
a.pic3, a.zycf, a.cycf, a.djnd, a.msd, a.jyx, a.wzcf, a.ys, a.zt, a.bhw, a.jc, a.sd, a.ftfchd, a.fzntfchd, a.kx,
|
a.czjl, a.klzc, a.hsl, a.tcw, a.klxz, a.klpl, a.kljp, a.ybljx, a.ybljd, a.jdljx, a.jdljd, a.zdlj, a.mycf, a.fhcd, a.kwzc, a.jycd, a.wzcd, a.jbzldj, a.kwx, a.jglx
|
from js_hole_yantu a LEFT JOIN js_company_user u ON a.record_person = u.ids
|
<where>
|
<if test="code != null and code != ''"> and a.code = #{code}</if>
|
<if test="projectId != null and projectId != ''"> and a.project_id = #{projectId}</if>
|
<if test="holeId != null and holeId != ''"> and a.hole_id = #{holeId}</if>
|
<if test="frequencyType != null and frequencyType != ''"> and a.frequency_type = #{frequencyType}</if>
|
<if test="layerName != null and layerName != ''"> and a.layer_name like concat('%', #{layerName}, '%')</if>
|
<if test="causes != null and causes != ''"> and a.causes = #{causes}</if>
|
<if test="era != null and era != ''"> and a.era = #{era}</if>
|
<if test="beginDepth != null "> and a.begin_depth = #{beginDepth}</if>
|
<if test="endDepth != null "> and a.end_depth = #{endDepth}</if>
|
<if test="title != null and title != ''"> and a.title = #{title}</if>
|
<if test="recordPerson != null and recordPerson != ''"> and a.record_person = #{recordPerson}</if>
|
<if test="description != null and description != ''"> and a.description = #{description}</if>
|
<if test="longitude != null "> and a.longitude = #{longitude}</if>
|
<if test="latitude != null "> and a.latitude = #{latitude}</if>
|
<if test="gpsTime != null "> and a.gps_time = #{gpsTime}</if>
|
<if test="isDelete != null and isDelete != ''"> and a.is_delete = #{isDelete}</if>
|
<if test="position != null and position != ''"> and a.position = #{position}</if>
|
<if test="locateTime != null "> and a.locate_time = #{locateTime}</if>
|
<if test="reason != null and reason != ''"> and a.reason = #{reason}</if>
|
<if test="pic1 != null and pic1 != ''"> and a.pic1 = #{pic1}</if>
|
<if test="pic2 != null and pic2 != ''"> and a.pic2 = #{pic2}</if>
|
<if test="pic3 != null and pic3 != ''"> and a.pic3 = #{pic3}</if>
|
<if test="zycf != null and zycf != ''"> and a.zycf = #{zycf}</if>
|
<if test="cycf != null and cycf != ''"> and a.cycf = #{cycf}</if>
|
<if test="djnd != null and djnd != ''"> and a.djnd = #{djnd}</if>
|
<if test="msd != null and msd != ''"> and a.msd = #{msd}</if>
|
<if test="jyx != null and jyx != ''"> and a.jyx = #{jyx}</if>
|
<if test="wzcf != null and wzcf != ''"> and a.wzcf = #{wzcf}</if>
|
<if test="ys != null and ys != ''"> and a.ys = #{ys}</if>
|
<if test="zt != null and zt != ''"> and a.zt = #{zt}</if>
|
<if test="bhw != null and bhw != ''"> and a.bhw = #{bhw}</if>
|
<if test="jc != null and jc != ''"> and a.jc = #{jc}</if>
|
<if test="sd != null and sd != ''"> and a.sd = #{sd}</if>
|
<if test="ftfchd != null and ftfchd != ''"> and a.ftfchd = #{ftfchd}</if>
|
<if test="fzntfchd != null and fzntfchd != ''"> and a.fzntfchd = #{fzntfchd}</if>
|
<if test="kx != null and kx != ''"> and a.kx = #{kx}</if>
|
<if test="czjl != null and czjl != ''"> and a.czjl = #{czjl}</if>
|
<if test="klzc != null and klzc != ''"> and a.klzc = #{klzc}</if>
|
<if test="hsl != null and hsl != ''"> and a.hsl = #{hsl}</if>
|
<if test="tcw != null and tcw != ''"> and a.tcw = #{tcw}</if>
|
<if test="klxz != null and klxz != ''"> and a.klxz = #{klxz}</if>
|
<if test="klpl != null and klpl != ''"> and a.klpl = #{klpl}</if>
|
<if test="kljp != null and kljp != ''"> and a.kljp = #{kljp}</if>
|
<if test="ybljx != null and ybljx != ''"> and a.ybljx = #{ybljx}</if>
|
<if test="ybljd != null and ybljd != ''"> and a.ybljd = #{ybljd}</if>
|
<if test="jdljx != null and jdljx != ''"> and a.jdljx = #{jdljx}</if>
|
<if test="jdljd != null and jdljd != ''"> and a.jdljd = #{jdljd}</if>
|
<if test="zdlj != null and zdlj != ''"> and a.zdlj = #{zdlj}</if>
|
<if test="mycf != null and mycf != ''"> and a.mycf = #{mycf}</if>
|
<if test="fhcd != null and fhcd != ''"> and a.fhcd = #{fhcd}</if>
|
<if test="kwzc != null and kwzc != ''"> and a.kwzc = #{kwzc}</if>
|
<if test="jycd != null and jycd != ''"> and a.jycd = #{jycd}</if>
|
<if test="wzcd != null and wzcd != ''"> and a.wzcd = #{wzcd}</if>
|
<if test="jbzldj != null and jbzldj != ''"> and a.jbzldj = #{jbzldj}</if>
|
<if test="kwx != null and kwx != ''"> and a.kwx = #{kwx}</if>
|
<if test="jglx != null and jglx != ''"> and a.jglx = #{jglx}</if>
|
</where>
|
order by a.code ASC,a.end_depth ASC
|
</select>
|
|
|
<select id="selectTongjiHoleYantuList" parameterType="HoleYantu" resultMap="HoleYantuResult">
|
select
|
a.frequency_type, a.begin_depth, a.end_depth
|
from js_hole_yantu a where a.project_id = #{projectId}
|
order by end_depth ASC
|
</select>
|
|
|
<select id="selectHoleYantuById" parameterType="String" resultMap="HoleYantuResult">
|
SELECT
|
a.ids,
|
a.code,
|
a.project_id,
|
a.hole_id,
|
a.frequency_type,
|
a.layer_name,
|
a.causes,
|
a.era,
|
a.begin_depth,
|
a.end_depth,
|
a.title,
|
a.create_time,
|
a.record_person,
|
u.real_name AS record_person_name,
|
a.description,
|
a.longitude,
|
a.latitude,
|
a.gps_time,
|
a.is_delete,
|
a.position,
|
a.locate_time,
|
a.reason,
|
a.pic1,
|
a.pic2,
|
a.pic3,
|
a.zycf,
|
a.cycf,
|
a.djnd,
|
a.msd,
|
a.jyx,
|
a.wzcf,
|
a.ys,
|
a.zt,
|
a.bhw,
|
a.jc,
|
a.sd,
|
a.ftfchd,
|
a.fzntfchd,
|
a.kx,
|
a.czjl,
|
a.klzc,
|
a.hsl,
|
a.tcw,
|
a.klxz,
|
a.klpl,
|
a.kljp,
|
a.ybljx,
|
a.ybljd,
|
a.jdljx,
|
a.jdljd,
|
a.zdlj,
|
a.mycf,
|
a.fhcd,
|
a.kwzc,
|
a.jycd,
|
a.wzcd,
|
a.jbzldj,
|
a.kwx,
|
a.jglx
|
FROM js_hole_yantu a LEFT JOIN js_company_user u ON a.record_person = u.ids WHERE a.ids = #{ids}
|
</select>
|
|
<select id="selectHoleYantuByProject0" resultMap="HoleYantuResult">
|
<include refid="selectHoleYantuVo"/> WHERE project_id = any(SELECT ids FROM js_project WHERE `status` = '0' AND is_deleted = '0')
|
</select>
|
|
<select id="selectHoleYantuByProject1" resultMap="HoleYantuResult">
|
<include refid="selectHoleYantuVo"/> WHERE project_id = any(SELECT ids FROM js_project WHERE `status` = '1' AND is_deleted = '0')
|
</select>
|
|
<select id="selectHoleYantuListByHoleId" parameterType="String" resultMap="HoleYantuResult">
|
<include refid="selectHoleYantuVo"/> WHERE hole_id = #{holeId} ORDER BY end_depth ASC
|
</select>
|
|
<select id="selectHoleYantuByProjectId" resultMap="HoleYantuResult">
|
<include refid="selectHoleYantuVo"/> WHERE project_id = #{projectId}
|
</select>
|
|
<insert id="insertHoleYantu" parameterType="HoleYantu">
|
insert into js_hole_yantu
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<if test="ids != null and ids != ''">ids,</if>
|
<if test="code != null and code != ''">code,</if>
|
<if test="projectId != null and projectId != ''">project_id,</if>
|
<if test="holeId != null and holeId != ''">hole_id,</if>
|
<if test="frequencyType != null and frequencyType != ''">frequency_type,</if>
|
<if test="layerName != null and layerName != ''">layer_name,</if>
|
<if test="causes != null and causes != ''">causes,</if>
|
<if test="era != null and era != ''">era,</if>
|
<if test="beginDepth != null ">begin_depth,</if>
|
<if test="endDepth != null ">end_depth,</if>
|
<if test="title != null and title != ''">title,</if>
|
<if test="createTime != null ">create_time,</if>
|
<if test="recordPerson != null and recordPerson != ''">record_person,</if>
|
<if test="description != null and description != ''">description,</if>
|
<if test="longitude != null ">longitude,</if>
|
<if test="latitude != null ">latitude,</if>
|
<if test="gpsTime != null ">gps_time,</if>
|
<if test="isDelete != null and isDelete != ''">is_delete,</if>
|
<if test="position != null and position != ''">position,</if>
|
<if test="locateTime != null ">locate_time,</if>
|
<if test="reason != null and reason != ''">reason,</if>
|
<if test="pic1 != null and pic1 != ''">pic1,</if>
|
<if test="pic2 != null and pic2 != ''">pic2,</if>
|
<if test="pic3 != null and pic3 != ''">pic3,</if>
|
<if test="zycf != null and zycf != ''">zycf,</if>
|
<if test="cycf != null and cycf != ''">cycf,</if>
|
<if test="djnd != null and djnd != ''">djnd,</if>
|
<if test="msd != null and msd != ''">msd,</if>
|
<if test="jyx != null and jyx != ''">jyx,</if>
|
<if test="wzcf != null and wzcf != ''">wzcf,</if>
|
<if test="ys != null and ys != ''">ys,</if>
|
<if test="zt != null and zt != ''">zt,</if>
|
<if test="bhw != null and bhw != ''">bhw,</if>
|
<if test="jc != null and jc != ''">jc,</if>
|
<if test="sd != null and sd != ''">sd,</if>
|
<if test="ftfchd != null and ftfchd != ''">ftfchd,</if>
|
<if test="fzntfchd != null and fzntfchd != ''">fzntfchd,</if>
|
<if test="kx != null and kx != ''">kx,</if>
|
<if test="czjl != null and czjl != ''">czjl,</if>
|
<if test="klzc != null and klzc != ''">klzc,</if>
|
<if test="hsl != null and hsl != ''">hsl,</if>
|
<if test="tcw != null and tcw != ''">tcw,</if>
|
<if test="klxz != null and klxz != ''">klxz,</if>
|
<if test="klpl != null and klpl != ''">klpl,</if>
|
<if test="kljp != null and kljp != ''">kljp,</if>
|
<if test="ybljx != null and ybljx != ''">ybljx,</if>
|
<if test="ybljd != null and ybljd != ''">ybljd,</if>
|
<if test="jdljx != null and jdljx != ''">jdljx,</if>
|
<if test="jdljd != null and jdljd != ''">jdljd,</if>
|
<if test="zdlj != null and zdlj != ''">zdlj,</if>
|
<if test="mycf != null and mycf != ''">mycf,</if>
|
<if test="fhcd != null and fhcd != ''">fhcd,</if>
|
<if test="kwzc != null and kwzc != ''">kwzc,</if>
|
<if test="jycd != null and jycd != ''">jycd,</if>
|
<if test="wzcd != null and wzcd != ''">wzcd,</if>
|
<if test="jbzldj != null and jbzldj != ''">jbzldj,</if>
|
<if test="kwx != null and kwx != ''">kwx,</if>
|
<if test="jglx != null and jglx != ''">jglx,</if>
|
</trim>
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
<if test="ids != null and ids != ''">#{ids},</if>
|
<if test="code != null and code != ''">#{code},</if>
|
<if test="projectId != null and projectId != ''">#{projectId},</if>
|
<if test="holeId != null and holeId != ''">#{holeId},</if>
|
<if test="frequencyType != null and frequencyType != ''">#{frequencyType},</if>
|
<if test="layerName != null and layerName != ''">#{layerName},</if>
|
<if test="causes != null and causes != ''">#{causes},</if>
|
<if test="era != null and era != ''">#{era},</if>
|
<if test="beginDepth != null ">#{beginDepth},</if>
|
<if test="endDepth != null ">#{endDepth},</if>
|
<if test="title != null and title != ''">#{title},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
<if test="recordPerson != null and recordPerson != ''">#{recordPerson},</if>
|
<if test="description != null and description != ''">#{description},</if>
|
<if test="longitude != null ">#{longitude},</if>
|
<if test="latitude != null ">#{latitude},</if>
|
<if test="gpsTime != null ">#{gpsTime},</if>
|
<if test="isDelete != null and isDelete != ''">#{isDelete},</if>
|
<if test="position != null and position != ''">#{position},</if>
|
<if test="locateTime != null ">#{locateTime},</if>
|
<if test="reason != null and reason != ''">#{reason},</if>
|
<if test="pic1 != null and pic1 != ''">#{pic1},</if>
|
<if test="pic2 != null and pic2 != ''">#{pic2},</if>
|
<if test="pic3 != null and pic3 != ''">#{pic3},</if>
|
<if test="zycf != null and zycf != ''">#{zycf},</if>
|
<if test="cycf != null and cycf != ''">#{cycf},</if>
|
<if test="djnd != null and djnd != ''">#{djnd},</if>
|
<if test="msd != null and msd != ''">#{msd},</if>
|
<if test="jyx != null and jyx != ''">#{jyx},</if>
|
<if test="wzcf != null and wzcf != ''">#{wzcf},</if>
|
<if test="ys != null and ys != ''">#{ys},</if>
|
<if test="zt != null and zt != ''">#{zt},</if>
|
<if test="bhw != null and bhw != ''">#{bhw},</if>
|
<if test="jc != null and jc != ''">#{jc},</if>
|
<if test="sd != null and sd != ''">#{sd},</if>
|
<if test="ftfchd != null and ftfchd != ''">#{ftfchd},</if>
|
<if test="fzntfchd != null and fzntfchd != ''">#{fzntfchd},</if>
|
<if test="kx != null and kx != ''">#{kx},</if>
|
<if test="czjl != null and czjl != ''">#{czjl},</if>
|
<if test="klzc != null and klzc != ''">#{klzc},</if>
|
<if test="hsl != null and hsl != ''">#{hsl},</if>
|
<if test="tcw != null and tcw != ''">#{tcw},</if>
|
<if test="klxz != null and klxz != ''">#{klxz},</if>
|
<if test="klpl != null and klpl != ''">#{klpl},</if>
|
<if test="kljp != null and kljp != ''">#{kljp},</if>
|
<if test="ybljx != null and ybljx != ''">#{ybljx},</if>
|
<if test="ybljd != null and ybljd != ''">#{ybljd},</if>
|
<if test="jdljx != null and jdljx != ''">#{jdljx},</if>
|
<if test="jdljd != null and jdljd != ''">#{jdljd},</if>
|
<if test="zdlj != null and zdlj != ''">#{zdlj},</if>
|
<if test="mycf != null and mycf != ''">#{mycf},</if>
|
<if test="fhcd != null and fhcd != ''">#{fhcd},</if>
|
<if test="kwzc != null and kwzc != ''">#{kwzc},</if>
|
<if test="jycd != null and jycd != ''">#{jycd},</if>
|
<if test="wzcd != null and wzcd != ''">#{wzcd},</if>
|
<if test="jbzldj != null and jbzldj != ''">#{jbzldj},</if>
|
<if test="kwx != null and kwx != ''">#{kwx},</if>
|
<if test="jglx != null and jglx != ''">#{jglx},</if>
|
</trim>
|
</insert>
|
|
<insert id="insertHoleYantuList" parameterType="java.util.List">
|
insert into js_hole_yantu
|
(ids,code, project_id, hole_id, frequency_type, layer_name, causes, era, begin_depth, end_depth, title, create_time, record_person, description,
|
longitude, latitude, gps_time, is_delete, position, locate_time, reason, pic1, pic2, pic3, zycf, cycf, djnd, msd, jyx, wzcf, ys, zt, bhw, jc, sd,
|
ftfchd, fzntfchd, kx, czjl, klzc, hsl, tcw, klxz, klpl, kljp, ybljx, ybljd, jdljx, jdljd, zdlj, mycf, fhcd, kwzc, jycd, wzcd, jbzldj, kwx, jglx)
|
VALUES
|
<foreach collection="list" item="item" separator =",">
|
(#{item.ids}, #{item.code}, #{item.projectId},#{item.holeId},#{item.frequencyType},#{item.layerName},#{item.causes},#{item.era},#{item.beginDepth},#{item.endDepth},#{item.title},#{item.createTime},#{item.recordPerson},#{item.description},
|
#{item.longitude},#{item.latitude},#{item.gpsTime},#{item.isDelete},#{item.position},#{item.locateTime},#{item.reason},#{item.pic1},#{item.pic2},#{item.pic3},
|
#{item.zycf},#{item.cycf},#{item.djnd},#{item.msd},#{item.jyx},#{item.wzcf},#{item.ys},#{item.zt},#{item.bhw},#{item.jc},#{item.sd},#{item.ftfchd},#{item.fzntfchd},
|
#{item.kx},#{item.czjl},#{item.klzc},#{item.hsl},#{item.tcw},#{item.klxz},#{item.klpl},#{item.kljp},#{item.ybljx},#{item.ybljd},#{item.jdljx},#{item.jdljd},#{item.zdlj},
|
#{item.mycf},#{item.fhcd},#{item.kwzc},#{item.jycd},#{item.wzcd},#{item.jbzldj},#{item.kwx},#{item.jglx}
|
)
|
</foreach >
|
</insert>
|
|
<update id="updateHoleYantu" parameterType="HoleYantu">
|
update js_hole_yantu
|
<trim prefix="SET" suffixOverrides=",">
|
<if test="code != null and code != ''">code = #{code},</if>
|
<if test="projectId != null and projectId != ''">project_id = #{projectId},</if>
|
<if test="holeId != null and holeId != ''">hole_id = #{holeId},</if>
|
<if test="frequencyType != null and frequencyType != ''">frequency_type = #{frequencyType},</if>
|
<if test="layerName != null and layerName != ''">layer_name = #{layerName},</if>
|
<if test="causes != null and causes != ''">causes = #{causes},</if>
|
<if test="era != null and era != ''">era = #{era},</if>
|
<if test="beginDepth != null ">begin_depth = #{beginDepth},</if>
|
<if test="endDepth != null ">end_depth = #{endDepth},</if>
|
<if test="title != null and title != ''">title = #{title},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="recordPerson != null and recordPerson != ''">record_person = #{recordPerson},</if>
|
<if test="description != null and description != ''">description = #{description},</if>
|
<if test="longitude != null ">longitude = #{longitude},</if>
|
<if test="latitude != null ">latitude = #{latitude},</if>
|
<if test="gpsTime != null ">gps_time = #{gpsTime},</if>
|
<if test="isDelete != null and isDelete != ''">is_delete = #{isDelete},</if>
|
<if test="position != null and position != ''">position = #{position},</if>
|
<if test="locateTime != null ">locate_time = #{locateTime},</if>
|
<if test="reason != null and reason != ''">reason = #{reason},</if>
|
<if test="pic1 != null and pic1 != ''">pic1 = #{pic1},</if>
|
<if test="pic2 != null and pic2 != ''">pic2 = #{pic2},</if>
|
<if test="pic3 != null and pic3 != ''">pic3 = #{pic3},</if>
|
<if test="zycf != null and zycf != ''">zycf = #{zycf},</if>
|
<if test="cycf != null and cycf != ''">cycf = #{cycf},</if>
|
<if test="djnd != null and djnd != ''">djnd = #{djnd},</if>
|
<if test="msd != null and msd != ''">msd = #{msd},</if>
|
<if test="jyx != null and jyx != ''">jyx = #{jyx},</if>
|
<if test="wzcf != null and wzcf != ''">wzcf = #{wzcf},</if>
|
<if test="ys != null and ys != ''">ys = #{ys},</if>
|
<if test="zt != null and zt != ''">zt = #{zt},</if>
|
<if test="bhw != null and bhw != ''">bhw = #{bhw},</if>
|
<if test="jc != null and jc != ''">jc = #{jc},</if>
|
<if test="sd != null and sd != ''">sd = #{sd},</if>
|
<if test="ftfchd != null and ftfchd != ''">ftfchd = #{ftfchd},</if>
|
<if test="fzntfchd != null and fzntfchd != ''">fzntfchd = #{fzntfchd},</if>
|
<if test="kx != null and kx != ''">kx = #{kx},</if>
|
<if test="czjl != null and czjl != ''">czjl = #{czjl},</if>
|
<if test="klzc != null and klzc != ''">klzc = #{klzc},</if>
|
<if test="hsl != null and hsl != ''">hsl = #{hsl},</if>
|
<if test="tcw != null and tcw != ''">tcw = #{tcw},</if>
|
<if test="klxz != null and klxz != ''">klxz = #{klxz},</if>
|
<if test="klpl != null and klpl != ''">klpl = #{klpl},</if>
|
<if test="kljp != null and kljp != ''">kljp = #{kljp},</if>
|
<if test="ybljx != null and ybljx != ''">ybljx = #{ybljx},</if>
|
<if test="ybljd != null and ybljd != ''">ybljd = #{ybljd},</if>
|
<if test="jdljx != null and jdljx != ''">jdljx = #{jdljx},</if>
|
<if test="jdljd != null and jdljd != ''">jdljd = #{jdljd},</if>
|
<if test="zdlj != null and zdlj != ''">zdlj = #{zdlj},</if>
|
<if test="mycf != null and mycf != ''">mycf = #{mycf},</if>
|
<if test="fhcd != null and fhcd != ''">fhcd = #{fhcd},</if>
|
<if test="kwzc != null and kwzc != ''">kwzc = #{kwzc},</if>
|
<if test="jycd != null and jycd != ''">jycd = #{jycd},</if>
|
<if test="wzcd != null and wzcd != ''">wzcd = #{wzcd},</if>
|
<if test="jbzldj != null and jbzldj != ''">jbzldj = #{jbzldj},</if>
|
<if test="kwx != null and kwx != ''">kwx = #{kwx},</if>
|
<if test="jglx != null and jglx != ''">jglx = #{jglx},</if>
|
</trim>
|
where ids = #{ids}
|
</update>
|
|
<delete id="deleteHoleYantuById" parameterType="String">
|
delete from js_hole_yantu where ids = #{ids}
|
</delete>
|
|
<delete id="deleteHoleYantuByIds" parameterType="String">
|
delete from js_hole_yantu where ids in
|
<foreach item="ids" collection="array" open="(" separator="," close=")">
|
#{ids}
|
</foreach>
|
</delete>
|
|
</mapper>
|