<?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.ReturnInfoMapper">
|
|
<resultMap type="ReturnInfo" id="ReturnInfoResult">
|
<result property="id" column="id" />
|
<result property="projNo" column="proj_no" />
|
<result property="holeNo" column="hole_no" />
|
<result property="returnNum" column="return_num" />
|
<result property="officeCode" column="office_code" />
|
<result property="startDepth" column="start_depth" />
|
<result property="endDepth" column="end_depth" />
|
<result property="footage" column="footage" />
|
<result property="coreLength" column="core_length" />
|
<result property="coreRate" column="core_rate" />
|
<result property="rockQualityQuota" column="rock_quality_quota" />
|
<result property="wallProtectMethod" column="wall_protect_method" />
|
<result property="drillMethod" column="drill_method" />
|
<result property="boreDiameter" column="bore_diameter" />
|
<result property="drillAbnormalDesc" column="drill_abnormal_desc" />
|
<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="returnImg" column="return_img" />
|
<result property="returnVideo" column="return_video" />
|
<result property="delFlag" column="del_flag" />
|
<result property="ishistory" column="isHistory" />
|
<result property="recordNo" column="record_no" />
|
<result property="recordType" column="record_type" />
|
</resultMap>
|
|
<sql id="selectReturnInfoVo">
|
select id, proj_no, hole_no, return_num, office_code, start_depth, end_depth, footage, core_length, core_rate, rock_quality_quota, wall_protect_method, drill_method, bore_diameter, drill_abnormal_desc, longitude, latitude, location_time, create_time, update_time, remarks, descriptor, driller, return_img, return_video, del_flag, isHistory, record_no, record_type from js_return_info
|
</sql>
|
|
<select id="selectReturnInfoList" parameterType="ReturnInfo" resultMap="ReturnInfoResult">
|
<include refid="selectReturnInfoVo"/>
|
<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="returnNum != null and returnNum != ''"> and return_num = #{returnNum}</if>
|
<if test="officeCode != null and officeCode != ''"> and office_code = #{officeCode}</if>
|
<if test="startDepth != null "> and start_depth = #{startDepth}</if>
|
<if test="endDepth != null "> and end_depth = #{endDepth}</if>
|
<if test="footage != null "> and footage = #{footage}</if>
|
<if test="coreLength != null "> and core_length = #{coreLength}</if>
|
<if test="coreRate != null "> and core_rate = #{coreRate}</if>
|
<if test="rockQualityQuota != null "> and rock_quality_quota = #{rockQualityQuota}</if>
|
<if test="wallProtectMethod != null and wallProtectMethod != ''"> and wall_protect_method = #{wallProtectMethod}</if>
|
<if test="drillMethod != null and drillMethod != ''"> and drill_method = #{drillMethod}</if>
|
<if test="boreDiameter != null "> and bore_diameter = #{boreDiameter}</if>
|
<if test="drillAbnormalDesc != null and drillAbnormalDesc != ''"> and drill_abnormal_desc = #{drillAbnormalDesc}</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="returnImg != null and returnImg != ''"> and return_img = #{returnImg}</if>
|
<if test="returnVideo != null and returnVideo != ''"> and return_video = #{returnVideo}</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>
|
</where>
|
</select>
|
|
<select id="selectReturnInfoById" parameterType="String" resultMap="ReturnInfoResult">
|
<include refid="selectReturnInfoVo"/>
|
where id = #{id}
|
</select>
|
|
<insert id="insertReturnInfo" parameterType="ReturnInfo">
|
insert into js_return_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="returnNum != null and returnNum != ''">return_num,</if>
|
<if test="officeCode != null and officeCode != ''">office_code,</if>
|
<if test="startDepth != null ">start_depth,</if>
|
<if test="endDepth != null ">end_depth,</if>
|
<if test="footage != null ">footage,</if>
|
<if test="coreLength != null ">core_length,</if>
|
<if test="coreRate != null ">core_rate,</if>
|
<if test="rockQualityQuota != null ">rock_quality_quota,</if>
|
<if test="wallProtectMethod != null and wallProtectMethod != ''">wall_protect_method,</if>
|
<if test="drillMethod != null and drillMethod != ''">drill_method,</if>
|
<if test="boreDiameter != null ">bore_diameter,</if>
|
<if test="drillAbnormalDesc != null and drillAbnormalDesc != ''">drill_abnormal_desc,</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="returnImg != null and returnImg != ''">return_img,</if>
|
<if test="returnVideo != null and returnVideo != ''">return_video,</if>
|
<if test="delFlag != null and delFlag != ''">del_flag,</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>
|
</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="returnNum != null and returnNum != ''">#{returnNum},</if>
|
<if test="officeCode != null and officeCode != ''">#{officeCode},</if>
|
<if test="startDepth != null ">#{startDepth},</if>
|
<if test="endDepth != null ">#{endDepth},</if>
|
<if test="footage != null ">#{footage},</if>
|
<if test="coreLength != null ">#{coreLength},</if>
|
<if test="coreRate != null ">#{coreRate},</if>
|
<if test="rockQualityQuota != null ">#{rockQualityQuota},</if>
|
<if test="wallProtectMethod != null and wallProtectMethod != ''">#{wallProtectMethod},</if>
|
<if test="drillMethod != null and drillMethod != ''">#{drillMethod},</if>
|
<if test="boreDiameter != null ">#{boreDiameter},</if>
|
<if test="drillAbnormalDesc != null and drillAbnormalDesc != ''">#{drillAbnormalDesc},</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="returnImg != null and returnImg != ''">#{returnImg},</if>
|
<if test="returnVideo != null and returnVideo != ''">#{returnVideo},</if>
|
<if test="delFlag != null and delFlag != ''">#{delFlag},</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>
|
</trim>
|
</insert>
|
|
<update id="updateReturnInfo" parameterType="ReturnInfo">
|
update js_return_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="returnNum != null and returnNum != ''">return_num = #{returnNum},</if>
|
<if test="officeCode != null and officeCode != ''">office_code = #{officeCode},</if>
|
<if test="startDepth != null ">start_depth = #{startDepth},</if>
|
<if test="endDepth != null ">end_depth = #{endDepth},</if>
|
<if test="footage != null ">footage = #{footage},</if>
|
<if test="coreLength != null ">core_length = #{coreLength},</if>
|
<if test="coreRate != null ">core_rate = #{coreRate},</if>
|
<if test="rockQualityQuota != null ">rock_quality_quota = #{rockQualityQuota},</if>
|
<if test="wallProtectMethod != null and wallProtectMethod != ''">wall_protect_method = #{wallProtectMethod},</if>
|
<if test="drillMethod != null and drillMethod != ''">drill_method = #{drillMethod},</if>
|
<if test="boreDiameter != null ">bore_diameter = #{boreDiameter},</if>
|
<if test="drillAbnormalDesc != null and drillAbnormalDesc != ''">drill_abnormal_desc = #{drillAbnormalDesc},</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="returnImg != null and returnImg != ''">return_img = #{returnImg},</if>
|
<if test="returnVideo != null and returnVideo != ''">return_video = #{returnVideo},</if>
|
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</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>
|
</trim>
|
where id = #{id}
|
</update>
|
|
<delete id="deleteReturnInfoById" parameterType="String">
|
delete from js_return_info where id = #{id}
|
</delete>
|
|
<delete id="deleteReturnInfoByIds" parameterType="String">
|
delete from js_return_info where id in
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
#{id}
|
</foreach>
|
</delete>
|
|
</mapper>
|