CentermonitorTCameraMapper.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.sooka.sponest.monitor.camera.mapper.CentermonitorTCameraMapper">
  6. <resultMap type="CentermonitorTCamera" id="CentermonitorTCameraResult">
  7. <result property="id" column="id"/>
  8. <result property="createBy" column="create_by"/>
  9. <result property="createTime" column="create_time"/>
  10. <result property="updateBy" column="update_by"/>
  11. <result property="updateTime" column="update_time"/>
  12. <result property="dataStatus" column="data_status"/>
  13. <result property="dataDeptId" column="data_dept_id"/>
  14. <result property="cameraId" column="camera_id"/>
  15. <result property="cameraName" column="camera_name"/>
  16. <result property="cameraIp" column="camera_ip"/>
  17. <result property="cameraPort" column="camera_port"/>
  18. <result property="cameraAccount" column="camera_account"/>
  19. <result property="cameraPasword" column="camera_pasword"/>
  20. <result property="cameraCode" column="camera_code"/>
  21. <result property="cameraFactory" column="camera_factory"/>
  22. <result property="cameraRegion" column="camera_region"/>
  23. <result property="cameraRadius" column="camera_radius"/>
  24. <result property="height" column="height"/>
  25. <result property="longitude" column="longitude"/>
  26. <result property="latitude" column="latitude"/>
  27. <result property="cameraType" column="camera_type"/>
  28. <result property="channelCode" column="channel_code"/>
  29. <result property="distance" column="distance"/>
  30. <result property="deptLongitude" column="dept_longitude"/>
  31. <result property="deptLatitude" column="dept_latitude"/>
  32. <result property="operatorType" column="operator_type"/>
  33. <result property="cameraUse" column="camera_use"/>
  34. <result property="channelNum" column="channel_num"/>
  35. <result property="workingStatus" column="working_status"/>
  36. <result property="offlineReason" column="offline_reason"/>
  37. <result property="convergencePlatform" column="convergence_platform"/>
  38. <result property="cameraImg" column="camera_img"/>
  39. <result property="deviceCode" column="device_code"/>
  40. <result property="deviceSn" column="device_sn"/>
  41. <result property="deviceProtocolType" column="device_protocol_type"/>
  42. <result property="deviceLoginType" column="device_login_type"/>
  43. </resultMap>
  44. <resultMap type="CentermonitorTCameraImg" id="CentermonitorTCameraImgResult">
  45. <result property="id" column="id"/>
  46. <result property="cameraId" column="camera_id"/>
  47. <result property="cameraImg" column="camera_img"/>
  48. </resultMap>
  49. <sql id="selectCentermonitorTCameraVo">
  50. select id,
  51. create_by,
  52. create_time,
  53. update_by,
  54. update_time,
  55. data_status,
  56. data_dept_id,
  57. camera_name,
  58. camera_ip,
  59. camera_port,
  60. camera_type,
  61. camera_account,
  62. camera_pasword,
  63. camera_code,
  64. camera_factory,
  65. camera_region,
  66. camera_radius,
  67. height,
  68. longitude,
  69. latitude,
  70. operator_type,
  71. camera_use,
  72. channel_num,
  73. working_status,
  74. offline_reason,
  75. convergence_platform
  76. from centermonitor_t_camera
  77. </sql>
  78. <select id="selectCentermonitorTCameraById" parameterType="String" resultMap="CentermonitorTCameraResult">
  79. <include refid="selectCentermonitorTCameraVo"/>
  80. where id = #{id}
  81. </select>
  82. <select id="SelectByIdcreameType" parameterType="java.lang.String" resultType="CentermonitorTCamera">
  83. select type, type_name as typeName
  84. from centermonitor_t_type
  85. where camera_id = #{cameraId}
  86. </select>
  87. <select id="selectCentermonitorTCameraImgByCameraId" parameterType="java.util.ArrayList"
  88. resultMap="CentermonitorTCameraImgResult">
  89. select *
  90. from centermonitor_t_camera_img
  91. where camera_id = #{cameraId}
  92. </select>
  93. </mapper>