|  |  |  | 
|---|
|  |  |  | <!--@Table pr_st_soil--> | 
|---|
|  |  |  | <id column="id" jdbcType="BIGINT" property="id" /> | 
|---|
|  |  |  | <result column="no" jdbcType="INTEGER" property="no" /> | 
|---|
|  |  |  | <result column="fbox_id" jdbcType="VARCHAR" property="fboxId" /> | 
|---|
|  |  |  | <result column="name" jdbcType="VARCHAR" property="name" /> | 
|---|
|  |  |  | <result column="lng" jdbcType="DOUBLE" property="lng" /> | 
|---|
|  |  |  | <result column="lat" jdbcType="DOUBLE" property="lat" /> | 
|---|
|  |  |  | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  | <sql id="Base_Column_List"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | id, `no`, `name`, lng, lat, remark, deleted | 
|---|
|  |  |  | id, fbox_id,`no`, `name`, lng, lat, remark, deleted | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <sql id="part_Column_List"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | id, `no`, `name`, lng, lat, remark | 
|---|
|  |  |  | id, fbox_id, `no`, `name`, lng, lat, remark | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <sql id="simple_Column_List"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoPr.PrStSoil"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | insert into pr_st_soil (id, `no`, `name`, lng, | 
|---|
|  |  |  | insert into pr_st_soil (id, fbox_id, `no`, `name`, lng, | 
|---|
|  |  |  | lat, remark, deleted) | 
|---|
|  |  |  | values (#{id,jdbcType=BIGINT}, #{no,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{lng,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{remark,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{deleted,jdbcType=TINYINT}) | 
|---|
|  |  |  | values (#{id,jdbcType=BIGINT}, #{fboxId,jdbcType=BIGINT}, #{no,jdbcType=INTEGER}, | 
|---|
|  |  |  | #{name,jdbcType=VARCHAR}, #{lng,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, | 
|---|
|  |  |  | #{remark,jdbcType=VARCHAR},#{deleted,jdbcType=TINYINT}) | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoPr.PrStSoil"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="fboxId != null"> | 
|---|
|  |  |  | fbox_id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="no != null"> | 
|---|
|  |  |  | `no`, | 
|---|
|  |  |  | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | #{id,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="fboxId != null"> | 
|---|
|  |  |  | #{fboxId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="no != null"> | 
|---|
|  |  |  | #{no,jdbcType=INTEGER}, | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | update pr_st_soil | 
|---|
|  |  |  | <set> | 
|---|
|  |  |  | <if test="fboxId != null"> | 
|---|
|  |  |  | fbox_id = #{fboxId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="no != null"> | 
|---|
|  |  |  | `no` = #{no,jdbcType=INTEGER}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoPr.PrStSoil"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | update pr_st_soil | 
|---|
|  |  |  | set `no` = #{no,jdbcType=INTEGER}, | 
|---|
|  |  |  | set fbox_id = #{fboxId,jdbcType=INTEGER}, | 
|---|
|  |  |  | `no` = #{no,jdbcType=INTEGER}, | 
|---|
|  |  |  | `name` = #{name,jdbcType=VARCHAR}, | 
|---|
|  |  |  | lng = #{lng,jdbcType=DOUBLE}, | 
|---|
|  |  |  | lat = #{lat,jdbcType=DOUBLE}, | 
|---|