QualityAuditorMapper.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. ~ <<
  4. ~ Davinci
  5. ~ ==
  6. ~ Copyright (C) 2016 - 2019 EDP
  7. ~ ==
  8. ~ Licensed under the Apache License, Version 2.0 (the "License");
  9. ~ you may not use this file except in compliance with the License.
  10. ~ You may obtain a copy of the License at
  11. ~ http://www.apache.org/licenses/LICENSE-2.0
  12. ~ Unless required by applicable law or agreed to in writing, software
  13. ~ distributed under the License is distributed on an "AS IS" BASIS,
  14. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ~ See the License for the specific language governing permissions and
  16. ~ limitations under the License.
  17. ~ >>
  18. ~
  19. -->
  20. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  21. <mapper namespace="edp.davinci.dao.QualityAuditorMapper">
  22. <insert id="insert" parameterType="edp.davinci.model.QualityAuditor">
  23. insert into `quality_auditor`
  24. <trim prefix="(" suffix=")" suffixOverrides=",">
  25. <if test="auditorCode != null">
  26. auditor_code,
  27. </if>
  28. <if test="auditorTime != null">
  29. auditor_time,
  30. </if>
  31. <if test="taskId != null">
  32. task_id,
  33. </if>
  34. <if test="integrityCorrect != null">
  35. integrity_correct,
  36. </if>
  37. <if test="integrityError != null">
  38. `integrity_error`,
  39. </if>
  40. <if test="uniformityCorrect != null">
  41. `uniformity_correct`,
  42. </if>
  43. <if test="uniformityError != null">
  44. `uniformity_error`,
  45. </if>
  46. <if test="normativeCorrect != null">
  47. `normative_correct`,
  48. </if>
  49. <if test="normativeError != null">
  50. `normative_error`,
  51. </if>
  52. <if test="accuracyCorrect != null">
  53. `accuracy_correct`,
  54. </if>
  55. <if test="accuracyError != null">
  56. `accuracy_error`,
  57. </if>
  58. `create_by`,
  59. `create_time`
  60. </trim>
  61. <trim prefix="values (" suffix=")" suffixOverrides=",">
  62. <if test="auditorCode != null">
  63. #{auditorCode,jdbcType=VARCHAR},
  64. </if>
  65. <if test="auditorTime != null">
  66. #{auditorTime,jdbcType=TIMESTAMP},
  67. </if>
  68. <if test="taskId != null">
  69. #{taskId,jdbcType=BIGINT},
  70. </if>
  71. <if test="integrityCorrect != null">
  72. #{integrityCorrect,jdbcType=INT},
  73. </if>
  74. <if test="integrityError != null">
  75. #{integrityError,jdbcType=INT},
  76. </if>
  77. <if test="uniformityCorrect != null">
  78. #{uniformityCorrect,jdbcType=INT},
  79. </if>
  80. <if test="uniformityError != null">
  81. #{uniformityError,jdbcType=INT},
  82. </if>
  83. <if test="normativeCorrect != null">
  84. #{normativeCorrect,jdbcType=INT},
  85. </if>
  86. <if test="normativeError != null">
  87. #{normativeError,jdbcType=INT},
  88. </if>
  89. <if test="accuracyCorrect != null">
  90. #{accuracyCorrect,jdbcType=INT},
  91. </if>
  92. <if test="accuracyError != null">
  93. #{accuracyError,jdbcType=INT},
  94. </if>
  95. #{createBy,jdbcType=BIGINT},
  96. #{createTime,jdbcType=TIMESTAMP}
  97. </trim>
  98. </insert>
  99. </mapper>