523096025 3 vuotta sitten
vanhempi
commit
bf3c5aad3d
49 muutettua tiedostoa jossa 1631 lisäystä ja 0 poistoa
  1. 67 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/BaseHiveFarmController.java
  2. 33 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBaseBeehiveController.java
  3. 34 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBaseStationController.java
  4. 34 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBeehiveController.java
  5. 22 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBeehiveStatusController.java
  6. 22 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveStationController.java
  7. 22 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveStationStatusController.java
  8. 22 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveVideoAddrController.java
  9. 39 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/BaseHiveFarm.java
  10. 94 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBaseBeehive.java
  11. 85 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBaseStation.java
  12. 107 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBeehive.java
  13. 62 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBeehiveStatus.java
  14. 97 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveStation.java
  15. 67 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveStationStatus.java
  16. 61 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveVideoAddr.java
  17. 80 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/dto/HiveBaseBeehiveDto.java
  18. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/BaseHiveFarmMapper.java
  19. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBaseBeehiveMapper.java
  20. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBaseStationMapper.java
  21. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBeehiveMapper.java
  22. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBeehiveStatusMapper.java
  23. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveStationMapper.java
  24. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveStationStatusMapper.java
  25. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveVideoAddrMapper.java
  26. 21 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IBaseHiveFarmService.java
  27. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBaseBeehiveService.java
  28. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBaseStationService.java
  29. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBeehiveService.java
  30. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBeehiveStatusService.java
  31. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveStationService.java
  32. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveStationStatusService.java
  33. 16 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveVideoAddrService.java
  34. 51 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/BaseHiveFarmServiceImpl.java
  35. 46 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBaseBeehiveServiceImpl.java
  36. 40 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBaseStationServiceImpl.java
  37. 44 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBeehiveServiceImpl.java
  38. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBeehiveStatusServiceImpl.java
  39. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveStationServiceImpl.java
  40. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveStationStatusServiceImpl.java
  41. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveVideoAddrServiceImpl.java
  42. 14 0
      beeboxs/src/main/resources/mapper/BaseHiveFarmMapper.xml
  43. 22 0
      beeboxs/src/main/resources/mapper/HiveBaseBeehiveMapper.xml
  44. 17 0
      beeboxs/src/main/resources/mapper/HiveBaseStationMapper.xml
  45. 24 0
      beeboxs/src/main/resources/mapper/HiveBeehiveMapper.xml
  46. 16 0
      beeboxs/src/main/resources/mapper/HiveBeehiveStatusMapper.xml
  47. 23 0
      beeboxs/src/main/resources/mapper/HiveStationMapper.xml
  48. 17 0
      beeboxs/src/main/resources/mapper/HiveStationStatusMapper.xml
  49. 16 0
      beeboxs/src/main/resources/mapper/HiveVideoAddrMapper.xml

+ 67 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/BaseHiveFarmController.java

@@ -0,0 +1,67 @@
+package com.huimv.beeboxs.controller;
+
+
+import com.huimv.beeboxs.common.token.TokenSign;
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.entity.BaseHiveFarm;
+import com.huimv.beeboxs.service.IBaseHiveFarmService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletRequest;
+import java.util.List;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-22
+ */
+@RestController
+@RequestMapping("/admin/farm")
+@CrossOrigin
+public class BaseHiveFarmController {
+
+    @Autowired
+    private IBaseHiveFarmService farmService;
+
+    @GetMapping("/getFarm")
+    public Result getFarm(HttpServletRequest request){
+        Integer userId = TokenSign.getMemberIdByJwtToken(request);
+        return  farmService.getFarm(userId);
+    }
+
+
+    @PostMapping("/add")
+    public Result add(@RequestBody BaseHiveFarm farm, HttpServletRequest request){
+        Integer userId = TokenSign.getMemberIdByJwtToken(request);
+        if (userId != 1){
+            return new Result(10001,"该账号不能操作牧场",false);
+        }
+        return  farmService.add(farm);
+    }
+
+    @PostMapping("/edit")
+    public Result edit(@RequestBody BaseHiveFarm farm, HttpServletRequest request){
+        Integer userId = TokenSign.getMemberIdByJwtToken(request);
+        if (userId != 1){
+            return new Result(10001,"该账号不能操作牧场",false);
+        }
+        farmService.updateById(farm);
+        return new Result(10000,"修改成功",true);
+    }
+
+    @GetMapping("/remove")
+    public Result remove(@RequestParam(name = "ids") List<Integer> ids, HttpServletRequest request){
+        Integer userId = TokenSign.getMemberIdByJwtToken(request);
+        if (userId != 1){
+            return new Result(10001,"该账号不能操作牧场",false);
+        }
+        farmService.removeByIds(ids);
+        return new Result(10000,"删除成功",true);
+    }
+
+
+}

+ 33 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBaseBeehiveController.java

@@ -0,0 +1,33 @@
+package com.huimv.beeboxs.controller;
+
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.service.IHiveBaseBeehiveService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@RestController
+@CrossOrigin
+@RequestMapping("/hiveBaseBeehive")
+public class HiveBaseBeehiveController {
+    @Autowired
+    private IHiveBaseBeehiveService baseBeehiveService;
+
+    @PostMapping("/list")
+    public Result page(@RequestBody Map map){
+
+        return baseBeehiveService.searchList(map);
+    }
+
+}

+ 34 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBaseStationController.java

@@ -0,0 +1,34 @@
+package com.huimv.beeboxs.controller;
+
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.service.IHiveBaseBeehiveService;
+import com.huimv.beeboxs.service.IHiveBaseStationService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveBaseStation")
+public class HiveBaseStationController {
+
+    @Autowired
+    private IHiveBaseStationService baseStationService;
+
+    @PostMapping("/list")
+    public Result page(@RequestBody Map map){
+
+        return baseStationService.searchList(map);
+    }
+
+}

+ 34 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBeehiveController.java

@@ -0,0 +1,34 @@
+package com.huimv.beeboxs.controller;
+
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.service.IHiveBaseStationService;
+import com.huimv.beeboxs.service.IHiveBeehiveService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveBeehive")
+public class HiveBeehiveController {
+
+    @Autowired
+    private IHiveBeehiveService beehiveService;
+
+    @PostMapping("/list")
+    public Result page(@RequestBody Map map){
+
+        return beehiveService.searchList(map);
+    }
+
+}

+ 22 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBeehiveStatusController.java

@@ -0,0 +1,22 @@
+package com.huimv.beeboxs.controller;
+
+
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveBeehiveStatus")
+public class HiveBeehiveStatusController {
+
+}

+ 22 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveStationController.java

@@ -0,0 +1,22 @@
+package com.huimv.beeboxs.controller;
+
+
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveStation")
+public class HiveStationController {
+
+}

+ 22 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveStationStatusController.java

@@ -0,0 +1,22 @@
+package com.huimv.beeboxs.controller;
+
+
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveStationStatus")
+public class HiveStationStatusController {
+
+}

+ 22 - 0
beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveVideoAddrController.java

@@ -0,0 +1,22 @@
+package com.huimv.beeboxs.controller;
+
+
+import org.springframework.web.bind.annotation.CrossOrigin;
+import org.springframework.web.bind.annotation.RequestMapping;
+
+import org.springframework.web.bind.annotation.RestController;
+
+/**
+ * <p>
+ *  前端控制器
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@CrossOrigin
+@RestController
+@RequestMapping("/hiveVideoAddr")
+public class HiveVideoAddrController {
+
+}

+ 39 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/BaseHiveFarm.java

@@ -0,0 +1,39 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-22
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("base_hive_farm")
+public class BaseHiveFarm implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    private String farmName;
+
+    private String location;
+
+    private String frontLocation;
+
+    private String rowStatus;
+
+
+}

+ 94 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBaseBeehive.java

@@ -0,0 +1,94 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_base_beehive")
+public class HiveBaseBeehive implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 标签ID
+     */
+    private String uidHex;
+
+    /**
+     * 网关ID
+     */
+    private String apUidHex;
+
+    /**
+     * 标签别名
+     */
+    private String tagName;
+
+    /**
+     * 标签型号
+     */
+    private String model;
+
+    /**
+     * 0-表示在线;1-表示离线
+     */
+    private Integer tagState;
+
+    /**
+     * 最近一次上报时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+    private Long uploadTime;
+
+    /**
+     * 标签电压
+     */
+    private String voltage;
+
+    /**
+     * 标签剩余天数
+     */
+    private Integer surPlusdays;
+
+    /**
+     * 标签经度
+     */
+    private String latitude;
+
+    /**
+     * 标签纬度
+     */
+    private String longitude;
+
+    /**
+     * 标签发送序号, 设备每发送一次序号加1
+     */
+    private Integer sentNum;
+
+    /**
+     * 信号强度 ,负数
+     */
+    private Integer rssi;
+
+
+}

