|
@@ -4,6 +4,7 @@ import com.huimv.beeboxs.common.token.TokenSign;
|
|
|
import com.huimv.beeboxs.common.utils.Result;
|
|
|
import com.huimv.beeboxs.common.utils.ResultCode;
|
|
|
import com.huimv.beeboxs.entity.SysAccountMultilevel;
|
|
|
+import com.huimv.beeboxs.service.IHiveBaseStationService;
|
|
|
import com.huimv.beeboxs.service.ILoginService;
|
|
|
import com.huimv.beeboxs.session.AccessToken;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -14,6 +15,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping("/hive")
|
|
@@ -22,6 +25,9 @@ public class OpenCotroller {
|
|
|
@Autowired
|
|
|
ILoginService iLoginService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IHiveBaseStationService baseStationService;
|
|
|
+
|
|
|
@GetMapping("/token")
|
|
|
public Result test(@RequestParam(name = "account") String account,
|
|
|
@RequestParam(name = "password") String password,
|
|
@@ -59,6 +65,11 @@ public class OpenCotroller {
|
|
|
@RequestParam(name = "pageSize") String pageSize,
|
|
|
@RequestParam(name = "netstatus") String netstatus){
|
|
|
|
|
|
-return null;
|
|
|
+ Map map = new HashMap();
|
|
|
+ map.put("current",pageNo);
|
|
|
+ map.put("pageSize",pageSize);
|
|
|
+ map.put("",netstatus);
|
|
|
+
|
|
|
+ return baseStationService.searchList(map);
|
|
|
}
|
|
|
}
|