|
|
|
@ -16,6 +16,8 @@ import io.swagger.v3.oas.annotations.Parameter; |
|
|
|
import io.swagger.v3.oas.annotations.Parameters; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.lang3.ObjectUtils; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
@ -45,6 +47,10 @@ public class CqcCarbonDistributionController { |
|
|
|
@Parameter(name = "applyNo", description = "applyNo,报表唯一编码") |
|
|
|
}) |
|
|
|
public Result<PageData<CqcCarbonDistributionDTO>> page(@Parameter(hidden = true) @RequestParam Map<String, Object> params){ |
|
|
|
String applyNo = MapUtils.getString(params,"applyNo"); |
|
|
|
if(ObjectUtils.isEmpty(applyNo)){ |
|
|
|
return new Result<>(); |
|
|
|
} |
|
|
|
PageData<CqcCarbonDistributionDTO> page = cqcCarbonDistributionService.getPageData(params, CqcCarbonDistributionDTO.class); |
|
|
|
return new Result<PageData<CqcCarbonDistributionDTO>>().ok(page); |
|
|
|
} |
|
|
|
|