|
@@ -1,78 +0,0 @@
|
|
|
-//package com.xiaoan.web.backend;
|
|
|
-//
|
|
|
-//import com.github.pagehelper.PageInfo;
|
|
|
-//import com.xiaoan.common.constant.MsgCode;
|
|
|
-//import com.xiaoan.common.model.PageDto;
|
|
|
-//import com.xiaoan.common.util.ResultJson;
|
|
|
-//import com.xiaoan.domain.backend.CameraEntity;
|
|
|
-//import com.xiaoan.domain.backend.DepartmentEntity;
|
|
|
-//import com.xiaoan.domain.dto.request.DepartmentRequest;
|
|
|
-//import com.xiaoan.service.backend.CameraService;
|
|
|
-//import com.xiaoan.service.backend.DepartmentService;
|
|
|
-//import com.xiaoan.web.aop.WebControllerLog;
|
|
|
-//import io.swagger.annotations.Api;
|
|
|
-//import io.swagger.annotations.ApiOperation;
|
|
|
-//import org.apache.commons.lang3.StringUtils;
|
|
|
-//import org.springframework.beans.BeanUtils;
|
|
|
-//import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-//import org.springframework.transaction.annotation.Transactional;
|
|
|
-//import org.springframework.web.bind.annotation.*;
|
|
|
-//import tk.mybatis.mapper.entity.Condition;
|
|
|
-//
|
|
|
-///**
|
|
|
-// * Created by Hb_zzZ on 2020/2/27.
|
|
|
-// *
|
|
|
-// * 需要admin权限
|
|
|
-// */
|
|
|
-//@Api(tags = "DeviceController", description = "后台设备管理")
|
|
|
-//@RestController
|
|
|
-//@RequestMapping("api/manage/device")
|
|
|
-//@Transactional
|
|
|
-//public class DeviceController extends BaseController {
|
|
|
-//
|
|
|
-// @Autowired
|
|
|
-// private DepartmentService departmentService;
|
|
|
-//
|
|
|
-// @Autowired
|
|
|
-// private CameraService cameraService;
|
|
|
-//
|
|
|
-// @ApiOperation("分页获取部门列表/搜索")
|
|
|
-// @WebControllerLog(description = "部门信息-查询列表")
|
|
|
-// @PostMapping("list")
|
|
|
-// public ResultJson list(@RequestBody PageDto param){
|
|
|
-// Condition condition = new Condition(DepartmentEntity.class);
|
|
|
-// condition.and().andLike("name", "%" + param.getSearchKey()+ "%");
|
|
|
-// PageInfo<DepartmentEntity> pageInfo = departmentService.findAll(condition, param.getPageNum(), param.getPageSize());
|
|
|
-// return new ResultJson(MsgCode.SUCCESS_CODE, pageInfo);
|
|
|
-// }
|
|
|
-//
|
|
|
-// /**
|
|
|
-// * 需要一个mac地址
|
|
|
-// *
|
|
|
-// * WiFi名称,跟mac地址一致
|
|
|
-// * wifi密码:12345678
|
|
|
-// */
|
|
|
-// @ApiOperation("新增相机")
|
|
|
-// @WebControllerLog(description = "设备管理-新增相机")
|
|
|
-// @PostMapping("save/{code}")
|
|
|
-// public ResultJson save(@PathVariable String code){
|
|
|
-// if(StringUtils.isEmpty(code)){
|
|
|
-// return new ResultJson(MsgCode.FAILURE_CODE_3001, MsgCode.FAILURE_MSG_3001);
|
|
|
-// }
|
|
|
-//
|
|
|
-//
|
|
|
-// CameraEntity cameraEntity = cameraService.findByWifiName(code);
|
|
|
-// if(cameraEntity == null){
|
|
|
-// cameraEntity = new CameraEntity();
|
|
|
-// cameraEntity.setChildName(code);
|
|
|
-// cameraEntity.setWifiName(code);
|
|
|
-// cameraEntity.setWifiPassword("12345678");
|
|
|
-//
|
|
|
-//
|
|
|
-// cameraService.save(cameraEntity);
|
|
|
-// }
|
|
|
-//
|
|
|
-// return new ResultJson(MsgCode.SUCCESS_CODE, MsgCode.SUCCESS_MSG);
|
|
|
-// }
|
|
|
-//
|
|
|
-//}
|