SnapshotEventMapper.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  3. "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  4. <mapper namespace="com.zhyc.xps.aqpt.mapper.SnapshotEventMapper">
  5. <resultMap id="BaseResultMap" type="com.zhyc.xps.aqpt.entity.SnapshotEvent">
  6. <result column="oc_id" property="ocId" jdbcType="BIGINT" />
  7. <result column="snapshot_id" property="snapshotId" jdbcType="BIGINT" />
  8. <result column="event_id" property="eventId" jdbcType="BIGINT" />
  9. <result column="group_id" property="groupId" jdbcType="BIGINT" />
  10. <result column="position_id" property="positionId" jdbcType="BIGINT" />
  11. <result column="account_id" property="accountId" jdbcType="BIGINT" />
  12. <result column="event_time" property="eventTime" jdbcType="DATE" />
  13. <result column="event_code" property="eventCode" jdbcType="VARCHAR" />
  14. <result column="event_title" property="eventTitle" jdbcType="VARCHAR" />
  15. <result column="event_remark" property="eventRemark" jdbcType="VARCHAR" />
  16. <result column="created_by" property="createdBy" jdbcType="BIGINT" />
  17. <result column="created_at" property="createdAt" jdbcType="DATE" />
  18. </resultMap>
  19. <sql id="Base_Column_List">
  20. oc_id,
  21. snapshot_id,
  22. event_id,
  23. account_id,
  24. position_id,
  25. group_id,
  26. event_time,
  27. event_code,
  28. event_title,
  29. event_remark,
  30. created_by,
  31. created_at,
  32. updated_by,
  33. updated_at
  34. </sql>
  35. <resultMap id="ExtResultMap" type="com.zhyc.xps.aqpt.dto.SnapshotEventDto" extends="BaseResultMap">
  36. <result column="account_name" property="accountName" jdbcType="VARCHAR" />
  37. <result column="position_name" property="positionName" jdbcType="VARCHAR" />
  38. <result column="group_name" property="groupName" jdbcType="VARCHAR" />
  39. </resultMap>
  40. <sql id="Ext_Column_List" >
  41. A.oc_id,
  42. A.snapshot_id,
  43. A.event_id,
  44. A.account_id,
  45. A.position_id,
  46. A.group_id,
  47. A.account_id_to,
  48. A.position_id_to,
  49. A.group_id_to,
  50. B.account_name,
  51. C.position_name,
  52. D.group_name,
  53. A.event_time,
  54. A.event_code,
  55. A.event_title,
  56. A.event_remark,
  57. A.created_by,
  58. A.created_at
  59. </sql>
  60. </mapper>