|
|
|
@ -15,17 +15,15 @@ import com.thing.common.core.web.response.Result; |
|
|
|
import com.thing.device.analysisdata.dto.AnalysisDataRespDTO; |
|
|
|
import com.thing.device.analysisdata.dto.ThingEnergyDictData; |
|
|
|
import com.thing.thing.entity.dto.IotThingEntityDTO; |
|
|
|
import com.thing.thing.entity.entity.IotThingEntity; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.Parameters; |
|
|
|
import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
import io.swagger.v3.oas.annotations.Parameters; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import jakarta.servlet.http.HttpServletResponse; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
|
import java.text.DecimalFormat; |
|
|
|
import java.util.*; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
@ -104,6 +102,20 @@ public class EnergyUsageController { |
|
|
|
return new Result<EnergyUsageSummaryDTO>().ok(result); |
|
|
|
} |
|
|
|
|
|
|
|
@PostMapping("flow/summary/all") |
|
|
|
@Operation(summary="能流汇总数据") |
|
|
|
@Parameters({ |
|
|
|
@Parameter(name = Constant.BEGIN_TIME, description = "开始时间"), |
|
|
|
@Parameter(name = Constant.END_TIME, description = "结束时间"), |
|
|
|
@Parameter(name = "thingId", description = "物id"), |
|
|
|
@Parameter(name = "attrType", description = "属性类型"), |
|
|
|
@Parameter(name = "energyVarietyId", description = "能源属性Id"), |
|
|
|
}) |
|
|
|
public Result<List<EnergyUsageSummaryDTO>> getFlowSummaryAll(@RequestBody EnergyUsageReqDTO request) { |
|
|
|
List<EnergyUsageSummaryDTO> list = energyUsageFlowService.getFlowSummaryAll(request); |
|
|
|
return new Result<List<EnergyUsageSummaryDTO>>().ok(list); |
|
|
|
} |
|
|
|
|
|
|
|
/*------------------------------用能概况-----------------------------------*/ |
|
|
|
|
|
|
|
@PostMapping("overview/variety/list") |
|
|
|
|