Browse Source

添加大华后台相关

yang 3 năm trước cách đây
mục cha
commit
f826174238
20 tập tin đã thay đổi với 228 bổ sung470 xóa
  1. 6 0
      beeboxs/src/main/java/com/huimv/beeboxs/controller/HiveBaseStationController.java
  2. 0 2
      beeboxs/src/main/java/com/huimv/beeboxs/controller/SysUserController.java
  3. 0 11
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/business/UserManager.java
  4. 0 18
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/business/impl/UserManagerImpl.java
  5. 0 162
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/controller/CameraListController.java
  6. 0 30
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/main/TestMain.java
  7. 0 18
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/CONST.java
  8. 0 93
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/HttpSend.java
  9. 0 98
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/MySecureProtocolSocketFactory.java
  10. 0 37
      beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/MyX509TrustManager.java
  11. 52 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/CamareDevideBind.java
  12. 61 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/FarmVideoAccount.java
  13. 17 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/HiveBaseStation.java
  14. 15 0
      beeboxs/src/main/java/com/huimv/beeboxs/entity/vo/HiveBaseStationVo.java
  15. 14 0
      beeboxs/src/main/java/com/huimv/beeboxs/mapper/FarmVideoAccountMapper.java
  16. 18 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/CamareDevideBindService.java
  17. 19 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/CamareDevideBindServiceImpl.java
  18. 20 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/FarmVideoAccountServiceImpl.java
  19. 6 0
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/HiveStationServiceImpl.java
  20. 0 1
      beeboxs/src/main/java/com/huimv/beeboxs/service/impl/MenuServiceImpl.java

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

@@ -1,6 +1,7 @@
 package com.huimv.beeboxs.controller;
 
 
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.extension.api.R;
 import com.huimv.beeboxs.common.utils.Result;
 import com.huimv.beeboxs.common.utils.ResultCode;
