|  | @ -0,0 +1,169 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.base.endpoint.a4endpoint;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.fasterxml.jackson.databind.ObjectMapper;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.service.a3service.MedicineOrderService;
 | 
	
		
			
				|  |  | import com.yihu.jw.base.service.a3service.MedicineWarrayService;
 | 
	
		
			
				|  |  | import com.yihu.jw.entity.a1entity.Mediicinewarray;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiImplicitParam;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiImplicitParams;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.GetMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import java.util.List;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | @Api(description = "报警信息列表")
 | 
	
		
			
				|  |  | @RestController
 | 
	
		
			
				|  |  | @RequestMapping("/MedicineUpEndpoint")
 | 
	
		
			
				|  |  | public class MedicineWarrayEndpoint {
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     MedicineWarrayService warraytService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private MedicineOrderService orderservice;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private ObjectMapper objectMapper;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     //温度报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "温度报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/gettemperature")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="temperaturebeg",value="湿度起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="temperatureend",value="温度终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> gettemperature(String idDevice, String equClass, float networkStatus, float temperaturebeg, float temperatureend, String codename, String beg, String end) {
 | 
	
		
			
				|  |  |         return   warraytService.gettemperature( idDevice, equClass, networkStatus, temperaturebeg, temperatureend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //湿度报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "湿度报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/gethumidity")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="humiditybeg",value="湿度起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="humidityend",value="湿度终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> gethumidity(String idDevice,String equClass,float networkStatus,float humiditybeg,float humidityend,String codename,String beg,String end){
 | 
	
		
			
				|  |  |         return   warraytService.gethumidity( idDevice, equClass, networkStatus, humiditybeg, humidityend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //离线报区合计,直接从设备上读取,然后按设备上读取数据合计值
 | 
	
		
			
				|  |  |     //离线报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "离线报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/getoffline")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="durationbeg",value="时长起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="durationend",value="时长终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> getoffline(String idDevice,String equClass,float networkStatus,float durationbeg,float durationend,String codename,String beg,String end){
 | 
	
		
			
				|  |  |         return   warraytService.getoffline( idDevice, equClass, networkStatus, durationbeg, durationend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //故障报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "故障报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/getfault")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countbeg",value="计数起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countend",value="计数终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> getfault(String idDevice,String equClass,float networkStatus,float countbeg,float countend,String codename,String beg,String end){
 | 
	
		
			
				|  |  |         return   warraytService.getfault( idDevice, equClass, networkStatus, countbeg, countend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //网络报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "网络报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/getnetwork")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countbeg",value="计数起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countend",value="计数终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> getnetwork(String idDevice,String equClass,float networkStatus,float temperaturebeg,float temperatureend,String codename,String beg,String end){
 | 
	
		
			
				|  |  |         return   warraytService.getnetwork( idDevice, equClass, networkStatus, temperaturebeg, temperatureend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //流量报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "流量报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/getflow")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countbeg",value="计数起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countend",value="计数终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> getflow(String idDevice,String equClass,float flowbeg,float flowend,float temperatureend,String codename,String beg,String end) {
 | 
	
		
			
				|  |  |         return   warraytService.getflow( idDevice, equClass, flowbeg, flowend, temperatureend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     //到期报警
 | 
	
		
			
				|  |  |     @ApiOperation(value = "到期报警", notes="参数未添加通过数据区域查询获取")
 | 
	
		
			
				|  |  |     @GetMapping("/getexceed")
 | 
	
		
			
				|  |  |     @ApiImplicitParams({
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="idDevice",value="设备id",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="equClass",value="设备类",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="networkStatus",value="网络状态",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countbeg",value="计数起",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="countend",value="计数终",dataType="float", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="codename",value="代号名称",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="beg",value="开日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |             @ApiImplicitParam(name="end",value="结束日期",dataType="string", paramType = "query"),
 | 
	
		
			
				|  |  |     })
 | 
	
		
			
				|  |  |     public List<Mediicinewarray> getexceed(String idDevice,String equClass,float networkStatus,float countbeg,float countend,String codename,String beg,String end) {
 | 
	
		
			
				|  |  |         return   warraytService.getexceed( idDevice, equClass, networkStatus, countbeg, countend, codename,beg,end);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | //---------众建平台,无法转移,
 | 
	
		
			
				|  |  | //    @GetMapping("getorderlist")
 | 
	
		
			
				|  |  | //    @ApiOperation("获取订单列表")
 | 
	
		
			
				|  |  | //    public PageEnvelop<Mediicineorder> findDevices(
 | 
	
		
			
				|  |  | //            @ApiParam(name = "fields", value = "返回的字段,为空返回全部字段")
 | 
	
		
			
				|  |  | //            @RequestParam(value = "fields", required = false) String fields,
 | 
	
		
			
				|  |  | //            @ApiParam(name = "filters", value = "过滤器,为空检索所有条件")
 | 
	
		
			
				|  |  | //            @RequestParam(value = "filters", required = false) String filters,
 | 
	
		
			
				|  |  | //            @ApiParam(name = "sorts", value = "排序,规则参见说明文档")
 | 
	
		
			
				|  |  | //            @RequestParam(value = "sorts", required = false) String sorts,
 | 
	
		
			
				|  |  | //            @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1")
 | 
	
		
			
				|  |  | //            @RequestParam(value = "page") int page,
 | 
	
		
			
				|  |  | //            @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15")
 | 
	
		
			
				|  |  | //            @RequestParam(value = "size") int size){
 | 
	
		
			
				|  |  | //        try {
 | 
	
		
			
				|  |  | //            List<Mediicineorder> list = deviceManageService.search(fields,filters,sorts,page,size);
 | 
	
		
			
				|  |  | //            int count = (int) deviceManageService.getCount(filters);
 | 
	
		
			
				|  |  | //            return success(list, count, page, size, Mediicineorder.class);
 | 
	
		
			
				|  |  | //        }catch (Exception e){
 | 
	
		
			
				|  |  | //            return failedPageEnvelopException2(e);
 | 
	
		
			
				|  |  | //        }
 | 
	
		
			
				|  |  | //
 | 
	
		
			
				|  |  | //    }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |