|
@@ -7,6 +7,7 @@ import com.bizmatics.service.vo.CommonIcoVO;
|
|
|
import com.bizmatics.service.vo.HadCountVO;
|
|
|
import com.bizmatics.service.vo.TimeShareVO;
|
|
|
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.RequestParam;
|
|
@@ -34,7 +35,7 @@ public class HtAnalogDataController {
|
|
|
* 首页日/月/年用电量
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("count")
|
|
|
+ @GetMapping("count")
|
|
|
public ApiResult<HadCountVO> count(){
|
|
|
return ApiResult.success(htAnalogDataService.selectCount());
|
|
|
}
|
|
@@ -45,7 +46,7 @@ public class HtAnalogDataController {
|
|
|
* @param siteId 站点id
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("eptrendIco")
|
|
|
+ @GetMapping("eptrendIco")
|
|
|
public ApiResult<List<CommonIcoVO>> getTrendByDate(@RequestParam Date startTime,@RequestParam(required = false) Integer siteId){
|
|
|
return ApiResult.success(htAnalogDataService.selectTrendByDate(startTime,siteId));
|
|
|
}
|
|
@@ -56,7 +57,7 @@ public class HtAnalogDataController {
|
|
|
* @param siteId 站点id
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("dayMonthYearEp")
|
|
|
+ @GetMapping("dayMonthYearEp")
|
|
|
public ApiResult<HadCountVO> getCountBySite(@RequestParam Integer siteId){
|
|
|
return ApiResult.success(htAnalogDataService.getCountBySite(siteId));
|
|
|
}
|
|
@@ -68,7 +69,7 @@ public class HtAnalogDataController {
|
|
|
* @param date 时间
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("timeShare")
|
|
|
+ @GetMapping("timeShare")
|
|
|
public ApiResult<TimeShareVO> getTimeShare(@RequestParam Integer siteId,@RequestParam Date date){
|
|
|
return ApiResult.success(htAnalogDataService.getTimeShare(siteId,date));
|
|
|
}
|
|
@@ -78,7 +79,7 @@ public class HtAnalogDataController {
|
|
|
* @param siteId 站点id
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("demandIco")
|
|
|
+ @GetMapping("demandIco")
|
|
|
public ApiResult<List<CommonIcoVO>> getDemandIco(@RequestParam Integer siteId){
|
|
|
return ApiResult.success(htAnalogDataService.getDemandIco(siteId));
|
|
|
}
|
|
@@ -89,7 +90,7 @@ public class HtAnalogDataController {
|
|
|
* @param date 时间
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping("electricIco")
|
|
|
+ @GetMapping("electricIco")
|
|
|
public ApiResult<List<CommonIcoVO>> getElectricIco(@RequestParam Integer siteId,@RequestParam Date date){
|
|
|
return ApiResult.success(htAnalogDataService.getElectricIco(siteId,date));
|
|
|
}
|