GisSurveyJobStatusTrackMapper.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.shkpr.service.alambizplugin.dbdao.mapper.GisSurveyJobStatusTrackMapper">
  4. <resultMap id="BaseResultMap" type="com.shkpr.service.alambizplugin.dto.GisSurveyJobStatusTrack">
  5. <!--@Table k3_gis_survey_job_status_track-->
  6. <id column="id" jdbcType="BIGINT" property="id"/>
  7. <result column="job_id" jdbcType="VARCHAR" property="jobId"/>
  8. <result column="operator" jdbcType="VARCHAR" property="operator"/>
  9. <result column="action" jdbcType="SMALLINT" property="action"/>
  10. <result column="status" jdbcType="SMALLINT" property="status"/>
  11. <result column="receiver" jdbcType="VARCHAR" property="receiver"/>
  12. <result column="create_time" jdbcType="BIGINT" property="createTime"/>
  13. <result column="comment" jdbcType="VARCHAR" property="comment"/>
  14. </resultMap>
  15. <insert id="save" parameterType="com.shkpr.service.alambizplugin.dto.GisSurveyJobStatusTrack">
  16. insert into k3_gis_survey_job_status_track
  17. <trim prefix="(" suffix=")" suffixOverrides=",">
  18. <if test="id != null">
  19. id,
  20. </if>
  21. <if test="jobId != null">
  22. job_id,
  23. </if>
  24. <if test="operator != null">
  25. "operator",
  26. </if>
  27. <if test="action != null">
  28. "action",
  29. </if>
  30. <if test="status != null">
  31. "status",
  32. </if>
  33. <if test="receiver != null">
  34. receiver,
  35. </if>
  36. <if test="createTime != null">
  37. create_time,
  38. </if>
  39. <if test="comment != null">
  40. "comment",
  41. </if>
  42. </trim>
  43. <trim prefix="values (" suffix=")" suffixOverrides=",">
  44. <if test="id != null">
  45. #{id,jdbcType=BIGINT},
  46. </if>
  47. <if test="jobId != null">
  48. #{jobId,jdbcType=VARCHAR},
  49. </if>
  50. <if test="operator != null">
  51. #{operator,jdbcType=VARCHAR},
  52. </if>
  53. <if test="action != null">
  54. #{action,jdbcType=SMALLINT},
  55. </if>
  56. <if test="status != null">
  57. #{status,jdbcType=SMALLINT},
  58. </if>
  59. <if test="receiver != null">
  60. #{receiver,jdbcType=VARCHAR},
  61. </if>
  62. <if test="createTime != null">
  63. #{createTime,jdbcType=BIGINT},
  64. </if>
  65. <if test="comment != null">
  66. #{comment,jdbcType=VARCHAR},
  67. </if>
  68. </trim>
  69. </insert>
  70. </mapper>