HeiYanMapper.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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.ruoyi.system.mapper.HeiYanMapper">
  6. <select id="queryDeviceStatic" resultType="java.util.Map">
  7. select snapPos point, count(1) count
  8. from ship_snap_address
  9. group by snapPos
  10. </select>
  11. <select id="queryDeviceCount" resultType="java.lang.Integer">
  12. select count(1)
  13. from ship_snap_address
  14. </select>
  15. <select id="queryDeviceList" resultType="com.ruoyi.system.domain.DeviceBo">
  16. select updateTime,
  17. concat(longitude, ',', latitude) as latilongti,
  18. name,
  19. snapPos as monitorName,
  20. type as deviceType,
  21. case status when 'ENABLED' then '在线' when 'DISABLED' then '离线' end status,
  22. orgName,
  23. 'heiyan' as source
  24. from ship_snap_address
  25. </select>
  26. <select id="queryById" resultType="java.util.Map">
  27. select id,
  28. createBy,
  29. date_format(createTime, '%Y-%m-%d %H:%i:%s') as createTime,
  30. updateBy,
  31. date_format(updateTime, '%Y-%m-%d %H:%i:%s') as updateTime,
  32. aisDist,
  33. aisDrt,
  34. aisDst,
  35. aisMmsi,
  36. aisMmsi as mmsi,
  37. aisShipLen,
  38. aisShipName,
  39. aisShipSpd,
  40. aisShipType,
  41. aisShipWidth,
  42. isAbnormalSize,
  43. latitude,
  44. rcgSoot,
  45. lockSeq,
  46. longitude,
  47. rcgCargoType,
  48. rcgDeadweightTon,
  49. rcgDist,
  50. rcgDrt,
  51. rcgIsFleet,
  52. rcgLoadSts,
  53. rcgShipHeightAboveWater,
  54. rcgShipLen,
  55. rcgShipName,
  56. rcgShipSpd,
  57. rcgShipType,
  58. rcgShipWidth,
  59. regportName,
  60. remark,
  61. snapImPath,
  62. snapPos,
  63. snapPos as monitorPointName,
  64. snapTime,
  65. snapTimeFmt,
  66. snapTimeFmt as createTime,
  67. status,
  68. textFeatureLabel,
  69. textImgUrl,
  70. rcgShipTypeDetail,
  71. useWarn,
  72. warnLabelList,
  73. qrcode,
  74. shipNameDirection,
  75. shipNameValid,
  76. sootFeatureLabel,
  77. sootImgUrl
  78. from ship_recognition
  79. where id = #{id}
  80. </select>
  81. </mapper>