<?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.LayerInfoMapper">
|
|
<resultMap type="LayerInfo" id="LayerInfoResult">
|
<result property="id" column="id" />
|
<result property="projNo" column="proj_no" />
|
<result property="holeNo" column="hole_no" />
|
<result property="bottomDepth" column="bottom_depth" />
|
<result property="rockType" column="rock_type" />
|
<result property="rockName" column="rock_name" />
|
<result property="mixType" column="mix_type" />
|
<result property="mixName" column="mix_name" />
|
<result property="lithology" column="lithology" />
|
<result property="colour" column="colour" />
|
<result property="density" column="density" />
|
<result property="humidity" column="humidity" />
|
<result property="consistency" column="consistency" />
|
<result property="strength" column="strength" />
|
<result property="sectionState" column="section_state" />
|
<result property="rockDeoayRate" column="rock_deoay_rate" />
|
<result property="strataTendency" column="strata_tendency" />
|
<result property="strataInclination" column="strata_inclination" />
|
<result property="fillerPercent" column="filler_percent" />
|
<result property="coreShape" column="core_shape" />
|
<result property="lengthRangeSmall" column="length_range_small" />
|
<result property="lengthRangeBig" column="length_range_big" />
|
<result property="lengthRangeMax" column="length_range_max" />
|
<result property="blockDiameterRangeSmall" column="block_diameter_range_small" />
|
<result property="blockDiameterRangeBig" column="block_diameter_range_big" />
|
<result property="blockDiameterRangeMax" column="block_diameter_range_max" />
|
<result property="geologicalOrign" column="geological_orign" />
|
<result property="geologicalYear" column="geological_year" />
|
<result property="state" column="state" />
|
<result property="including" column="including" />
|
<result property="interlayer" column="interlayer" />
|
<result property="filling" column="filling" />
|
<result property="particalShape" column="partical_shape" />
|
<result property="particalLine" column="partical_line" />
|
<result property="particalSizeDistribution" column="partical_size_distribution" />
|
<result property="dNormalSmall" column="d_normal_small" />
|
<result property="dNormalBig" column="d_normal_big" />
|
<result property="dLength" column="d_length" />
|
<result property="dBig" column="d_big" />
|
<result property="parentRockComp" column="parent_rock_comp" />
|
<result property="mineralComp" column="mineral_comp" />
|
<result property="hardness" column="hardness" />
|
<result property="integrity" column="integrity" />
|
<result property="basicQualityLev" column="basic_quality_lev" />
|
<result property="diggability" column="diggability" />
|
<result property="structureType" column="structure_type" />
|
<result property="longitude" column="longitude" />
|
<result property="latitude" column="latitude" />
|
<result property="locationTime" column="location_time" />
|
<result property="createTime" column="create_time" />
|
<result property="updateTime" column="update_time" />
|
<result property="remarks" column="remarks" />
|
<result property="descriptor" column="descriptor" />
|
<result property="driller" column="driller" />
|
<result property="layerImg" column="layer_img" />
|
<result property="layerVideo" column="layer_video" />
|
<result property="delFlag" column="del_flag" />
|
<result property="mainpart" column="mainPart" />
|
<result property="secondarypart" column="secondaryPart" />
|
<result property="pileyears" column="pileYears" />
|
<result property="homogeneity" column="homogeneity" />
|
<result property="watercontent" column="waterContent" />
|
<result property="topdepth" column="topDepth" />
|
<result property="layerno" column="layerNo" />
|
<result property="officeCode" column="office_code" />
|
<result property="ishistory" column="isHistory" />
|
<result property="recordNo" column="record_no" />
|
<result property="recordType" column="record_type" />
|
<result property="geologicTime" column="geologic_time" />
|
<result property="alluvial" column="alluvial" />
|
<result property="largeDiameterRangeSmall" column="large_diameter_range_small" />
|
<result property="largeDiameterRangeBig" column="large_diameter_range_big" />
|
<result property="mainIngredients" column="main_ingredients" />
|
<result property="secondIngredients" column="second_ingredients" />
|
</resultMap>
|
|
<sql id="selectLayerInfoVo">
|
select id, proj_no, hole_no, bottom_depth, rock_type, rock_name, mix_type, mix_name, lithology, colour, density, humidity, consistency, strength, section_state, rock_deoay_rate, strata_tendency, strata_inclination, filler_percent, core_shape, length_range_small, length_range_big, length_range_max, block_diameter_range_small, block_diameter_range_big, block_diameter_range_max, geological_orign, geological_year, state, including, interlayer, filling, partical_shape, partical_line, partical_size_distribution, d_normal_small, d_normal_big, d_length, d_big, parent_rock_comp, mineral_comp, hardness, integrity, basic_quality_lev, diggability, structure_type, longitude, latitude, location_time, create_time, update_time, remarks, descriptor, driller, layer_img, layer_video, del_flag, mainPart, secondaryPart, pileYears, homogeneity, waterContent, topDepth, layerNo, office_code, isHistory, record_no, record_type, geologic_time, alluvial, large_diameter_range_small, large_diameter_range_big, main_ingredients, second_ingredients from js_layer_info
|
</sql>
|
|
|
|
<select id="selectLayerInfoList" parameterType="LayerInfo" resultMap="LayerInfoResult">
|
<include refid="selectLayerInfoVo"/>
|
<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="bottomDepth != null "> and bottom_depth = #{bottomDepth}</if>
|
<if test="rockType != null and rockType != ''"> and rock_type = #{rockType}</if>
|
<if test="rockName != null and rockName != ''"> and rock_name like concat('%', #{rockName}, '%')</if>
|
<if test="mixType != null and mixType != ''"> and mix_type = #{mixType}</if>
|
<if test="mixName != null and mixName != ''"> and mix_name like concat('%', #{mixName}, '%')</if>
|
<if test="lithology != null and lithology != ''"> and lithology = #{lithology}</if>
|
<if test="colour != null and colour != ''"> and colour = #{colour}</if>
|
<if test="density != null and density != ''"> and density = #{density}</if>
|
<if test="humidity != null and humidity != ''"> and humidity = #{humidity}</if>
|
<if test="consistency != null and consistency != ''"> and consistency = #{consistency}</if>
|
<if test="strength != null and strength != ''"> and strength = #{strength}</if>
|
<if test="sectionState != null and sectionState != ''"> and section_state = #{sectionState}</if>
|
<if test="rockDeoayRate != null and rockDeoayRate != ''"> and rock_deoay_rate = #{rockDeoayRate}</if>
|
<if test="strataTendency != null and strataTendency != ''"> and strata_tendency = #{strataTendency}</if>
|
<if test="strataInclination != null and strataInclination != ''"> and strata_inclination = #{strataInclination}</if>
|
<if test="fillerPercent != null "> and filler_percent = #{fillerPercent}</if>
|
<if test="coreShape != null and coreShape != ''"> and core_shape = #{coreShape}</if>
|
<if test="lengthRangeSmall != null and lengthRangeSmall != ''"> and length_range_small = #{lengthRangeSmall}</if>
|
<if test="lengthRangeBig != null and lengthRangeBig != ''"> and length_range_big = #{lengthRangeBig}</if>
|
<if test="lengthRangeMax != null and lengthRangeMax != ''"> and length_range_max = #{lengthRangeMax}</if>
|
<if test="blockDiameterRangeSmall != null and blockDiameterRangeSmall != ''"> and block_diameter_range_small = #{blockDiameterRangeSmall}</if>
|
<if test="blockDiameterRangeBig != null and blockDiameterRangeBig != ''"> and block_diameter_range_big = #{blockDiameterRangeBig}</if>
|
<if test="blockDiameterRangeMax != null and blockDiameterRangeMax != ''"> and block_diameter_range_max = #{blockDiameterRangeMax}</if>
|
<if test="geologicalOrign != null and geologicalOrign != ''"> and geological_orign = #{geologicalOrign}</if>
|
<if test="geologicalYear != null and geologicalYear != ''"> and geological_year = #{geologicalYear}</if>
|
<if test="state != null and state != ''"> and state = #{state}</if>
|
<if test="including != null and including != ''"> and including = #{including}</if>
|
<if test="interlayer != null and interlayer != ''"> and interlayer = #{interlayer}</if>
|
<if test="filling != null and filling != ''"> and filling = #{filling}</if>
|
<if test="particalShape != null and particalShape != ''"> and partical_shape = #{particalShape}</if>
|
<if test="particalLine != null and particalLine != ''"> and partical_line = #{particalLine}</if>
|
<if test="particalSizeDistribution != null and particalSizeDistribution != ''"> and partical_size_distribution = #{particalSizeDistribution}</if>
|
<if test="dNormalSmall != null and dNormalSmall != ''"> and d_normal_small = #{dNormalSmall}</if>
|
<if test="dNormalBig != null and dNormalBig != ''"> and d_normal_big = #{dNormalBig}</if>
|
<if test="dLength != null and dLength != ''"> and d_length = #{dLength}</if>
|
<if test="dBig != null and dBig != ''"> and d_big = #{dBig}</if>
|
<if test="parentRockComp != null and parentRockComp != ''"> and parent_rock_comp = #{parentRockComp}</if>
|
<if test="mineralComp != null and mineralComp != ''"> and mineral_comp = #{mineralComp}</if>
|
<if test="hardness != null and hardness != ''"> and hardness = #{hardness}</if>
|
<if test="integrity != null and integrity != ''"> and integrity = #{integrity}</if>
|
<if test="basicQualityLev != null and basicQualityLev != ''"> and basic_quality_lev = #{basicQualityLev}</if>
|
<if test="diggability != null and diggability != ''"> and diggability = #{diggability}</if>
|
<if test="structureType != null and structureType != ''"> and structure_type = #{structureType}</if>
|
<if test="longitude != null "> and longitude = #{longitude}</if>
|
<if test="latitude != null "> and latitude = #{latitude}</if>
|
<if test="locationTime != null "> and location_time = #{locationTime}</if>
|
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
|
<if test="descriptor != null and descriptor != ''"> and descriptor = #{descriptor}</if>
|
<if test="driller != null and driller != ''"> and driller = #{driller}</if>
|
<if test="layerImg != null and layerImg != ''"> and layer_img = #{layerImg}</if>
|
<if test="layerVideo != null and layerVideo != ''"> and layer_video = #{layerVideo}</if>
|
<if test="mainpart != null and mainpart != ''"> and mainPart = #{mainpart}</if>
|
<if test="secondarypart != null and secondarypart != ''"> and secondaryPart = #{secondarypart}</if>
|
<if test="pileyears != null and pileyears != ''"> and pileYears = #{pileyears}</if>
|
<if test="homogeneity != null and homogeneity != ''"> and homogeneity = #{homogeneity}</if>
|
<if test="watercontent != null and watercontent != ''"> and waterContent = #{watercontent}</if>
|
<if test="topdepth != null "> and topDepth = #{topdepth}</if>
|
<if test="layerno != null and layerno != ''"> and layerNo = #{layerno}</if>
|
<if test="officeCode != null and officeCode != ''"> and office_code = #{officeCode}</if>
|
<if test="ishistory != null and ishistory != ''"> and isHistory = #{ishistory}</if>
|
<if test="recordNo != null and recordNo != ''"> and record_no = #{recordNo}</if>
|
<if test="recordType != null and recordType != ''"> and record_type = #{recordType}</if>
|
<if test="geologicTime != null and geologicTime != ''"> and geologic_time = #{geologicTime}</if>
|
<if test="alluvial != null and alluvial != ''"> and alluvial = #{alluvial}</if>
|
<if test="largeDiameterRangeSmall != null and largeDiameterRangeSmall != ''"> and large_diameter_range_small = #{largeDiameterRangeSmall}</if>
|
<if test="largeDiameterRangeBig != null and largeDiameterRangeBig != ''"> and large_diameter_range_big = #{largeDiameterRangeBig}</if>
|
<if test="mainIngredients != null and mainIngredients != ''"> and main_ingredients = #{mainIngredients}</if>
|
<if test="secondIngredients != null and secondIngredients != ''"> and second_ingredients = #{secondIngredients}</if>
|
</where>
|
</select>
|
|
<select id="selectLayerInfoById" parameterType="String" resultMap="LayerInfoResult">
|
<include refid="selectLayerInfoVo"/>
|
where id = #{id}
|
</select>
|
|
<select id="findMaxHoleDepth" parameterType="LayerInfo" resultType="double">
|
|
SELECT MAX(bottom_depth) from js_layer_info where hole_no =#{holeNo}
|
|
</select>
|
|
<insert id="insertLayerInfo" parameterType="LayerInfo">
|
insert into js_layer_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="bottomDepth != null ">bottom_depth,</if>
|
<if test="rockType != null and rockType != ''">rock_type,</if>
|
<if test="rockName != null and rockName != ''">rock_name,</if>
|
<if test="mixType != null and mixType != ''">mix_type,</if>
|
<if test="mixName != null and mixName != ''">mix_name,</if>
|
<if test="lithology != null and lithology != ''">lithology,</if>
|
<if test="colour != null and colour != ''">colour,</if>
|
<if test="density != null and density != ''">density,</if>
|
<if test="humidity != null and humidity != ''">humidity,</if>
|
<if test="consistency != null and consistency != ''">consistency,</if>
|
<if test="strength != null and strength != ''">strength,</if>
|
<if test="sectionState != null and sectionState != ''">section_state,</if>
|
<if test="rockDeoayRate != null and rockDeoayRate != ''">rock_deoay_rate,</if>
|
<if test="strataTendency != null and strataTendency != ''">strata_tendency,</if>
|
<if test="strataInclination != null and strataInclination != ''">strata_inclination,</if>
|
<if test="fillerPercent != null ">filler_percent,</if>
|
<if test="coreShape != null and coreShape != ''">core_shape,</if>
|
<if test="lengthRangeSmall != null and lengthRangeSmall != ''">length_range_small,</if>
|
<if test="lengthRangeBig != null and lengthRangeBig != ''">length_range_big,</if>
|
<if test="lengthRangeMax != null and lengthRangeMax != ''">length_range_max,</if>
|
<if test="blockDiameterRangeSmall != null and blockDiameterRangeSmall != ''">block_diameter_range_small,</if>
|
<if test="blockDiameterRangeBig != null and blockDiameterRangeBig != ''">block_diameter_range_big,</if>
|
<if test="blockDiameterRangeMax != null and blockDiameterRangeMax != ''">block_diameter_range_max,</if>
|
<if test="geologicalOrign != null and geologicalOrign != ''">geological_orign,</if>
|
<if test="geologicalYear != null and geologicalYear != ''">geological_year,</if>
|
<if test="state != null and state != ''">state,</if>
|
<if test="including != null and including != ''">including,</if>
|
<if test="interlayer != null and interlayer != ''">interlayer,</if>
|
<if test="filling != null and filling != ''">filling,</if>
|
<if test="particalShape != null and particalShape != ''">partical_shape,</if>
|
<if test="particalLine != null and particalLine != ''">partical_line,</if>
|
<if test="particalSizeDistribution != null and particalSizeDistribution != ''">partical_size_distribution,</if>
|
<if test="dNormalSmall != null and dNormalSmall != ''">d_normal_small,</if>
|
<if test="dNormalBig != null and dNormalBig != ''">d_normal_big,</if>
|
<if test="dLength != null and dLength != ''">d_length,</if>
|
<if test="dBig != null and dBig != ''">d_big,</if>
|
<if test="parentRockComp != null and parentRockComp != ''">parent_rock_comp,</if>
|
<if test="mineralComp != null and mineralComp != ''">mineral_comp,</if>
|
<if test="hardness != null and hardness != ''">hardness,</if>
|
<if test="integrity != null and integrity != ''">integrity,</if>
|
<if test="basicQualityLev != null and basicQualityLev != ''">basic_quality_lev,</if>
|
<if test="diggability != null and diggability != ''">diggability,</if>
|
<if test="structureType != null and structureType != ''">structure_type,</if>
|
<if test="longitude != null ">longitude,</if>
|
<if test="latitude != null ">latitude,</if>
|
<if test="locationTime != null ">location_time,</if>
|
<if test="createTime != null ">create_time,</if>
|
<if test="updateTime != null ">update_time,</if>
|
<if test="remarks != null and remarks != ''">remarks,</if>
|
<if test="descriptor != null and descriptor != ''">descriptor,</if>
|
<if test="driller != null and driller != ''">driller,</if>
|
<if test="layerImg != null and layerImg != ''">layer_img,</if>
|
<if test="layerVideo != null and layerVideo != ''">layer_video,</if>
|
<if test="delFlag != null and delFlag != ''">del_flag,</if>
|
<if test="mainpart != null and mainpart != ''">mainPart,</if>
|
<if test="secondarypart != null and secondarypart != ''">secondaryPart,</if>
|
<if test="pileyears != null and pileyears != ''">pileYears,</if>
|
<if test="homogeneity != null and homogeneity != ''">homogeneity,</if>
|
<if test="watercontent != null and watercontent != ''">waterContent,</if>
|
<if test="topdepth != null ">topDepth,</if>
|
<if test="layerno != null and layerno != ''">layerNo,</if>
|
<if test="officeCode != null and officeCode != ''">office_code,</if>
|
<if test="ishistory != null and ishistory != ''">isHistory,</if>
|
<if test="recordNo != null and recordNo != ''">record_no,</if>
|
<if test="recordType != null and recordType != ''">record_type,</if>
|
<if test="geologicTime != null and geologicTime != ''">geologic_time,</if>
|
<if test="alluvial != null and alluvial != ''">alluvial,</if>
|
<if test="largeDiameterRangeSmall != null and largeDiameterRangeSmall != ''">large_diameter_range_small,</if>
|
<if test="largeDiameterRangeBig != null and largeDiameterRangeBig != ''">large_diameter_range_big,</if>
|
<if test="mainIngredients != null and mainIngredients != ''">main_ingredients,</if>
|
<if test="secondIngredients != null and secondIngredients != ''">second_ingredients,</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="bottomDepth != null ">#{bottomDepth},</if>
|
<if test="rockType != null and rockType != ''">#{rockType},</if>
|
<if test="rockName != null and rockName != ''">#{rockName},</if>
|
<if test="mixType != null and mixType != ''">#{mixType},</if>
|
<if test="mixName != null and mixName != ''">#{mixName},</if>
|
<if test="lithology != null and lithology != ''">#{lithology},</if>
|
<if test="colour != null and colour != ''">#{colour},</if>
|
<if test="density != null and density != ''">#{density},</if>
|
<if test="humidity != null and humidity != ''">#{humidity},</if>
|
<if test="consistency != null and consistency != ''">#{consistency},</if>
|
<if test="strength != null and strength != ''">#{strength},</if>
|
<if test="sectionState != null and sectionState != ''">#{sectionState},</if>
|
<if test="rockDeoayRate != null and rockDeoayRate != ''">#{rockDeoayRate},</if>
|
<if test="strataTendency != null and strataTendency != ''">#{strataTendency},</if>
|
<if test="strataInclination != null and strataInclination != ''">#{strataInclination},</if>
|
<if test="fillerPercent != null ">#{fillerPercent},</if>
|
<if test="coreShape != null and coreShape != ''">#{coreShape},</if>
|
<if test="lengthRangeSmall != null and lengthRangeSmall != ''">#{lengthRangeSmall},</if>
|
<if test="lengthRangeBig != null and lengthRangeBig != ''">#{lengthRangeBig},</if>
|
<if test="lengthRangeMax != null and lengthRangeMax != ''">#{lengthRangeMax},</if>
|
<if test="blockDiameterRangeSmall != null and blockDiameterRangeSmall != ''">#{blockDiameterRangeSmall},</if>
|
<if test="blockDiameterRangeBig != null and blockDiameterRangeBig != ''">#{blockDiameterRangeBig},</if>
|
<if test="blockDiameterRangeMax != null and blockDiameterRangeMax != ''">#{blockDiameterRangeMax},</if>
|
<if test="geologicalOrign != null and geologicalOrign != ''">#{geologicalOrign},</if>
|
<if test="geologicalYear != null and geologicalYear != ''">#{geologicalYear},</if>
|
<if test="state != null and state != ''">#{state},</if>
|
<if test="including != null and including != ''">#{including},</if>
|
<if test="interlayer != null and interlayer != ''">#{interlayer},</if>
|
<if test="filling != null and filling != ''">#{filling},</if>
|
<if test="particalShape != null and particalShape != ''">#{particalShape},</if>
|
<if test="particalLine != null and particalLine != ''">#{particalLine},</if>
|
<if test="particalSizeDistribution != null and particalSizeDistribution != ''">#{particalSizeDistribution},</if>
|
<if test="dNormalSmall != null and dNormalSmall != ''">#{dNormalSmall},</if>
|
<if test="dNormalBig != null and dNormalBig != ''">#{dNormalBig},</if>
|
<if test="dLength != null and dLength != ''">#{dLength},</if>
|
<if test="dBig != null and dBig != ''">#{dBig},</if>
|
<if test="parentRockComp != null and parentRockComp != ''">#{parentRockComp},</if>
|
<if test="mineralComp != null and mineralComp != ''">#{mineralComp},</if>
|
<if test="hardness != null and hardness != ''">#{hardness},</if>
|
<if test="integrity != null and integrity != ''">#{integrity},</if>
|
<if test="basicQualityLev != null and basicQualityLev != ''">#{basicQualityLev},</if>
|
<if test="diggability != null and diggability != ''">#{diggability},</if>
|
<if test="structureType != null and structureType != ''">#{structureType},</if>
|
<if test="longitude != null ">#{longitude},</if>
|
<if test="latitude != null ">#{latitude},</if>
|
<if test="locationTime != null ">#{locationTime},</if>
|
<if test="createTime != null ">#{createTime},</if>
|
<if test="updateTime != null ">#{updateTime},</if>
|
<if test="remarks != null and remarks != ''">#{remarks},</if>
|
<if test="descriptor != null and descriptor != ''">#{descriptor},</if>
|
<if test="driller != null and driller != ''">#{driller},</if>
|
<if test="layerImg != null and layerImg != ''">#{layerImg},</if>
|
<if test="layerVideo != null and layerVideo != ''">#{layerVideo},</if>
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
|
<if test="mainpart != null and mainpart != ''">#{mainpart},</if>
|
<if test="secondarypart != null and secondarypart != ''">#{secondarypart},</if>
|
<if test="pileyears != null and pileyears != ''">#{pileyears},</if>
|
<if test="homogeneity != null and homogeneity != ''">#{homogeneity},</if>
|
<if test="watercontent != null and watercontent != ''">#{watercontent},</if>
|
<if test="topdepth != null ">#{topdepth},</if>
|
<if test="layerno != null and layerno != ''">#{layerno},</if>
|
<if test="officeCode != null and officeCode != ''">#{officeCode},</if>
|
<if test="ishistory != null and ishistory != ''">#{ishistory},</if>
|
<if test="recordNo != null and recordNo != ''">#{recordNo},</if>
|
<if test="recordType != null and recordType != ''">#{recordType},</if>
|
<if test="geologicTime != null and geologicTime != ''">#{geologicTime},</if>
|
<if test="alluvial != null and alluvial != ''">#{alluvial},</if>
|
<if test="largeDiameterRangeSmall != null and largeDiameterRangeSmall != ''">#{largeDiameterRangeSmall},</if>
|
<if test="largeDiameterRangeBig != null and largeDiameterRangeBig != ''">#{largeDiameterRangeBig},</if>
|
<if test="mainIngredients != null and mainIngredients != ''">#{mainIngredients},</if>
|
<if test="secondIngredients != null and secondIngredients != ''">#{secondIngredients},</if>
|
</trim>
|
</insert>
|
|
<update id="updateLayerInfo" parameterType="LayerInfo">
|
update js_layer_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="bottomDepth != null ">bottom_depth = #{bottomDepth},</if>
|
<if test="rockType != null and rockType != ''">rock_type = #{rockType},</if>
|
<if test="rockName != null and rockName != ''">rock_name = #{rockName},</if>
|
<if test="mixType != null and mixType != ''">mix_type = #{mixType},</if>
|
<if test="mixName != null and mixName != ''">mix_name = #{mixName},</if>
|
<if test="lithology != null and lithology != ''">lithology = #{lithology},</if>
|
<if test="colour != null and colour != ''">colour = #{colour},</if>
|
<if test="density != null and density != ''">density = #{density},</if>
|
<if test="humidity != null and humidity != ''">humidity = #{humidity},</if>
|
<if test="consistency != null and consistency != ''">consistency = #{consistency},</if>
|
<if test="strength != null and strength != ''">strength = #{strength},</if>
|
<if test="sectionState != null and sectionState != ''">section_state = #{sectionState},</if>
|
<if test="rockDeoayRate != null and rockDeoayRate != ''">rock_deoay_rate = #{rockDeoayRate},</if>
|
<if test="strataTendency != null and strataTendency != ''">strata_tendency = #{strataTendency},</if>
|
<if test="strataInclination != null and strataInclination != ''">strata_inclination = #{strataInclination},</if>
|
<if test="fillerPercent != null ">filler_percent = #{fillerPercent},</if>
|
<if test="coreShape != null and coreShape != ''">core_shape = #{coreShape},</if>
|
<if test="lengthRangeSmall != null and lengthRangeSmall != ''">length_range_small = #{lengthRangeSmall},</if>
|
<if test="lengthRangeBig != null and lengthRangeBig != ''">length_range_big = #{lengthRangeBig},</if>
|
<if test="lengthRangeMax != null and lengthRangeMax != ''">length_range_max = #{lengthRangeMax},</if>
|
<if test="blockDiameterRangeSmall != null and blockDiameterRangeSmall != ''">block_diameter_range_small = #{blockDiameterRangeSmall},</if>
|
<if test="blockDiameterRangeBig != null and blockDiameterRangeBig != ''">block_diameter_range_big = #{blockDiameterRangeBig},</if>
|
<if test="blockDiameterRangeMax != null and blockDiameterRangeMax != ''">block_diameter_range_max = #{blockDiameterRangeMax},</if>
|
<if test="geologicalOrign != null and geologicalOrign != ''">geological_orign = #{geologicalOrign},</if>
|
<if test="geologicalYear != null and geologicalYear != ''">geological_year = #{geologicalYear},</if>
|
<if test="state != null and state != ''">state = #{state},</if>
|
<if test="including != null and including != ''">including = #{including},</if>
|
<if test="interlayer != null and interlayer != ''">interlayer = #{interlayer},</if>
|
<if test="filling != null and filling != ''">filling = #{filling},</if>
|
<if test="particalShape != null and particalShape != ''">partical_shape = #{particalShape},</if>
|
<if test="particalLine != null and particalLine != ''">partical_line = #{particalLine},</if>
|
<if test="particalSizeDistribution != null and particalSizeDistribution != ''">partical_size_distribution = #{particalSizeDistribution},</if>
|
<if test="dNormalSmall != null and dNormalSmall != ''">d_normal_small = #{dNormalSmall},</if>
|
<if test="dNormalBig != null and dNormalBig != ''">d_normal_big = #{dNormalBig},</if>
|
<if test="dLength != null and dLength != ''">d_length = #{dLength},</if>
|
<if test="dBig != null and dBig != ''">d_big = #{dBig},</if>
|
<if test="parentRockComp != null and parentRockComp != ''">parent_rock_comp = #{parentRockComp},</if>
|
<if test="mineralComp != null and mineralComp != ''">mineral_comp = #{mineralComp},</if>
|
<if test="hardness != null and hardness != ''">hardness = #{hardness},</if>
|
<if test="integrity != null and integrity != ''">integrity = #{integrity},</if>
|
<if test="basicQualityLev != null and basicQualityLev != ''">basic_quality_lev = #{basicQualityLev},</if>
|
<if test="diggability != null and diggability != ''">diggability = #{diggability},</if>
|
<if test="structureType != null and structureType != ''">structure_type = #{structureType},</if>
|
<if test="longitude != null ">longitude = #{longitude},</if>
|
<if test="latitude != null ">latitude = #{latitude},</if>
|
<if test="locationTime != null ">location_time = #{locationTime},</if>
|
<if test="createTime != null ">create_time = #{createTime},</if>
|
<if test="updateTime != null ">update_time = #{updateTime},</if>
|
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
|
<if test="descriptor != null and descriptor != ''">descriptor = #{descriptor},</if>
|
<if test="driller != null and driller != ''">driller = #{driller},</if>
|
<if test="layerImg != null and layerImg != ''">layer_img = #{layerImg},</if>
|
<if test="layerVideo != null and layerVideo != ''">layer_video = #{layerVideo},</if>
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
|
<if test="mainpart != null and mainpart != ''">mainPart = #{mainpart},</if>
|
<if test="secondarypart != null and secondarypart != ''">secondaryPart = #{secondarypart},</if>
|
<if test="pileyears != null and pileyears != ''">pileYears = #{pileyears},</if>
|
<if test="homogeneity != null and homogeneity != ''">homogeneity = #{homogeneity},</if>
|
<if test="watercontent != null and watercontent != ''">waterContent = #{watercontent},</if>
|
<if test="topdepth != null ">topDepth = #{topdepth},</if>
|
<if test="layerno != null and layerno != ''">layerNo = #{layerno},</if>
|
<if test="officeCode != null and officeCode != ''">office_code = #{officeCode},</if>
|
<if test="ishistory != null and ishistory != ''">isHistory = #{ishistory},</if>
|
<if test="recordNo != null and recordNo != ''">record_no = #{recordNo},</if>
|
<if test="recordType != null and recordType != ''">record_type = #{recordType},</if>
|
<if test="geologicTime != null and geologicTime != ''">geologic_time = #{geologicTime},</if>
|
<if test="alluvial != null and alluvial != ''">alluvial = #{alluvial},</if>
|
<if test="largeDiameterRangeSmall != null and largeDiameterRangeSmall != ''">large_diameter_range_small = #{largeDiameterRangeSmall},</if>
|
<if test="largeDiameterRangeBig != null and largeDiameterRangeBig != ''">large_diameter_range_big = #{largeDiameterRangeBig},</if>
|
<if test="mainIngredients != null and mainIngredients != ''">main_ingredients = #{mainIngredients},</if>
|
<if test="secondIngredients != null and secondIngredients != ''">second_ingredients = #{secondIngredients},</if>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteLayerInfoById" parameterType="String">
|
delete from js_layer_info where id = #{id}
|
</delete>
|
|
<delete id="deleteLayerInfoByIds" parameterType="String">
|
delete from js_layer_info where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|