ExecRecordDetailMapper.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.xinxin.topro.base.mysqlmapper.ExecRecordDetailMapper" >
  4. <resultMap id="BaseResultMap" type="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
  5. <id column="POD_ID" property="podId" jdbcType="INTEGER" />
  6. <result column="PO_ID" property="poId" jdbcType="INTEGER" />
  7. <result column="POD_Code" property="podCode" jdbcType="VARCHAR" />
  8. <result column="POD_Value" property="podValue" jdbcType="VARCHAR" />
  9. </resultMap>
  10. <sql id="Base_Column_List" >
  11. POD_ID, PO_ID, POD_Code, POD_Value
  12. </sql>
  13. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
  14. select
  15. <include refid="Base_Column_List" />
  16. from pda_order_detail
  17. where POD_ID = #{podId,jdbcType=INTEGER}
  18. </select>
  19. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
  20. delete from pda_order_detail
  21. where POD_ID = #{podId,jdbcType=INTEGER}
  22. </delete>
  23. <insert id="insert" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
  24. insert into pda_order_detail (POD_ID, PO_ID, POD_Code,
  25. POD_Value)
  26. values (#{podId,jdbcType=INTEGER}, #{poId,jdbcType=INTEGER}, #{podCode,jdbcType=VARCHAR},
  27. #{podValue,jdbcType=VARCHAR})
  28. </insert>
  29. <insert id="insertSelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
  30. insert into pda_order_detail
  31. <trim prefix="(" suffix=")" suffixOverrides="," >
  32. <if test="podId != null" >
  33. POD_ID,
  34. </if>
  35. <if test="poId != null" >
  36. PO_ID,
  37. </if>
  38. <if test="podCode != null" >
  39. POD_Code,
  40. </if>
  41. <if test="podValue != null" >
  42. POD_Value,
  43. </if>
  44. </trim>
  45. <trim prefix="values (" suffix=")" suffixOverrides="," >
  46. <if test="podId != null" >
  47. #{podId,jdbcType=INTEGER},
  48. </if>
  49. <if test="poId != null" >
  50. #{poId,jdbcType=INTEGER},
  51. </if>
  52. <if test="podCode != null" >
  53. #{podCode,jdbcType=VARCHAR},
  54. </if>
  55. <if test="podValue != null" >
  56. #{podValue,jdbcType=VARCHAR},
  57. </if>
  58. </trim>
  59. </insert>
  60. <update id="updateByPrimaryKeySelective" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
  61. update pda_order_detail
  62. <set >
  63. <if test="poId != null" >
  64. PO_ID = #{poId,jdbcType=INTEGER},
  65. </if>
  66. <if test="podCode != null" >
  67. POD_Code = #{podCode,jdbcType=VARCHAR},
  68. </if>
  69. <if test="podValue != null" >
  70. POD_Value = #{podValue,jdbcType=VARCHAR},
  71. </if>
  72. </set>
  73. where POD_ID = #{podId,jdbcType=INTEGER}
  74. </update>
  75. <update id="updateByPrimaryKey" parameterType="com.xinxin.topro.base.mysqlmodel.ExecRecordDetail" >
  76. update pda_order_detail
  77. set PO_ID = #{poId,jdbcType=INTEGER},
  78. POD_Code = #{podCode,jdbcType=VARCHAR},
  79. POD_Value = #{podValue,jdbcType=VARCHAR}
  80. where POD_ID = #{podId,jdbcType=INTEGER}
  81. </update>
  82. </mapper>