
5 changed files with 81 additions and 1 deletions
@ -0,0 +1,35 @@ |
|||||
|
package com.yxt.supervise.monitor.biz.wareHouse; |
||||
|
|
||||
|
import com.alibaba.fastjson.JSONObject; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.supervise.monitor.api.entity.Device; |
||||
|
import com.yxt.supervise.monitor.api.vo.PageVo; |
||||
|
import com.yxt.supervise.monitor.biz.device.YDeviceService; |
||||
|
import com.yxt.supervise.monitor.biz.scheduled.SyncService; |
||||
|
import com.yxt.supervise.monitor.biz.util.HttpUtils; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
@Api(tags = "设备控制器") |
||||
|
@RestController("com.yxt.supervise.monitor.biz.device.YWareHouseRest") |
||||
|
@RequestMapping("/wareHouse") |
||||
|
public class YWareHouseRest { |
||||
|
|
||||
|
@Autowired |
||||
|
private YWareHouseService yWareHouseService; |
||||
|
|
||||
|
|
||||
|
@ApiOperation("获取仓库数量") |
||||
|
@GetMapping("/getWareHouseCount") |
||||
|
public ResultBean getWareHouseCount() { |
||||
|
ResultBean rb = ResultBean.fireSuccess(); |
||||
|
rb.setData(yWareHouseService.getWareHouseCount()); |
||||
|
return rb; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue