| <?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.dy.pipIrrGlobal.daoMd.MdParamMapper"> | 
|   <resultMap id="BaseResultMap" type="com.dy.pipIrrGlobal.pojoMd.MdParam"> | 
|     <!--@mbg.generated--> | 
|     <!--@Table md_param--> | 
|     <id column="id" jdbcType="BIGINT" property="id" /> | 
|     <result column="crops_id" jdbcType="BIGINT" property="cropsId" /> | 
|     <result column="name" jdbcType="VARCHAR" property="name" /> | 
|     <result column="value" jdbcType="FLOAT" property="value" /> | 
|     <result column="sense" jdbcType="VARCHAR" property="sense" /> | 
|   </resultMap> | 
|   <sql id="Base_Column_List"> | 
|     <!--@mbg.generated--> | 
|     id, crops_id, `name`, `value`, sense | 
|   </sql> | 
|   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
|     <!--@mbg.generated--> | 
|     select  | 
|     <include refid="Base_Column_List" /> | 
|     from md_param | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </select> | 
|   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
|     <!--@mbg.generated--> | 
|     delete from md_param | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </delete> | 
|   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoMd.MdParam"> | 
|     <!--@mbg.generated--> | 
|     insert into md_param (id, crops_id, `name`,  | 
|       `value`, sense) | 
|     values (#{id,jdbcType=BIGINT}, #{cropsId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR},  | 
|       #{value,jdbcType=FLOAT}, #{sense,jdbcType=VARCHAR}) | 
|   </insert> | 
|   <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoMd.MdParam"> | 
|     <!--@mbg.generated--> | 
|     insert into md_param | 
|     <trim prefix="(" suffix=")" suffixOverrides=","> | 
|       <if test="id != null"> | 
|         id, | 
|       </if> | 
|       <if test="cropsId != null"> | 
|         crops_id, | 
|       </if> | 
|       <if test="name != null"> | 
|         `name`, | 
|       </if> | 
|       <if test="value != null"> | 
|         `value`, | 
|       </if> | 
|       <if test="sense != null"> | 
|         sense, | 
|       </if> | 
|     </trim> | 
|     <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|       <if test="id != null"> | 
|         #{id,jdbcType=BIGINT}, | 
|       </if> | 
|       <if test="cropsId != null"> | 
|         #{cropsId,jdbcType=BIGINT}, | 
|       </if> | 
|       <if test="name != null"> | 
|         #{name,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="value != null"> | 
|         #{value,jdbcType=FLOAT}, | 
|       </if> | 
|       <if test="sense != null"> | 
|         #{sense,jdbcType=VARCHAR}, | 
|       </if> | 
|     </trim> | 
|   </insert> | 
|   <update id="updateByPrimaryKeySelective" parameterType="com.dy.pipIrrGlobal.pojoMd.MdParam"> | 
|     <!--@mbg.generated--> | 
|     update md_param | 
|     <set> | 
|       <if test="cropsId != null"> | 
|         crops_id = #{cropsId,jdbcType=BIGINT}, | 
|       </if> | 
|       <if test="name != null"> | 
|         `name` = #{name,jdbcType=VARCHAR}, | 
|       </if> | 
|       <if test="value != null"> | 
|         `value` = #{value,jdbcType=FLOAT}, | 
|       </if> | 
|       <if test="sense != null"> | 
|         sense = #{sense,jdbcType=VARCHAR}, | 
|       </if> | 
|     </set> | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </update> | 
|   <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoMd.MdParam"> | 
|     <!--@mbg.generated--> | 
|     update md_param | 
|     set crops_id = #{cropsId,jdbcType=BIGINT}, | 
|       `name` = #{name,jdbcType=VARCHAR}, | 
|       `value` = #{value,jdbcType=FLOAT}, | 
|       sense = #{sense,jdbcType=VARCHAR} | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </update> | 
|   | 
|   | 
|   | 
|   <select id="selectById" parameterType="java.lang.Long" resultType="com.dy.pipIrrGlobal.voMd.VoParam"> | 
|     <!--@mbg.generated--> | 
|     select | 
|     <include refid="Base_Column_List" /> | 
|     from md_param | 
|     where id = #{id,jdbcType=BIGINT} | 
|   </select> | 
|   | 
|   | 
|   <select id="selectAll" resultType="com.dy.pipIrrGlobal.voMd.VoParam"> | 
|     select | 
|     <include refid="Base_Column_List" > | 
|       <property name="alias" value="bd"/> | 
|     </include> | 
|     from md_param tb | 
|   </select> | 
|   | 
| </mapper> |