|
@@ -0,0 +1,751 @@
|
|
|
+<?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.bowintek.practice.mapper.WellBasicInformationMapper">
|
|
|
+ <resultMap id="BaseResultMap" type="com.bowintek.practice.model.WellBasicInformation">
|
|
|
+ <id column="well_id" jdbcType="VARCHAR" property="well_id" />
|
|
|
+ <result column="well_common_name" jdbcType="VARCHAR" property="well_common_name" />
|
|
|
+ <result column="well_purpose" jdbcType="VARCHAR" property="well_purpose" />
|
|
|
+ <result column="well_type" jdbcType="VARCHAR" property="well_type" />
|
|
|
+ <result column="spud_date" jdbcType="DATE" property="spud_date" />
|
|
|
+ <result column="end_drilling_date" jdbcType="DATE" property="end_drilling_date" />
|
|
|
+ <result column="budgeted_md" jdbcType="NUMERIC" property="budgeted_md" />
|
|
|
+ <result column="completion_formation" jdbcType="VARCHAR" property="completion_formation" />
|
|
|
+ <result column="completion_method" jdbcType="VARCHAR" property="completion_method" />
|
|
|
+ <result column="org_name_a1" jdbcType="VARCHAR" property="org_name_a1" />
|
|
|
+ <result column="org_name_a2" jdbcType="VARCHAR" property="org_name_a2" />
|
|
|
+ <result column="well_legal_name" jdbcType="VARCHAR" property="well_legal_name" />
|
|
|
+ <result column="geo_description" jdbcType="VARCHAR" property="geo_description" />
|
|
|
+ <result column="structure_pos" jdbcType="VARCHAR" property="structure_pos" />
|
|
|
+ <result column="create_date" jdbcType="DATE" property="create_date" />
|
|
|
+ <result column="completion_date" jdbcType="DATE" property="completion_date" />
|
|
|
+ <result column="update_date" jdbcType="DATE" property="update_date" />
|
|
|
+ <result column="check_date" jdbcType="DATE" property="check_date" />
|
|
|
+ <result column="phase" jdbcType="VARCHAR" property="phase" />
|
|
|
+ <result column="wellbore_common_name" jdbcType="VARCHAR" property="wellbore_common_name" />
|
|
|
+ <result column="target_formation" jdbcType="VARCHAR" property="target_formation" />
|
|
|
+ <result column="authorized_md" jdbcType="NUMERIC" property="authorized_md" />
|
|
|
+ <result column="authorized_tvd" jdbcType="NUMERIC" property="authorized_tvd" />
|
|
|
+ <result column="bh_md" jdbcType="NUMERIC" property="bh_md" />
|
|
|
+ <result column="bh_tvd" jdbcType="NUMERIC" property="bh_tvd" />
|
|
|
+ <result column="geo_description_bh" jdbcType="VARCHAR" property="geo_description_bh" />
|
|
|
+ <result column="ko_md" jdbcType="NUMERIC" property="ko_md" />
|
|
|
+ <result column="ko_tvd" jdbcType="NUMERIC" property="ko_tvd" />
|
|
|
+ <result column="project_name" jdbcType="VARCHAR" property="project_name" />
|
|
|
+ <result column="project_type" jdbcType="VARCHAR" property="project_type" />
|
|
|
+ <result column="project_level" jdbcType="VARCHAR" property="project_level" />
|
|
|
+ <result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
|
|
+ <result column="bz_basin" jdbcType="VARCHAR" property="bz_basin" />
|
|
|
+ <result column="bz_depression" jdbcType="VARCHAR" property="bz_depression" />
|
|
|
+ <result column="bz_depressed" jdbcType="VARCHAR" property="bz_depressed" />
|
|
|
+ <result column="bz_structural_belt" jdbcType="VARCHAR" property="bz_structural_belt" />
|
|
|
+ <result column="bz_qkdy" jdbcType="VARCHAR" property="bz_qkdy" />
|
|
|
+ <result column="bz_org_name" jdbcType="VARCHAR" property="bz_org_name" />
|
|
|
+ <result column="bz_dwmc" jdbcType="VARCHAR" property="bz_dwmc" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Update_By_Example_Where_Clause">
|
|
|
+ <where>
|
|
|
+ <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
+ <if test="criteria.valid">
|
|
|
+ <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
+ <foreach collection="criteria.criteria" item="criterion">
|
|
|
+ <choose>
|
|
|
+ <when test="criterion.noValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.singleValue">
|
|
|
+ and ${criterion.condition} #{criterion.value}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.betweenValue">
|
|
|
+ and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
+ </when>
|
|
|
+ <when test="criterion.listValue">
|
|
|
+ and ${criterion.condition}
|
|
|
+ <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
+ #{listItem}
|
|
|
+ </foreach>
|
|
|
+ </when>
|
|
|
+ </choose>
|
|
|
+ </foreach>
|
|
|
+ </trim>
|
|
|
+ </if>
|
|
|
+ </foreach>
|
|
|
+ </where>
|
|
|
+ </sql>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ well_id, well_common_name, well_purpose, well_type, spud_date, end_drilling_date,
|
|
|
+ budgeted_md, completion_formation, completion_method, org_name_a1, org_name_a2, well_legal_name,
|
|
|
+ geo_description, structure_pos, create_date, completion_date, update_date, check_date,
|
|
|
+ phase, wellbore_common_name, target_formation, authorized_md, authorized_tvd, bh_md,
|
|
|
+ bh_tvd, geo_description_bh, ko_md, ko_tvd, project_name, project_type, project_level,
|
|
|
+ remarks, bz_basin, bz_depression, bz_depressed, bz_structural_belt, bz_qkdy, bz_org_name,
|
|
|
+ bz_dwmc
|
|
|
+ </sql>
|
|
|
+ <select id="selectByExample" parameterType="com.bowintek.practice.model.WellBasicInformationExample" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <if test="distinct">
|
|
|
+ distinct
|
|
|
+ </if>
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from well_basic_information
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ <if test="orderByClause != null">
|
|
|
+ order by ${orderByClause}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from well_basic_information
|
|
|
+ where well_id = #{well_id,jdbcType=VARCHAR}
|
|
|
+ </select>
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
+ delete from well_basic_information
|
|
|
+ where well_id = #{well_id,jdbcType=VARCHAR}
|
|
|
+ </delete>
|
|
|
+ <delete id="deleteByExample" parameterType="com.bowintek.practice.model.WellBasicInformationExample">
|
|
|
+ delete from well_basic_information
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" parameterType="com.bowintek.practice.model.WellBasicInformation">
|
|
|
+ insert into well_basic_information (well_id, well_common_name, well_purpose,
|
|
|
+ well_type, spud_date, end_drilling_date,
|
|
|
+ budgeted_md, completion_formation, completion_method,
|
|
|
+ org_name_a1, org_name_a2, well_legal_name,
|
|
|
+ geo_description, structure_pos, create_date,
|
|
|
+ completion_date, update_date, check_date,
|
|
|
+ phase, wellbore_common_name, target_formation,
|
|
|
+ authorized_md, authorized_tvd, bh_md,
|
|
|
+ bh_tvd, geo_description_bh, ko_md,
|
|
|
+ ko_tvd, project_name, project_type,
|
|
|
+ project_level, remarks, bz_basin,
|
|
|
+ bz_depression, bz_depressed, bz_structural_belt,
|
|
|
+ bz_qkdy, bz_org_name, bz_dwmc
|
|
|
+ )
|
|
|
+ values (#{well_id,jdbcType=VARCHAR}, #{well_common_name,jdbcType=VARCHAR}, #{well_purpose,jdbcType=VARCHAR},
|
|
|
+ #{well_type,jdbcType=VARCHAR}, #{spud_date,jdbcType=DATE}, #{end_drilling_date,jdbcType=DATE},
|
|
|
+ #{budgeted_md,jdbcType=NUMERIC}, #{completion_formation,jdbcType=VARCHAR}, #{completion_method,jdbcType=VARCHAR},
|
|
|
+ #{org_name_a1,jdbcType=VARCHAR}, #{org_name_a2,jdbcType=VARCHAR}, #{well_legal_name,jdbcType=VARCHAR},
|
|
|
+ #{geo_description,jdbcType=VARCHAR}, #{structure_pos,jdbcType=VARCHAR}, #{create_date,jdbcType=DATE},
|
|
|
+ #{completion_date,jdbcType=DATE}, #{update_date,jdbcType=DATE}, #{check_date,jdbcType=DATE},
|
|
|
+ #{phase,jdbcType=VARCHAR}, #{wellbore_common_name,jdbcType=VARCHAR}, #{target_formation,jdbcType=VARCHAR},
|
|
|
+ #{authorized_md,jdbcType=NUMERIC}, #{authorized_tvd,jdbcType=NUMERIC}, #{bh_md,jdbcType=NUMERIC},
|
|
|
+ #{bh_tvd,jdbcType=NUMERIC}, #{geo_description_bh,jdbcType=VARCHAR}, #{ko_md,jdbcType=NUMERIC},
|
|
|
+ #{ko_tvd,jdbcType=NUMERIC}, #{project_name,jdbcType=VARCHAR}, #{project_type,jdbcType=VARCHAR},
|
|
|
+ #{project_level,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, #{bz_basin,jdbcType=VARCHAR},
|
|
|
+ #{bz_depression,jdbcType=VARCHAR}, #{bz_depressed,jdbcType=VARCHAR}, #{bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ #{bz_qkdy,jdbcType=VARCHAR}, #{bz_org_name,jdbcType=VARCHAR}, #{bz_dwmc,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </insert>
|
|
|
+ <insert id="insertSelective" parameterType="com.bowintek.practice.model.WellBasicInformation">
|
|
|
+ insert into well_basic_information
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="well_id != null">
|
|
|
+ well_id,
|
|
|
+ </if>
|
|
|
+ <if test="well_common_name != null">
|
|
|
+ well_common_name,
|
|
|
+ </if>
|
|
|
+ <if test="well_purpose != null">
|
|
|
+ well_purpose,
|
|
|
+ </if>
|
|
|
+ <if test="well_type != null">
|
|
|
+ well_type,
|
|
|
+ </if>
|
|
|
+ <if test="spud_date != null">
|
|
|
+ spud_date,
|
|
|
+ </if>
|
|
|
+ <if test="end_drilling_date != null">
|
|
|
+ end_drilling_date,
|
|
|
+ </if>
|
|
|
+ <if test="budgeted_md != null">
|
|
|
+ budgeted_md,
|
|
|
+ </if>
|
|
|
+ <if test="completion_formation != null">
|
|
|
+ completion_formation,
|
|
|
+ </if>
|
|
|
+ <if test="completion_method != null">
|
|
|
+ completion_method,
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a1 != null">
|
|
|
+ org_name_a1,
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a2 != null">
|
|
|
+ org_name_a2,
|
|
|
+ </if>
|
|
|
+ <if test="well_legal_name != null">
|
|
|
+ well_legal_name,
|
|
|
+ </if>
|
|
|
+ <if test="geo_description != null">
|
|
|
+ geo_description,
|
|
|
+ </if>
|
|
|
+ <if test="structure_pos != null">
|
|
|
+ structure_pos,
|
|
|
+ </if>
|
|
|
+ <if test="create_date != null">
|
|
|
+ create_date,
|
|
|
+ </if>
|
|
|
+ <if test="completion_date != null">
|
|
|
+ completion_date,
|
|
|
+ </if>
|
|
|
+ <if test="update_date != null">
|
|
|
+ update_date,
|
|
|
+ </if>
|
|
|
+ <if test="check_date != null">
|
|
|
+ check_date,
|
|
|
+ </if>
|
|
|
+ <if test="phase != null">
|
|
|
+ phase,
|
|
|
+ </if>
|
|
|
+ <if test="wellbore_common_name != null">
|
|
|
+ wellbore_common_name,
|
|
|
+ </if>
|
|
|
+ <if test="target_formation != null">
|
|
|
+ target_formation,
|
|
|
+ </if>
|
|
|
+ <if test="authorized_md != null">
|
|
|
+ authorized_md,
|
|
|
+ </if>
|
|
|
+ <if test="authorized_tvd != null">
|
|
|
+ authorized_tvd,
|
|
|
+ </if>
|
|
|
+ <if test="bh_md != null">
|
|
|
+ bh_md,
|
|
|
+ </if>
|
|
|
+ <if test="bh_tvd != null">
|
|
|
+ bh_tvd,
|
|
|
+ </if>
|
|
|
+ <if test="geo_description_bh != null">
|
|
|
+ geo_description_bh,
|
|
|
+ </if>
|
|
|
+ <if test="ko_md != null">
|
|
|
+ ko_md,
|
|
|
+ </if>
|
|
|
+ <if test="ko_tvd != null">
|
|
|
+ ko_tvd,
|
|
|
+ </if>
|
|
|
+ <if test="project_name != null">
|
|
|
+ project_name,
|
|
|
+ </if>
|
|
|
+ <if test="project_type != null">
|
|
|
+ project_type,
|
|
|
+ </if>
|
|
|
+ <if test="project_level != null">
|
|
|
+ project_level,
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ remarks,
|
|
|
+ </if>
|
|
|
+ <if test="bz_basin != null">
|
|
|
+ bz_basin,
|
|
|
+ </if>
|
|
|
+ <if test="bz_depression != null">
|
|
|
+ bz_depression,
|
|
|
+ </if>
|
|
|
+ <if test="bz_depressed != null">
|
|
|
+ bz_depressed,
|
|
|
+ </if>
|
|
|
+ <if test="bz_structural_belt != null">
|
|
|
+ bz_structural_belt,
|
|
|
+ </if>
|
|
|
+ <if test="bz_qkdy != null">
|
|
|
+ bz_qkdy,
|
|
|
+ </if>
|
|
|
+ <if test="bz_org_name != null">
|
|
|
+ bz_org_name,
|
|
|
+ </if>
|
|
|
+ <if test="bz_dwmc != null">
|
|
|
+ bz_dwmc,
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="well_id != null">
|
|
|
+ #{well_id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_common_name != null">
|
|
|
+ #{well_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_purpose != null">
|
|
|
+ #{well_purpose,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_type != null">
|
|
|
+ #{well_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="spud_date != null">
|
|
|
+ #{spud_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="end_drilling_date != null">
|
|
|
+ #{end_drilling_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="budgeted_md != null">
|
|
|
+ #{budgeted_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="completion_formation != null">
|
|
|
+ #{completion_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="completion_method != null">
|
|
|
+ #{completion_method,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a1 != null">
|
|
|
+ #{org_name_a1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a2 != null">
|
|
|
+ #{org_name_a2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_legal_name != null">
|
|
|
+ #{well_legal_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="geo_description != null">
|
|
|
+ #{geo_description,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="structure_pos != null">
|
|
|
+ #{structure_pos,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="create_date != null">
|
|
|
+ #{create_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="completion_date != null">
|
|
|
+ #{completion_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="update_date != null">
|
|
|
+ #{update_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="check_date != null">
|
|
|
+ #{check_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="phase != null">
|
|
|
+ #{phase,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wellbore_common_name != null">
|
|
|
+ #{wellbore_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="target_formation != null">
|
|
|
+ #{target_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="authorized_md != null">
|
|
|
+ #{authorized_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="authorized_tvd != null">
|
|
|
+ #{authorized_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="bh_md != null">
|
|
|
+ #{bh_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="bh_tvd != null">
|
|
|
+ #{bh_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="geo_description_bh != null">
|
|
|
+ #{geo_description_bh,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ko_md != null">
|
|
|
+ #{ko_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="ko_tvd != null">
|
|
|
+ #{ko_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="project_name != null">
|
|
|
+ #{project_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="project_type != null">
|
|
|
+ #{project_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="project_level != null">
|
|
|
+ #{project_level,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_basin != null">
|
|
|
+ #{bz_basin,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_depression != null">
|
|
|
+ #{bz_depression,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_depressed != null">
|
|
|
+ #{bz_depressed,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_structural_belt != null">
|
|
|
+ #{bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_qkdy != null">
|
|
|
+ #{bz_qkdy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_org_name != null">
|
|
|
+ #{bz_org_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_dwmc != null">
|
|
|
+ #{bz_dwmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+ <select id="countByExample" parameterType="com.bowintek.practice.model.WellBasicInformationExample" resultType="java.lang.Long">
|
|
|
+ select count(*) from well_basic_information
|
|
|
+ <if test="_parameter != null">
|
|
|
+ <include refid="Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
+ <update id="updateByExampleSelective" parameterType="map">
|
|
|
+ update well_basic_information
|
|
|
+ <set>
|
|
|
+ <if test="row.well_id != null">
|
|
|
+ well_id = #{row.well_id,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.well_common_name != null">
|
|
|
+ well_common_name = #{row.well_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.well_purpose != null">
|
|
|
+ well_purpose = #{row.well_purpose,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.well_type != null">
|
|
|
+ well_type = #{row.well_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.spud_date != null">
|
|
|
+ spud_date = #{row.spud_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.end_drilling_date != null">
|
|
|
+ end_drilling_date = #{row.end_drilling_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.budgeted_md != null">
|
|
|
+ budgeted_md = #{row.budgeted_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.completion_formation != null">
|
|
|
+ completion_formation = #{row.completion_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.completion_method != null">
|
|
|
+ completion_method = #{row.completion_method,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.org_name_a1 != null">
|
|
|
+ org_name_a1 = #{row.org_name_a1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.org_name_a2 != null">
|
|
|
+ org_name_a2 = #{row.org_name_a2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.well_legal_name != null">
|
|
|
+ well_legal_name = #{row.well_legal_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.geo_description != null">
|
|
|
+ geo_description = #{row.geo_description,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.structure_pos != null">
|
|
|
+ structure_pos = #{row.structure_pos,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.create_date != null">
|
|
|
+ create_date = #{row.create_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.completion_date != null">
|
|
|
+ completion_date = #{row.completion_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.update_date != null">
|
|
|
+ update_date = #{row.update_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.check_date != null">
|
|
|
+ check_date = #{row.check_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="row.phase != null">
|
|
|
+ phase = #{row.phase,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.wellbore_common_name != null">
|
|
|
+ wellbore_common_name = #{row.wellbore_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.target_formation != null">
|
|
|
+ target_formation = #{row.target_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.authorized_md != null">
|
|
|
+ authorized_md = #{row.authorized_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.authorized_tvd != null">
|
|
|
+ authorized_tvd = #{row.authorized_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.bh_md != null">
|
|
|
+ bh_md = #{row.bh_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.bh_tvd != null">
|
|
|
+ bh_tvd = #{row.bh_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.geo_description_bh != null">
|
|
|
+ geo_description_bh = #{row.geo_description_bh,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.ko_md != null">
|
|
|
+ ko_md = #{row.ko_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.ko_tvd != null">
|
|
|
+ ko_tvd = #{row.ko_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="row.project_name != null">
|
|
|
+ project_name = #{row.project_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.project_type != null">
|
|
|
+ project_type = #{row.project_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.project_level != null">
|
|
|
+ project_level = #{row.project_level,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.remarks != null">
|
|
|
+ remarks = #{row.remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_basin != null">
|
|
|
+ bz_basin = #{row.bz_basin,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_depression != null">
|
|
|
+ bz_depression = #{row.bz_depression,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_depressed != null">
|
|
|
+ bz_depressed = #{row.bz_depressed,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_structural_belt != null">
|
|
|
+ bz_structural_belt = #{row.bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_qkdy != null">
|
|
|
+ bz_qkdy = #{row.bz_qkdy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_org_name != null">
|
|
|
+ bz_org_name = #{row.bz_org_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="row.bz_dwmc != null">
|
|
|
+ bz_dwmc = #{row.bz_dwmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByExample" parameterType="map">
|
|
|
+ update well_basic_information
|
|
|
+ set well_id = #{row.well_id,jdbcType=VARCHAR},
|
|
|
+ well_common_name = #{row.well_common_name,jdbcType=VARCHAR},
|
|
|
+ well_purpose = #{row.well_purpose,jdbcType=VARCHAR},
|
|
|
+ well_type = #{row.well_type,jdbcType=VARCHAR},
|
|
|
+ spud_date = #{row.spud_date,jdbcType=DATE},
|
|
|
+ end_drilling_date = #{row.end_drilling_date,jdbcType=DATE},
|
|
|
+ budgeted_md = #{row.budgeted_md,jdbcType=NUMERIC},
|
|
|
+ completion_formation = #{row.completion_formation,jdbcType=VARCHAR},
|
|
|
+ completion_method = #{row.completion_method,jdbcType=VARCHAR},
|
|
|
+ org_name_a1 = #{row.org_name_a1,jdbcType=VARCHAR},
|
|
|
+ org_name_a2 = #{row.org_name_a2,jdbcType=VARCHAR},
|
|
|
+ well_legal_name = #{row.well_legal_name,jdbcType=VARCHAR},
|
|
|
+ geo_description = #{row.geo_description,jdbcType=VARCHAR},
|
|
|
+ structure_pos = #{row.structure_pos,jdbcType=VARCHAR},
|
|
|
+ create_date = #{row.create_date,jdbcType=DATE},
|
|
|
+ completion_date = #{row.completion_date,jdbcType=DATE},
|
|
|
+ update_date = #{row.update_date,jdbcType=DATE},
|
|
|
+ check_date = #{row.check_date,jdbcType=DATE},
|
|
|
+ phase = #{row.phase,jdbcType=VARCHAR},
|
|
|
+ wellbore_common_name = #{row.wellbore_common_name,jdbcType=VARCHAR},
|
|
|
+ target_formation = #{row.target_formation,jdbcType=VARCHAR},
|
|
|
+ authorized_md = #{row.authorized_md,jdbcType=NUMERIC},
|
|
|
+ authorized_tvd = #{row.authorized_tvd,jdbcType=NUMERIC},
|
|
|
+ bh_md = #{row.bh_md,jdbcType=NUMERIC},
|
|
|
+ bh_tvd = #{row.bh_tvd,jdbcType=NUMERIC},
|
|
|
+ geo_description_bh = #{row.geo_description_bh,jdbcType=VARCHAR},
|
|
|
+ ko_md = #{row.ko_md,jdbcType=NUMERIC},
|
|
|
+ ko_tvd = #{row.ko_tvd,jdbcType=NUMERIC},
|
|
|
+ project_name = #{row.project_name,jdbcType=VARCHAR},
|
|
|
+ project_type = #{row.project_type,jdbcType=VARCHAR},
|
|
|
+ project_level = #{row.project_level,jdbcType=VARCHAR},
|
|
|
+ remarks = #{row.remarks,jdbcType=VARCHAR},
|
|
|
+ bz_basin = #{row.bz_basin,jdbcType=VARCHAR},
|
|
|
+ bz_depression = #{row.bz_depression,jdbcType=VARCHAR},
|
|
|
+ bz_depressed = #{row.bz_depressed,jdbcType=VARCHAR},
|
|
|
+ bz_structural_belt = #{row.bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ bz_qkdy = #{row.bz_qkdy,jdbcType=VARCHAR},
|
|
|
+ bz_org_name = #{row.bz_org_name,jdbcType=VARCHAR},
|
|
|
+ bz_dwmc = #{row.bz_dwmc,jdbcType=VARCHAR}
|
|
|
+ <if test="example != null">
|
|
|
+ <include refid="Update_By_Example_Where_Clause" />
|
|
|
+ </if>
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKeySelective" parameterType="com.bowintek.practice.model.WellBasicInformation">
|
|
|
+ update well_basic_information
|
|
|
+ <set>
|
|
|
+ <if test="well_common_name != null">
|
|
|
+ well_common_name = #{well_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_purpose != null">
|
|
|
+ well_purpose = #{well_purpose,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_type != null">
|
|
|
+ well_type = #{well_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="spud_date != null">
|
|
|
+ spud_date = #{spud_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="end_drilling_date != null">
|
|
|
+ end_drilling_date = #{end_drilling_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="budgeted_md != null">
|
|
|
+ budgeted_md = #{budgeted_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="completion_formation != null">
|
|
|
+ completion_formation = #{completion_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="completion_method != null">
|
|
|
+ completion_method = #{completion_method,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a1 != null">
|
|
|
+ org_name_a1 = #{org_name_a1,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="org_name_a2 != null">
|
|
|
+ org_name_a2 = #{org_name_a2,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="well_legal_name != null">
|
|
|
+ well_legal_name = #{well_legal_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="geo_description != null">
|
|
|
+ geo_description = #{geo_description,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="structure_pos != null">
|
|
|
+ structure_pos = #{structure_pos,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="create_date != null">
|
|
|
+ create_date = #{create_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="completion_date != null">
|
|
|
+ completion_date = #{completion_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="update_date != null">
|
|
|
+ update_date = #{update_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="check_date != null">
|
|
|
+ check_date = #{check_date,jdbcType=DATE},
|
|
|
+ </if>
|
|
|
+ <if test="phase != null">
|
|
|
+ phase = #{phase,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="wellbore_common_name != null">
|
|
|
+ wellbore_common_name = #{wellbore_common_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="target_formation != null">
|
|
|
+ target_formation = #{target_formation,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="authorized_md != null">
|
|
|
+ authorized_md = #{authorized_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="authorized_tvd != null">
|
|
|
+ authorized_tvd = #{authorized_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="bh_md != null">
|
|
|
+ bh_md = #{bh_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="bh_tvd != null">
|
|
|
+ bh_tvd = #{bh_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="geo_description_bh != null">
|
|
|
+ geo_description_bh = #{geo_description_bh,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="ko_md != null">
|
|
|
+ ko_md = #{ko_md,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="ko_tvd != null">
|
|
|
+ ko_tvd = #{ko_tvd,jdbcType=NUMERIC},
|
|
|
+ </if>
|
|
|
+ <if test="project_name != null">
|
|
|
+ project_name = #{project_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="project_type != null">
|
|
|
+ project_type = #{project_type,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="project_level != null">
|
|
|
+ project_level = #{project_level,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="remarks != null">
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_basin != null">
|
|
|
+ bz_basin = #{bz_basin,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_depression != null">
|
|
|
+ bz_depression = #{bz_depression,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_depressed != null">
|
|
|
+ bz_depressed = #{bz_depressed,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_structural_belt != null">
|
|
|
+ bz_structural_belt = #{bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_qkdy != null">
|
|
|
+ bz_qkdy = #{bz_qkdy,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_org_name != null">
|
|
|
+ bz_org_name = #{bz_org_name,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ <if test="bz_dwmc != null">
|
|
|
+ bz_dwmc = #{bz_dwmc,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where well_id = #{well_id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+ <update id="updateByPrimaryKey" parameterType="com.bowintek.practice.model.WellBasicInformation">
|
|
|
+ update well_basic_information
|
|
|
+ set well_common_name = #{well_common_name,jdbcType=VARCHAR},
|
|
|
+ well_purpose = #{well_purpose,jdbcType=VARCHAR},
|
|
|
+ well_type = #{well_type,jdbcType=VARCHAR},
|
|
|
+ spud_date = #{spud_date,jdbcType=DATE},
|
|
|
+ end_drilling_date = #{end_drilling_date,jdbcType=DATE},
|
|
|
+ budgeted_md = #{budgeted_md,jdbcType=NUMERIC},
|
|
|
+ completion_formation = #{completion_formation,jdbcType=VARCHAR},
|
|
|
+ completion_method = #{completion_method,jdbcType=VARCHAR},
|
|
|
+ org_name_a1 = #{org_name_a1,jdbcType=VARCHAR},
|
|
|
+ org_name_a2 = #{org_name_a2,jdbcType=VARCHAR},
|
|
|
+ well_legal_name = #{well_legal_name,jdbcType=VARCHAR},
|
|
|
+ geo_description = #{geo_description,jdbcType=VARCHAR},
|
|
|
+ structure_pos = #{structure_pos,jdbcType=VARCHAR},
|
|
|
+ create_date = #{create_date,jdbcType=DATE},
|
|
|
+ completion_date = #{completion_date,jdbcType=DATE},
|
|
|
+ update_date = #{update_date,jdbcType=DATE},
|
|
|
+ check_date = #{check_date,jdbcType=DATE},
|
|
|
+ phase = #{phase,jdbcType=VARCHAR},
|
|
|
+ wellbore_common_name = #{wellbore_common_name,jdbcType=VARCHAR},
|
|
|
+ target_formation = #{target_formation,jdbcType=VARCHAR},
|
|
|
+ authorized_md = #{authorized_md,jdbcType=NUMERIC},
|
|
|
+ authorized_tvd = #{authorized_tvd,jdbcType=NUMERIC},
|
|
|
+ bh_md = #{bh_md,jdbcType=NUMERIC},
|
|
|
+ bh_tvd = #{bh_tvd,jdbcType=NUMERIC},
|
|
|
+ geo_description_bh = #{geo_description_bh,jdbcType=VARCHAR},
|
|
|
+ ko_md = #{ko_md,jdbcType=NUMERIC},
|
|
|
+ ko_tvd = #{ko_tvd,jdbcType=NUMERIC},
|
|
|
+ project_name = #{project_name,jdbcType=VARCHAR},
|
|
|
+ project_type = #{project_type,jdbcType=VARCHAR},
|
|
|
+ project_level = #{project_level,jdbcType=VARCHAR},
|
|
|
+ remarks = #{remarks,jdbcType=VARCHAR},
|
|
|
+ bz_basin = #{bz_basin,jdbcType=VARCHAR},
|
|
|
+ bz_depression = #{bz_depression,jdbcType=VARCHAR},
|
|
|
+ bz_depressed = #{bz_depressed,jdbcType=VARCHAR},
|
|
|
+ bz_structural_belt = #{bz_structural_belt,jdbcType=VARCHAR},
|
|
|
+ bz_qkdy = #{bz_qkdy,jdbcType=VARCHAR},
|
|
|
+ bz_org_name = #{bz_org_name,jdbcType=VARCHAR},
|
|
|
+ bz_dwmc = #{bz_dwmc,jdbcType=VARCHAR}
|
|
|
+ where well_id = #{well_id,jdbcType=VARCHAR}
|
|
|
+ </update>
|
|
|
+</mapper>
|