@@ -56,6 +57,7 @@ public class HiveBaseStationController {
     @PostMapping("/update")
     public Result update(@RequestBody HiveBaseStationVo hiveBaseStationVo){
 
+
         HiveBaseStation hiveBaseStation = new HiveBaseStation();
         hiveBaseStation.setId(hiveBaseStationVo.getId());
         Integer farmIds = hiveBaseStationVo.getFarmIds();
@@ -68,4 +70,8 @@ public class HiveBaseStationController {
     }
 
 
+
+
+
+
 }

+ 0 - 2
beeboxs/src/main/java/com/huimv/beeboxs/controller/SysUserController.java

@@ -31,8 +31,6 @@ public class SysUserController {
 //        return iUserService.removeUser(userIds);
 //    }
 
-
-
     @PostMapping("/list")
     public JSONObject listUser(@RequestBody Map map) {
         System.out.println();

+ 0 - 11
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/business/UserManager.java

@@ -1,11 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.business;
-
-import java.util.HashMap;
-
-import com.alibaba.fastjson.JSONObject;
-
-public interface UserManager {
-
-    JSONObject accessToken(HashMap<String, Object> paramMap);
-
-}

+ 0 - 18
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/business/impl/UserManagerImpl.java

@@ -1,18 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.business.impl;
-
-import java.util.HashMap;
-
-import com.alibaba.fastjson.JSONObject;
-import com.huimv.beeboxs.dahuaVideo.business.UserManager;
-import com.huimv.beeboxs.dahuaVideo.util.HttpSend;
-
-
-public class UserManagerImpl implements UserManager {
-
-    @Override
-    public JSONObject accessToken(HashMap<String, Object> paramMap) {
-        String method = "accessToken";
-        return HttpSend.execute(paramMap, method);
-    }
-
-}

+ 0 - 162
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/controller/CameraListController.java

@@ -1,162 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.controller;
-
-import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONObject;
-import com.huimv.beeboxs.common.utils.Result;
-import com.huimv.beeboxs.common.utils.ResultCode;
-import com.huimv.beeboxs.dahuaVideo.business.impl.UserManagerImpl;
-import com.huimv.beeboxs.dahuaVideo.util.HttpSend;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-
-/**
- * TODO
- *
- * @author CodeYang.
- * @date 2022/4/22 13:58
- */
-
-
-
-
-@CrossOrigin
-@RestController
-@RequestMapping(value = "/dahua")
-public class CameraListController {
-
-
-
-    //展示账号下面所有的设备
-    @PostMapping("/listDevice")
-    public  Result page( ){
-
-        HttpSend httpSend = new HttpSend();
-        Map<String, Object>   parmap   = new HashMap<>();
-
-        parmap.put("token",getToken());
-        parmap.put("bindId","-1");
-        parmap.put("limit",128);
-        parmap.put("type","bindAndShare");
-        parmap.put("needApInfo","false");
-        JSONObject deviceBaseList = httpSend.execute(parmap, "deviceBaseList");
-        //{"result":{"msg":"操作成功。","code":"0","data":{"count":1,"deviceList":[{"channels":[{"channelName":"IPDome-FF35","channelId":"0"}],"deviceId":
-        // "8B06F91PAJ1FF35","bindId":1,"aplist":[]}]}},"id":"23"}
-        System.out.println(deviceBaseList);
-        JSONObject jsonResult = deviceBaseList.getJSONObject("result");
-        JSONObject jsonData = jsonResult.getJSONObject("data");
-        return new Result(ResultCode.SUCCESS, jsonData );
-
-    }
-
-
-    /**
-     * 拿到视频流  返回数据
-     *kitToken  :拿视屏的token
-     * 视频流 url长这样 --前端自己拼拼:   'imou://open.lechange.com/8B06F91PAJ1FF35/0/1?streamId=1'
-      param map
-     * @return
-     */
-    @PostMapping("/getVideoStream")
-    public Result getVideo(@RequestBody Map map){
-
-
-        HttpSend httpSend = new HttpSend();
-        Map<String, Object>   parmap   = new HashMap<>();
-        parmap.put("token",getToken());
-        parmap.put("channelId",map.get("channelId"));
-        parmap.put("enable",true);
-        parmap.put("deviceId",map.get("deviceId"));
-        JSONObject deviceBaseList = httpSend.execute(parmap, "getKitToken");
-
-         String  VideoUrl = "imou://open.lechange.com/"+map.get("deviceId")+"/"+map.get("channelId")+"/1?streamId=1";
-        JSONObject jsonResult = deviceBaseList.getJSONObject("result");
-        JSONObject jsonData = jsonResult.getJSONObject("data");
-        String token = jsonData.getString("kitToken");
-         String  kitToken =token;
-
-        HashMap<String, String> jectHashMap = new HashMap<>();
-        jectHashMap.put("VideoUrl",VideoUrl);
-        jectHashMap.put("kitToken",kitToken);
-
-        System.out.println(deviceBaseList);
-        return new Result(ResultCode.SUCCESS, jectHashMap  );
-
-    }
-
-
-    /**
-     * 拿到视频流  返回数据
-     *kitToken  :拿视屏的token
-     * 视频流 url长这样 --前端自己拼拼:   'imou://open.lechange.com/8B06F91PAJ1FF35/0/1?streamId=1'
-     param map
-     * @return
-     */
-    @PostMapping("/changeDirection")
-    public Result changeDirection(@RequestBody Map map){
-        HttpSend httpSend = new HttpSend();
-        Map<String, Object>   parmap   = new HashMap<>();
-        parmap.put("token",getToken());
-        parmap.put("deviceId",map.get("deviceId"));
-        parmap.put("channelId",map.get("channelId"));
-        parmap.put("operation",map.get("operation"));
-        parmap.put("duration",map.get("duration"));
-        JSONObject deviceBaseList = httpSend.execute(parmap, "controlMovePTZ");
-        System.out.println(deviceBaseList);
-        return new Result(ResultCode.SUCCESS);
-
-    }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-    public  String   getToken(){
-        UserManagerImpl userManager = new UserManagerImpl();
-        HashMap<String, Object> paramsMap = new HashMap<String, Object>();
-        JSONObject json = userManager.accessToken(paramsMap);
-
-        JSONObject jsonResult = json.getJSONObject("result");
-        JSONObject jsonData = jsonResult.getJSONObject("data");
-        String token = jsonData.getString("accessToken");
-
-        return token;
-
-    }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-}

+ 0 - 30
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/main/TestMain.java

@@ -1,30 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.main;
-
-import java.util.HashMap;
-import com.alibaba.fastjson.JSONObject;
-import com.huimv.beeboxs.dahuaVideo.business.impl.UserManagerImpl;
-
-
-public class TestMain {
-
-    public static void main(String[] args) {
-
-        // 注:执行main函数前请先将CONST.java文件中的APPID、SECRET以及PHONE填全,不然程序执行将会报错。
-        // 获取管理员token
-        UserManagerImpl userManager = new UserManagerImpl();
-        HashMap<String, Object> paramsMap = new HashMap<String, Object>();
-        JSONObject json = userManager.accessToken(paramsMap);
-
-        JSONObject jsonResult = json.getJSONObject("result");
-        JSONObject jsonData = jsonResult.getJSONObject("data");
-        String token = jsonData.getString("accessToken");
-
-        System.out.println(token);
-
-
-
-
-
-    }
-
-}

+ 0 - 18
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/CONST.java

@@ -1,18 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.util;
-
-
-
-//客户信息列表----参数在这里修改
-public class CONST {
-
-    public static String PORT = "443";
-
-    public static String HOST = "https://openapi.lechange.cn";
-
-    // 如果不知道appid,请登录open.lechange.com,开发者服务模块中创建应用
-    public static String APPID = "lc8d7fbafc45b74d6d";
-
-    // 如果不知道appsecret,请登录open.lechange.com,开发者服务模块中创建应用
-    public static String SECRET = "3b80b23d58e4461b8238827b560a69";
-
-}

+ 0 - 93
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/HttpSend.java

@@ -1,93 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.util;
-
-import java.io.InputStream;
-import java.util.*;
-
-import com.alibaba.fastjson.JSON;
-import com.alibaba.fastjson.JSONObject;
-import org.apache.commons.codec.digest.DigestUtils;
-import org.apache.commons.httpclient.methods.PostMethod;
-import org.apache.commons.httpclient.methods.RequestEntity;
-import org.apache.commons.httpclient.methods.StringRequestEntity;
-import org.apache.commons.httpclient.params.HttpMethodParams;
-import org.apache.commons.httpclient.protocol.Protocol;
-import org.apache.commons.httpclient.protocol.ProtocolSocketFactory;
-import org.apache.commons.io.IOUtils;
-import org.apache.commons.httpclient.HttpClient;
-
-
-
-public class HttpSend {
-
-    public static JSONObject execute(Map<String, Object> paramsMap, String method) {
-        Map<String, Object> map = paramsInit(paramsMap);
-        // 返回json
-        JSONObject jsonObj = doPost(CONST.HOST + ":" + CONST.PORT + "/openapi/" + method, map);
-        System.out.println("=============================");
-        System.out.println("返回结果:" + jsonObj.toJSONString());
-        return jsonObj;
-
-    }
-
-    public static JSONObject doPost(String url, Map<String, Object> map) {
-        
-        String json = JSON.toJSONString(map);
-        ProtocolSocketFactory factory = new MySecureProtocolSocketFactory();
-        Protocol.registerProtocol("https", new Protocol("https", factory, 443));
-        HttpClient client = new HttpClient();
-        client.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, "UTF-8");
-        PostMethod method = new PostMethod(url);
-        System.out.println(url);
-        JSONObject jsonObject = new JSONObject();
-        try {
-            RequestEntity entity = new StringRequestEntity(json, "application/json", "UTF-8");
-            method.setRequestEntity(entity);
-            client.executeMethod(method);
-
-            InputStream inputStream = method.getResponseBodyAsStream();
-            String result = IOUtils.toString(inputStream, "UTF-8");
-            jsonObject = JSONObject.parseObject(result);
-        } catch (Exception e) {
-            e.printStackTrace();
-        } finally {
-            method.releaseConnection();
-        }
-        return jsonObject;
-    }
-
-    protected static Map<String, Object> paramsInit(Map<String, Object> paramsMap) {
-        long time = System.currentTimeMillis() / 1000;
-        String nonce = UUID.randomUUID().toString();
-        String id = UUID.randomUUID().toString();
-
-        StringBuilder paramString = new StringBuilder();
-        paramString.append("time:").append(time).append(",");
-        paramString.append("nonce:").append(nonce).append(",");
-        paramString.append("appSecret:").append(CONST.SECRET);
-
-        String sign = "";
-        // 计算MD5得值
-        try {
-            System.out.println("传入参数:" + paramString.toString().trim());
-            sign = DigestUtils.md5Hex(paramString.toString().trim().getBytes("UTF-8"));
-        } catch (Exception e) {
-            e.printStackTrace();
-        }
-
-        Map<String, Object> systemMap = new HashMap<String, Object>();
-        systemMap.put("ver", "1.0");
-        systemMap.put("sign", sign);
-        systemMap.put("appId", CONST.APPID);
-        systemMap.put("nonce", nonce);
-        systemMap.put("time", time);
-
-        Map<String, Object> map = new HashMap<String, Object>();
-        map.put("system", systemMap);
-        map.put("params", paramsMap);
-        map.put("id", id);
-        return map;
-    }
-    
-    
-
-}

+ 0 - 98
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/MySecureProtocolSocketFactory.java

@@ -1,98 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.util;
-
-
-import java.io.IOException;
-import java.net.InetAddress;
-import java.net.Socket;
-import java.net.UnknownHostException;
-
-import javax.net.ssl.SSLContext;
-import javax.net.ssl.TrustManager;
-
-import org.apache.commons.httpclient.ConnectTimeoutException;
-import org.apache.commons.httpclient.HttpClientError;
-import org.apache.commons.httpclient.params.HttpConnectionParams;
-import org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory;
-import org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory;
-
-public class MySecureProtocolSocketFactory implements SecureProtocolSocketFactory {
-
-    private SSLContext sslContext = null;
-
-    /**
-     * Constructor for MySecureProtocolSocketFactory.
-     */
-    public MySecureProtocolSocketFactory() {
-    }
-
-    /**
-     * @return
-     */
-    private static SSLContext createEasySSLContext() {
-        try {
-            SSLContext context = SSLContext.getInstance("SSL");
-            context.init(null, new TrustManager[] {new MyX509TrustManager()}, null);
-            return context;
-        } catch (Exception e) {
-            throw new HttpClientError(e.toString());
-        }
-    }
-
-    /**
-     * @return
-     */
-    private SSLContext getSSLContext() {
-        if (this.sslContext == null) {
-            this.sslContext = createEasySSLContext();
-        }
-        return this.sslContext;
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see
-     * org.apache.commons.httpclient.protocol.ProtocolSocketFactory#createSocket(java.lang.String,
-     * int, java.net.InetAddress, int)
-     */
-    public Socket createSocket(String host, int port, InetAddress clientHost, int clientPort) throws IOException,
-        UnknownHostException {
-
-        return getSSLContext().getSocketFactory().createSocket(host, port, clientHost, clientPort);
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see
-     * org.apache.commons.httpclient.protocol.ProtocolSocketFactory#createSocket(java.lang.String,
-     * int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)
-     */
-    public Socket createSocket(final String host, final int port, final InetAddress localAddress, final int localPort,
-            final HttpConnectionParams params) throws IOException, UnknownHostException, ConnectTimeoutException {
-        if (params == null) {
-            throw new IllegalArgumentException("Parameters may not be null");
-        }
-        int timeout = params.getConnectionTimeout();
-        if (timeout == 0) {
-            return createSocket(host, port, localAddress, localPort);
-        } else {
-            return ControllerThreadSocketFactory.createSocket(this, host, port, localAddress, localPort, timeout);
-        }
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see SecureProtocolSocketFactory#createSocket(java.lang.String,int)
-     */
-    public Socket createSocket(String host, int port) throws IOException, UnknownHostException {
-        return getSSLContext().getSocketFactory().createSocket(host, port);
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see SecureProtocolSocketFactory#createSocket(java.net.Socket,java.lang.String,int,boolean)
-     */
-    public Socket createSocket(Socket socket, String host, int port, boolean autoClose) throws IOException,
-        UnknownHostException {
-        return getSSLContext().getSocketFactory().createSocket(socket, host, port, autoClose);
-    }
-}

+ 0 - 37
beeboxs/src/main/java/com/huimv/beeboxs/dahuaVideo/util/MyX509TrustManager.java

@@ -1,37 +0,0 @@
-package com.huimv.beeboxs.dahuaVideo.util;
-
-
-import java.security.cert.CertificateException;
-import java.security.cert.X509Certificate;
-
-import javax.net.ssl.X509TrustManager;
-
-public class MyX509TrustManager implements X509TrustManager {
-
-    /*
-     * (non-Javadoc)
-     * @see javax.net.ssl.X509TrustManager#checkClientTrusted(java.security.cert.X509Certificate[],
-     * java.lang.String)
-     */
-    public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
-
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see javax.net.ssl.X509TrustManager#checkServerTrusted(java.security.cert.X509Certificate[],
-     * java.lang.String)
-     */
-    public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {
-
-    }
-
-    /*
-     * (non-Javadoc)
-     * @see javax.net.ssl.X509TrustManager#getAcceptedIssuers()
-     */
-    public X509Certificate[] getAcceptedIssuers() {
-        return null;
-    }
-
-}

+ 52 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/CamareDevideBind.java

@@ -0,0 +1,52 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * 
+ * 
+ * @author chenshun
+ * @email sunlightcs@gmail.com
+ * @date 2022-04-24 19:20:53
+ */
+@Data
+@TableName("camare_devide_bind")
+public class CamareDevideBind implements Serializable {
+	private static final long serialVersionUID = 1L;
+
+	/**
+	 * 
+	 */
+	@TableId
+	private Integer id;
+	/**
+	 * 
+	 */
+	private Integer farmId;
+	/**
+	 * 
+	 */
+	private String camareName;
+	/**
+	 * 
+	 */
+	private String camareId;
+	/**
+	 * 
+	 */
+	private String camareChannle;
+	/**
+	 * 
+	 */
+	private String stationId;
+	/**
+	 * 
+	 */
+	private String remark;
+
+}

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

@@ -0,0 +1,61 @@
+package com.huimv.beeboxs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * TODO
+ *
+ * @author CodeYang.
+ * @date 2022/4/24 16:19
+ */
+
+@Data
+@EqualsAndHashCode()
+@Accessors(chain = true)
+@TableName("farm_video_account")
+public class FarmVideoAccount {
+
+    
+    private static final long serialVersionUID = 1L;
+
+    
+    @TableId(value = "id", type = IdType.AUTO)
+    private Integer id;
+
+
+    /**
+     * 牧场id
+     */
+    private Integer farmId;
+
+    /**
+     * 账户Id
+     */
+    private String dahuaAppid;
+
+    /**
+     * 密码
+     */
+    private String  dahuaSecret ;
+    
+    /**
+     * 密码
+     */
+    private String  farmName ;
+
+    /**
+     * 密码
+     */
+    private String  remark ;
+    
+    
+    
+    
+    
+    
+}

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

@@ -91,4 +91,21 @@ public class HiveBaseStation implements Serializable {
      */
     private String farmName;
 
+
+    /**
+     * 摄像头ID
+     */
+    private String deviceId;
+
+    /**
+     * 通道ID
+     */
+    private String channelId;
+
+    /**
+     * 通道ID
+     */
+    private String channelName;
+
+
 }

+ 15 - 0
beeboxs/src/main/java/com/huimv/beeboxs/entity/vo/HiveBaseStationVo.java

@@ -58,4 +58,19 @@ public class HiveBaseStationVo {
      * 牧场id
      */
     private Integer farmIds;
+
+    
+    /**
+     * 云台编号
+     */
+    private String cameraId ;
+
+    
+    /**
+     * 云台通道
+     */
+    private String cameraChannelId;
+
+
+
 }

+ 14 - 0
beeboxs/src/main/java/com/huimv/beeboxs/mapper/FarmVideoAccountMapper.java

@@ -0,0 +1,14 @@
+package com.huimv.beeboxs.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+import com.huimv.beeboxs.entity.FarmVideoAccount;
+
+/**
+ * TODO
+ *
+ * @author CodeYang.
+ * @date 2022/4/24 16:39
+ */
+public interface FarmVideoAccountMapper extends BaseMapper<FarmVideoAccount> {
+}

+ 18 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/CamareDevideBindService.java

@@ -0,0 +1,18 @@
+package com.huimv.beeboxs.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.huimv.beeboxs.entity.CamareDevideBind;
+
+import java.util.Map;
+
+/**
+ * 
+ *
+ * @author chenshun
+ * @email sunlightcs@gmail.com
+ * @date 2022-04-24 19:20:53
+ */
+public interface CamareDevideBindService extends IService<CamareDevideBind> {
+
+}
+

+ 19 - 0
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/CamareDevideBindServiceImpl.java

@@ -0,0 +1,19 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.Query;
+import com.huimv.beeboxs.entity.CamareDevideBind;
+import com.huimv.beeboxs.mapper.CamareDevideBindMapper;
+import com.huimv.beeboxs.service.CamareDevideBindService;
+import org.springframework.stereotype.Service;
+import java.util.Map;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+
+
+
+@Service("camareDevideBindService")
+public class CamareDevideBindServiceImpl extends ServiceImpl<CamareDevideBindMapper, CamareDevideBind> implements CamareDevideBindService {
+
+
+}

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

@@ -0,0 +1,20 @@
+package com.huimv.beeboxs.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.huimv.beeboxs.entity.FarmVideoAccount;
+import com.huimv.beeboxs.mapper.FarmVideoAccountMapper;
+import com.huimv.beeboxs.service.FarmVideoAccountService;
+import org.springframework.stereotype.Service;
+
+/**
+ * TODO
+ *
+ * @author CodeYang.
+ * @date 2022/4/24 16:24
+ */
+@Service("FarmVideoAccountService")
+public class FarmVideoAccountServiceImpl   extends ServiceImpl<FarmVideoAccountMapper, FarmVideoAccount> implements FarmVideoAccountService {
+
+
+
+}

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

@@ -6,6 +6,7 @@ import com.huimv.beeboxs.service.IHiveStationService;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import org.springframework.stereotype.Service;
 
+
 /**
  * <p>
  *  服务实现类
@@ -17,4 +18,9 @@ import org.springframework.stereotype.Service;
 @Service
 public class HiveStationServiceImpl extends ServiceImpl<HiveStationMapper, HiveStation> implements IHiveStationService {
 
+
+
+
+
+    
 }

+ 0 - 1
beeboxs/src/main/java/com/huimv/beeboxs/service/impl/MenuServiceImpl.java

@@ -55,7 +55,6 @@ public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements IM
                 groupMenu.setMenuId(id);
                 groupMenuMapper.insert(groupMenu);
             }
-
             return new Result(10000,"添加成功",true);
         }catch (Exception e){
             return new Result(10001,"添加失败",false);