+ 85 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBaseStation.java

@@ -0,0 +1,85 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_base_station")
+public class HiveBaseStation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 网关 ID
+     */
+    private String apUidHex;
+
+    /**
+     * 网关型号
+     */
+    private String model;
+
+    /**
+     * 网关别名
+     */
+    private String apName;
+
+    /**
+     * 0-表示在线;1-表示离线
+     */
+    private Integer apState;
+
+    /**
+     * 1-仓库内;2-室内;3车载;4-出入库闸门;5-电子围栏;6-便携手持;
+0-其他
+     */
+    private Integer purpose;
+
+    /**
+     * 网关经度
+     */
+    private String latitude;
+
+    /**
+     * 网关纬度
+     */
+    private String longitude;
+
+    /**
+     * 环境温度
+     */
+    private String envTem;
+
+
+    /**
+     * 环境湿度
+     */
+    private String envHum;
+
+
+    /**
+     * 牧场id
+     */
+    private String farmId;
+
+
+
+}

+ 107 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBeehive.java

@@ -0,0 +1,107 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import java.util.Date;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_beehive")
+public class HiveBeehive implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 传感器 ID
+     */
+    private String hiveId;
+
+    /**
+     * 基站ID
+     */
+    private String stationId;
+
+    /**
+     * 蜂箱编码
+     */
+    private String hiveCode;
+
+    /**
+     * 网络状态
+     */
+    private Integer netStatus;
+
+    /**
+     * 电量
+     */
+    private String bat;
+
+    /**
+     * 信号强度
+     */
+    private String rssi;
+
+    /**
+     * 状态
+     */
+    private Integer beeStatus;
+
+    /**
+     * 温度
+     */
+    private String temp;
+
+    /**
+     * 湿度
+     */
+    private String humi;
+
+    /**
+     * 上传时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
+    private Date uploadTime;
+
+    /**
+     * 拓展字段 1
+     */
+    private String other1;
+
+    /**
+     * 拓展字段 2
+     */
+    private String other2;
+
+    /**
+     * 日期
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
+    private Date createDate;
+
+    /**
+     * 牧场id
+     */
+    private Integer farmId;
+
+
+}

+ 62 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBeehiveStatus.java

@@ -0,0 +1,62 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_beehive_status")
+public class HiveBeehiveStatus implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 蜂箱 ID
+     */
+    private String hiveId;
+
+    /**
+     * 蜂箱编码
+     */
+    private String hiveCode;
+
+    /**
+     * 状态类型
+     */
+    private String abnormal;
+
+    /**
+     * 状态描述
+     */
+    private String desc;
+
+    /**
+     * 日期
+     */
+    private LocalDateTime createDate;
+
+    /**
+     * 牧场id
+     */
+    private Integer farmId;
+
+
+}

+ 97 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveStation.java

@@ -0,0 +1,97 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_station")
+public class HiveStation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 基站ID
+     */
+    private String stationId;
+
+    /**
+     * GPS 经度
+     */
+    private String longitude;
+
+    /**
+     * GPS 纬度
+     */
+    private String latitude;
+
+    /**
+     * 天气
+     */
+    private String weather;
+
+    /**
+     * 温度数据(室外)
+     */
+    private String temp;
+
+    /**
+     * 湿度数据(室外)
+     */
+    private String humi;
+
+    /**
+     * 网络状态
+     */
+    private Integer netStatus;
+
+    /**
+     * 基站电量
+     */
+    private Integer bat;
+
+    /**
+     * 基站上传时间
+     */
+    private LocalDateTime uploadTime;
+
+    /**
+     * 拓展字段 1
+     */
+    private String other1;
+
+    /**
+     * 拓展字段 2
+     */
+    private String other2;
+
+    /**
+     * 日期
+     */
+    private LocalDateTime createDate;
+
+    /**
+     * 牧场id
+     */
+    private Integer farmId;
+
+
+}

+ 67 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveStationStatus.java

@@ -0,0 +1,67 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.time.LocalDateTime;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_station_status")
+public class HiveStationStatus implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 基站ID
+     */
+    private String stationId;
+
+    /**
+     * GPS 经度
+     */
+    private String longitude;
+
+    /**
+     * GPS 纬度
+     */
+    private String latitude;
+
+    /**
+     * 状态类型
+     */
+    private String abnormal;
+
+    /**
+     * 状态描述
+     */
+    private String desc;
+
+    /**
+     * 日期
+     */
+    private LocalDateTime createDate;
+
+    /**
+     * 牧场id
+     */
+    private Integer farmId;
+
+
+}

+ 61 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveVideoAddr.java

@@ -0,0 +1,61 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("hive_video_addr")
+public class HiveVideoAddr implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 地点
+     */
+    private String site;
+
+    /**
+     * rtsp协议
+     */
+    private String rtsp协议;
+
+    /**
+     * ws协议
+     */
+    private String ws协议;
+
+    /**
+     * 账号
+     */
+    private String 账号;
+
+    /**
+     * 密码
+     */
+    private String 密码;
+
+    /**
+     * 牧场id
+     */
+    private Integer 牧场id;
+
+
+}

+ 80 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/dto/HiveBaseBeehiveDto.java

@@ -0,0 +1,80 @@
+package com.huimv.beeboxs.entity.dto;
+
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @Project : huimv.shiwan
+ * @Package : com.huimv.beeboxs.entity.dto
+ * @Description : TODO
+ * @Author : yuxuexuan
+ * @Create : 2022/4/21 0021 14:10
+ **/
+@Data
+public class HiveBaseBeehiveDto {
+    private Integer id;
+
+    /**
+     * 标签ID
+     */
+    private String uidHex;
+
+    /**
+     * 网关ID
+     */
+    private String apUidHex;
+
+    /**
+     * 标签别名
+     */
+    private String tagName;
+
+    /**
+     * 标签型号
+     */
+    private String model;
+
+    /**
+     * 0-表示在线;1-表示离线
+     */
+    private Integer tagState;
+
+    /**
+     * 最近一次上报时间
+     */
+    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
+    private Date uploadTime;
+
+    /**
+     * 标签电压
+     */
+    private String voltage;
+
+    /**
+     * 标签剩余天数
+     */
+    private Integer surPlusdays;
+
+    /**
+     * 标签经度
+     */
+    private String latitude;
+
+    /**
+     * 标签纬度
+     */
+    private String longitude;
+
+    /**
+     * 标签发送序号, 设备每发送一次序号加1
+     */
+    private Integer sentNum;
+
+    /**
+     * 信号强度 ,负数
+     */
+    private Integer rssi;
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/BaseHiveFarmMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.BaseHiveFarm;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-22
+ */
+public interface BaseHiveFarmMapper extends BaseMapper<BaseHiveFarm> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBaseBeehiveMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveBaseBeehive;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveBaseBeehiveMapper extends BaseMapper<HiveBaseBeehive> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBaseStationMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveBaseStation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveBaseStationMapper extends BaseMapper<HiveBaseStation> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBeehiveMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveBeehive;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveBeehiveMapper extends BaseMapper<HiveBeehive> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveBeehiveStatusMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveBeehiveStatus;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveBeehiveStatusMapper extends BaseMapper<HiveBeehiveStatus> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveStationMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveStation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveStationMapper extends BaseMapper<HiveStation> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveStationStatusMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveStationStatus;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveStationStatusMapper extends BaseMapper<HiveStationStatus> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/HiveVideoAddrMapper.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.mapper;
+
+import com.huimv.beeboxs.entity.HiveVideoAddr;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ *  Mapper 接口
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface HiveVideoAddrMapper extends BaseMapper<HiveVideoAddr> {
+
+}

+ 21 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IBaseHiveFarmService.java

@@ -0,0 +1,21 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.entity.BaseHiveFarm;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-22
+ */
+public interface IBaseHiveFarmService extends IService<BaseHiveFarm> {
+    Result getFarm(Integer userId);
+
+    Result add(BaseHiveFarm farm);
+
+
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBaseBeehiveService.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.entity.HiveBaseBeehive;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveBaseBeehiveService extends IService<HiveBaseBeehive> {
+
+    Result searchList(Map map);
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBaseStationService.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.entity.HiveBaseStation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveBaseStationService extends IService<HiveBaseStation> {
+
+    Result searchList(Map map);
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBeehiveService.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.entity.HiveBeehive;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveBeehiveService extends IService<HiveBeehive> {
+
+    Result searchList(Map map);
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveBeehiveStatusService.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.entity.HiveBeehiveStatus;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveBeehiveStatusService extends IService<HiveBeehiveStatus> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveStationService.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.entity.HiveStation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveStationService extends IService<HiveStation> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveStationStatusService.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.entity.HiveStationStatus;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveStationStatusService extends IService<HiveStationStatus> {
+
+}

+ 16 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/IHiveVideoAddrService.java

@@ -0,0 +1,16 @@
+package com.huimv.beeboxs.service;
+
+import com.huimv.beeboxs.entity.HiveVideoAddr;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ *  服务类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+public interface IHiveVideoAddrService extends IService<HiveVideoAddr> {
+
+}

+ 51 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/BaseHiveFarmServiceImpl.java

@@ -0,0 +1,51 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.common.utils.ResultCode;
+import com.huimv.beeboxs.entity.BaseHiveFarm;
+import com.huimv.beeboxs.entity.SysAccountMultilevel;
+import com.huimv.beeboxs.mapper.BaseHiveFarmMapper;
+import com.huimv.beeboxs.mapper.SysAccountMultilevelMapper;
+import com.huimv.beeboxs.service.IBaseHiveFarmService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Arrays;
+import java.util.List;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-22
+ */
+@Service
+public class BaseHiveFarmServiceImpl extends ServiceImpl<BaseHiveFarmMapper, BaseHiveFarm> implements IBaseHiveFarmService {
+
+    @Autowired
+    private SysAccountMultilevelMapper accountMultilevelMapper;
+    @Override
+    public Result getFarm(Integer userId) {
+        SysAccountMultilevel sysAccountMultilevel = accountMultilevelMapper.selectById(userId);
+        String farmIds = sysAccountMultilevel.getFarmIds();
+        List list ;
+        if (userId == 1){
+            list = this.list();
+        }else {
+            List<String> list1 = Arrays.asList(farmIds.split(","));
+            list = (List)this.listByIds(list1);
+        }
+        return new Result(ResultCode.SUCCESS,list);
+    }
+
+    @Override
+    public Result add(BaseHiveFarm farm) {
+        this.save(farm);
+
+        return new Result(10000,"添加成功",true);
+    }
+
+}

+ 46 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBaseBeehiveServiceImpl.java

@@ -0,0 +1,46 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.common.utils.ResultCode;
+import com.huimv.beeboxs.entity.HiveBaseBeehive;
+import com.huimv.beeboxs.entity.HiveBaseStation;
+import com.huimv.beeboxs.mapper.HiveBaseBeehiveMapper;
+import com.huimv.beeboxs.service.IHiveBaseBeehiveService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.List;
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveBaseBeehiveServiceImpl extends ServiceImpl<HiveBaseBeehiveMapper, HiveBaseBeehive> implements IHiveBaseBeehiveService {
+
+    @Override
+    public Result searchList(Map map) {
+        Integer current =  (Integer)map.get("current");
+        Integer pageSize =   (Integer) map.get("pageSize");
+        if (current == null || current <1 ){
+            current =1;
+        }
+        if (pageSize == null || pageSize <1 ){
+            pageSize =10;
+        }
+        Page<HiveBaseBeehive> page = this.page(new Page<>(current, pageSize));
+        //时间戳
+//        List<HiveBaseBeehive> records = page.getRecords();
+//        for (HiveBaseBeehive record : records) {
+//
+//
+//        }
+        return new  Result(ResultCode.SUCCESS,page);
+    }
+}

+ 40 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBaseStationServiceImpl.java

@@ -0,0 +1,40 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.common.utils.ResultCode;
+import com.huimv.beeboxs.entity.HiveBaseStation;
+import com.huimv.beeboxs.mapper.HiveBaseStationMapper;
+import com.huimv.beeboxs.service.IHiveBaseStationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveBaseStationServiceImpl extends ServiceImpl<HiveBaseStationMapper, HiveBaseStation> implements IHiveBaseStationService {
+
+    @Override
+    public Result searchList(Map map) {
+
+        Integer current =  (Integer)map.get("current");
+        Integer pageSize =   (Integer) map.get("pageSize");
+        map.get("");
+        if (current == null || current <1 ){
+            current =1;
+        }
+        if (pageSize == null || pageSize <1 ){
+            current =10;
+        }
+        Page<HiveBaseStation> page = this.page(new Page<>(current, pageSize));
+        return new  Result(ResultCode.SUCCESS,page);
+    }
+}

+ 44 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBeehiveServiceImpl.java

@@ -0,0 +1,44 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.toolkit.StringUtils;
+import com.huimv.beeboxs.common.utils.Result;
+import com.huimv.beeboxs.common.utils.ResultCode;
+import com.huimv.beeboxs.entity.HiveBeehive;
+import com.huimv.beeboxs.mapper.HiveBeehiveMapper;
+import com.huimv.beeboxs.service.IHiveBeehiveService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+import java.util.Map;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveBeehiveServiceImpl extends ServiceImpl<HiveBeehiveMapper, HiveBeehive> implements IHiveBeehiveService {
+
+    @Override
+    public Result searchList(Map map) {
+        String startDate = (String)map.get("startDate");
+        String endDate = (String)map.get("endDate");
+        String hiveId = (String)map.get("hiveId");
+
+        QueryWrapper<HiveBeehive> wrapper = new QueryWrapper<>();
+        if (StringUtils.isBlank(hiveId)){
+            return new Result(10001,"请选择蜂箱",false);
+        }
+        wrapper.eq("hive_id",hiveId);
+//        wrapper.orderByDesc("create_date");
+
+        wrapper.ge(StringUtils.isNotBlank(startDate),"create_date",startDate);
+        wrapper.le(StringUtils.isNotBlank(endDate),"create_date",endDate);
+
+        return new Result(ResultCode.SUCCESS,this.list(wrapper));
+    }
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveBeehiveStatusServiceImpl.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.huimv.beeboxs.entity.HiveBeehiveStatus;
+import com.huimv.beeboxs.mapper.HiveBeehiveStatusMapper;
+import com.huimv.beeboxs.service.IHiveBeehiveStatusService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveBeehiveStatusServiceImpl extends ServiceImpl<HiveBeehiveStatusMapper, HiveBeehiveStatus> implements IHiveBeehiveStatusService {
+
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveStationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.huimv.beeboxs.entity.HiveStation;
+import com.huimv.beeboxs.mapper.HiveStationMapper;
+import com.huimv.beeboxs.service.IHiveStationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveStationServiceImpl extends ServiceImpl<HiveStationMapper, HiveStation> implements IHiveStationService {
+
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveStationStatusServiceImpl.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.huimv.beeboxs.entity.HiveStationStatus;
+import com.huimv.beeboxs.mapper.HiveStationStatusMapper;
+import com.huimv.beeboxs.service.IHiveStationStatusService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveStationStatusServiceImpl extends ServiceImpl<HiveStationStatusMapper, HiveStationStatus> implements IHiveStationStatusService {
+
+}

+ 20 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveVideoAddrServiceImpl.java

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.huimv.beeboxs.entity.HiveVideoAddr;
+import com.huimv.beeboxs.mapper.HiveVideoAddrMapper;
+import com.huimv.beeboxs.service.IHiveVideoAddrService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ *  服务实现类
+ * </p>
+ *
+ * @author author
+ * @since 2022-04-21
+ */
+@Service
+public class HiveVideoAddrServiceImpl extends ServiceImpl<HiveVideoAddrMapper, HiveVideoAddr> implements IHiveVideoAddrService {
+
+}

+ 14 - 0
beeboxs/src/main/resources/mapper/BaseHiveFarmMapper.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.BaseHiveFarmMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.BaseHiveFarm">
+        <id column="id" property="id" />
+        <result column="farm_name" property="farmName" />
+        <result column="reserve1" property="reserve1" />
+        <result column="reserve2" property="reserve2" />
+        <result column="reserve3" property="reserve3" />
+    </resultMap>
+
+</mapper>

+ 22 - 0
beeboxs/src/main/resources/mapper/HiveBaseBeehiveMapper.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveBaseBeehiveMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveBaseBeehive">
+        <id column="id" property="id" />
+        <result column="uid_hex" property="uidHex" />
+        <result column="ap_uid_hex" property="apUidHex" />
+        <result column="tag_name" property="tagName" />
+        <result column="model" property="model" />
+        <result column="tag_state" property="tagState" />
+        <result column="upload_time" property="uploadTime" />
+        <result column="voltage" property="voltage" />
+        <result column="sur_plusdays" property="surPlusdays" />
+        <result column="latitude" property="latitude" />
+        <result column="longitude" property="longitude" />
+        <result column="sent_num" property="sentNum" />
+        <result column="rssi" property="rssi" />
+    </resultMap>
+
+</mapper>

+ 17 - 0
beeboxs/src/main/resources/mapper/HiveBaseStationMapper.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveBaseStationMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveBaseStation">
+        <id column="id" property="id" />
+        <result column="ap_uid_hex" property="apUidHex" />
+        <result column="model" property="model" />
+        <result column="ap_name" property="apName" />
+        <result column="ap_state" property="apState" />
+        <result column="purpose" property="purpose" />
+        <result column="latitude" property="latitude" />
+        <result column="longitude" property="longitude" />
+    </resultMap>
+
+</mapper>

+ 24 - 0
beeboxs/src/main/resources/mapper/HiveBeehiveMapper.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveBeehiveMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveBeehive">
+        <id column="id" property="id" />
+        <result column="hive_id" property="hiveId" />
+        <result column="station_id" property="stationId" />
+        <result column="hive_code" property="hiveCode" />
+        <result column="net_status" property="netStatus" />
+        <result column="bat" property="bat" />
+        <result column="rssi" property="rssi" />
+        <result column="bee_status" property="beeStatus" />
+        <result column="temp" property="temp" />
+        <result column="humi" property="humi" />
+        <result column="upload_time" property="uploadTime" />
+        <result column="other1" property="other1" />
+        <result column="other2" property="other2" />
+        <result column="create_date" property="createDate" />
+        <result column="farm_id" property="farmId" />
+    </resultMap>
+
+</mapper>

+ 16 - 0
beeboxs/src/main/resources/mapper/HiveBeehiveStatusMapper.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveBeehiveStatusMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveBeehiveStatus">
+        <id column="id" property="id" />
+        <result column="hiveId" property="hiveId" />
+        <result column="hiveCode" property="hiveCode" />
+        <result column="abnormal" property="abnormal" />
+        <result column="desc" property="desc" />
+        <result column="create_date" property="createDate" />
+        <result column="farmId" property="farmId" />
+    </resultMap>
+
+</mapper>

+ 23 - 0
beeboxs/src/main/resources/mapper/HiveStationMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveStationMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveStation">
+        <id column="id" property="id" />
+        <result column="station_id" property="stationId" />
+        <result column="longitude" property="longitude" />
+        <result column="latitude" property="latitude" />
+        <result column="weather" property="weather" />
+        <result column="temp" property="temp" />
+        <result column="humi" property="humi" />
+        <result column="net_status" property="netStatus" />
+        <result column="bat" property="bat" />
+        <result column="upload_time" property="uploadTime" />
+        <result column="other1" property="other1" />
+        <result column="other2" property="other2" />
+        <result column="create_date" property="createDate" />
+        <result column="farmId" property="farmId" />
+    </resultMap>
+
+</mapper>

+ 17 - 0
beeboxs/src/main/resources/mapper/HiveStationStatusMapper.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveStationStatusMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveStationStatus">
+        <id column="id" property="id" />
+        <result column="station_id" property="stationId" />
+        <result column="longitude" property="longitude" />
+        <result column="latitude" property="latitude" />
+        <result column="abnormal" property="abnormal" />
+        <result column="desc" property="desc" />
+        <result column="create_date" property="createDate" />
+        <result column="farmId" property="farmId" />
+    </resultMap>
+
+</mapper>

+ 16 - 0
beeboxs/src/main/resources/mapper/HiveVideoAddrMapper.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.huimv.beeboxs.mapper.HiveVideoAddrMapper">
+
+    <!-- 通用查询映射结果 -->
+    <resultMap id="BaseResultMap" type="com.huimv.beeboxs.entity.HiveVideoAddr">
+        <id column="id" property="id" />
+        <result column="site" property="site" />
+        <result column="rtsp协议" property="rtsp协议" />
+        <result column="ws协议" property="ws协议" />
+        <result column="账号" property="账号" />
+        <result column="密码" property="密码" />
+        <result column="牧场id" property="牧场id" />
+    </resultMap>
+
+</mapper>