12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?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.xinxin.topro.base.mysqlmapper.ExecRecordDetailMapper" >
- <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
- <id column="POD_ID" property="podId" jdbcType="INTEGER" />
- <result column="PO_ID" property="poId" jdbcType="INTEGER" />
- <result column="POD_Code" property="podCode" jdbcType="VARCHAR" />
- <result column="POD_Value" property="podValue" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- POD_ID, PO_ID, POD_Code, POD_Value
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from pda_order_detail
- where POD_ID = #{podId,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from pda_order_detail
- where POD_ID = #{podId,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
- insert into pda_order_detail (POD_ID, PO_ID, POD_Code,
- POD_Value)
- values (#{podId,jdbcType=INTEGER}, #{poId,jdbcType=INTEGER}, #{podCode,jdbcType=VARCHAR},
- #{podValue,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
- insert into pda_order_detail
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="podId != null" >
- POD_ID,
- </if>
- <if test="poId != null" >
- PO_ID,
- </if>
- <if test="podCode != null" >
- POD_Code,
- </if>
- <if test="podValue != null" >
- POD_Value,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="podId != null" >
- #{podId,jdbcType=INTEGER},
- </if>
- <if test="poId != null" >
- #{poId,jdbcType=INTEGER},
- </if>
- <if test="podCode != null" >
- #{podCode,jdbcType=VARCHAR},
- </if>
- <if test="podValue != null" >
- #{podValue,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
- update pda_order_detail
- <set >
- <if test="poId != null" >
- PO_ID = #{poId,jdbcType=INTEGER},
- </if>
- <if test="podCode != null" >
- POD_Code = #{podCode,jdbcType=VARCHAR},
- </if>
- <if test="podValue != null" >
- POD_Value = #{podValue,jdbcType=VARCHAR},
- </if>
- </set>
- where POD_ID = #{podId,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
- update pda_order_detail
- set PO_ID = #{poId,jdbcType=INTEGER},
- POD_Code = #{podCode,jdbcType=VARCHAR},
- POD_Value = #{podValue,jdbcType=VARCHAR}
- where POD_ID = #{podId,jdbcType=INTEGER}
- </update>
- </mapper>
|