12 changed files with 221 additions and 0 deletions
@ -0,0 +1,11 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:14 |
|||
*/ |
|||
@Data |
|||
public class DataCenter { |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:15 |
|||
*/ |
|||
@Data |
|||
public class DataCenterDto implements Dto { |
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.yxt.supervise.report.api.dailysalesreport.DailySalesReport; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:16 |
|||
*/ |
|||
@Mapper |
|||
public interface DataCenterMapper extends BaseMapper<DataCenter> { |
|||
} |
@ -0,0 +1,6 @@ |
|||
<?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.yxt.supervise.report.biz.datacenter.DataCenterMapper"> |
|||
<!-- <where> ${ew.sqlSegment} </where>--> |
|||
<!-- ${ew.customSqlSegment} --> |
|||
</mapper> |
@ -0,0 +1,12 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:15 |
|||
*/ |
|||
@Data |
|||
public class DataCenterQuery implements Query { |
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.supervise.report.biz.projectdaily.ProjectDailyQuery; |
|||
import com.yxt.supervise.report.biz.projectdaily.ProjectDailyService; |
|||
import com.yxt.supervise.report.biz.projectdaily.ProjectDailyVos; |
|||
import com.yxt.supervise.report.biz.projectdaily.ProjectDailys; |
|||
import com.yxt.supervise.report.feign.monitor.YDeviceFeign; |
|||
import com.yxt.supervise.report.feign.monitor.YDeviceImageFeign; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:15 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/datacenter") |
|||
public class DataCenterRest { |
|||
@Autowired |
|||
ProjectDailyService projectDailyService; |
|||
@Autowired |
|||
YDeviceImageFeign yDeviceImageFeign; |
|||
@Autowired |
|||
YDeviceFeign yDeviceFeign; |
|||
//数据总览
|
|||
@PostMapping("/getProjectDaily") |
|||
public ResultBean<ProjectDailyVos> getProjectDaily(@RequestBody ProjectDailys ProjectDailys) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
// ResultBean b=projectDailyService.ww(ProjectDailys);
|
|||
// if(!b.getCode().equals("200")){
|
|||
// return b;
|
|||
// }
|
|||
ProjectDailyVos pv = projectDailyService.fetchByProjectAndDay("983eefd8-6109-4e8e-bc1b-71e16e644170", ProjectDailys.getOrderDate()); |
|||
return rb.success().setData(pv); |
|||
} |
|||
|
|||
//仓库安防
|
|||
@ApiOperation("获取正常视频流") |
|||
@GetMapping("/getVedioPcLiveById") |
|||
public ResultBean getVedioPcLiveById(@RequestParam String id){ |
|||
|
|||
return yDeviceImageFeign.getVedioPcLiveById(id); |
|||
} |
|||
@ApiOperation("获取回放视频流") |
|||
@GetMapping("/getVedioPcRecById") |
|||
public ResultBean getVedioPcRecById(@RequestParam String id){ |
|||
return yDeviceImageFeign.getVedioPcRecById(id); |
|||
} |
|||
@ApiOperation("获取指定设备列表") |
|||
@GetMapping("/getOtherList") |
|||
public ResultBean getOtherList(@RequestParam(value = "type") String type, @RequestParam(value = "ckId") String ckId){ |
|||
return yDeviceFeign.getOtherList(type, ckId); |
|||
} |
|||
//库存分析图
|
|||
// @PostMapping("/getProjectDailys")
|
|||
// public ResultBean<ProjectDailyVos> getProjectDailys(@RequestBody ProjectDailyQuery ProjectDailys) {
|
|||
// ResultBean rb = ResultBean.fireFail();
|
|||
//// ResultBean b=projectDailyService.ww(ProjectDailys);
|
|||
//// if(!b.getCode().equals("200")){
|
|||
//// return b;
|
|||
//// }
|
|||
// ProjectDailyVos pv = projectDailyService.fetchByProjectAndDay2(ProjectDailys);
|
|||
// return rb.success().setData(pv);
|
|||
// }
|
|||
//告警消息
|
|||
|
|||
|
|||
|
|||
//仓库库存表
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.yxt.supervise.report.biz.datacenter; |
|||
|
|||
import com.yxt.common.base.service.MybatisBaseService; |
|||
import com.yxt.supervise.report.api.dailysalesreport.DailySalesReport; |
|||
import com.yxt.supervise.report.biz.dailysalesreport.DailySalesReportMapper; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/13 18:16 |
|||
*/ |
|||
@Service |
|||
public class DataCenterService extends MybatisBaseService<DataCenterMapper, DataCenter> { |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.yxt.supervise.report.feign.monitor; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/14 9:36 |
|||
*/ |
|||
@Api(tags = "安防系统") |
|||
@FeignClient( |
|||
contextId = "supervise-monitor-Device", |
|||
name = "supervise-monitor", |
|||
path = "device") |
|||
public interface YDeviceFeign { |
|||
@ApiOperation("获取指定设备列表") |
|||
@GetMapping("/getOtherList") |
|||
public ResultBean getOtherList(@RequestParam(value = "type") String type, @RequestParam(value = "ckId") String ckId); |
|||
} |
@ -0,0 +1,27 @@ |
|||
package com.yxt.supervise.report.feign.monitor; |
|||
|
|||
import com.yxt.common.core.result.ResultBean; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
|
|||
/** |
|||
* @author wangpengfei |
|||
* @date 2023/11/14 9:11 |
|||
*/ |
|||
@Api(tags = "安防系统") |
|||
@FeignClient( |
|||
contextId = "supervise-monitor-DeviceImgae", |
|||
name = "supervise-monitor", |
|||
path = "deviceImage") |
|||
public interface YDeviceImageFeign { |
|||
@ApiOperation("获取正常视频流") |
|||
@GetMapping("/getVedioPcLiveById") |
|||
public ResultBean getVedioPcLiveById(@RequestParam(value = "id") String id); |
|||
|
|||
@ApiOperation("获取回放视频流") |
|||
@GetMapping("/getVedioPcRecById") |
|||
public ResultBean getVedioPcRecById(@RequestParam(value = "id")String id); |
|||
} |
Loading…
Reference in new issue