diff --git a/air/src/main/java/com/air/land/controller/LandToListController.java b/air/src/main/java/com/air/land/controller/LandToListController.java index 13f4fca..677f51b 100644 --- a/air/src/main/java/com/air/land/controller/LandToListController.java +++ b/air/src/main/java/com/air/land/controller/LandToListController.java @@ -1,13 +1,9 @@ package com.air.land.controller; import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.io.IoUtil; import cn.hutool.core.util.ObjectUtil; -import cn.hutool.poi.excel.ExcelWriter; import com.air.common.Constant; -import com.air.land.entity.LandListed; import com.air.land.entity.LandToList; -import com.air.land.service.LandListedService; import com.air.land.service.LandToListService; import com.air.land.vo.LandListedPageVo; import com.air.land.vo.LandToListVo; @@ -18,7 +14,6 @@ import com.cinderella.framework.common.core.util.R; import com.cinderella.framework.common.data.mybatis.QueryPage; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; -import lombok.AllArgsConstructor; import org.apache.commons.lang3.StringUtils; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.springframework.beans.factory.annotation.Autowired; @@ -27,9 +22,7 @@ import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; -import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServletResponse; -import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; diff --git a/air/src/main/java/com/air/macro/controller/MacroDataController.java b/air/src/main/java/com/air/macro/controller/MacroDataController.java index c490e28..057de95 100644 --- a/air/src/main/java/com/air/macro/controller/MacroDataController.java +++ b/air/src/main/java/com/air/macro/controller/MacroDataController.java @@ -4,6 +4,7 @@ import com.air.macro.entity.MacroData; import com.air.macro.service.MacroDataService; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.cinderella.framework.common.core.util.R; +import com.cinderella.framework.common.data.mybatis.QueryPage; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.AllArgsConstructor; diff --git a/air/src/main/java/com/air/macro/entity/MacroData.java b/air/src/main/java/com/air/macro/entity/MacroData.java index ffb5876..eb02e03 100644 --- a/air/src/main/java/com/air/macro/entity/MacroData.java +++ b/air/src/main/java/com/air/macro/entity/MacroData.java @@ -29,7 +29,7 @@ public class MacroData extends Model { private Long dataId; @ApiModelProperty(value = "年份") - private LocalDateTime year; + private int year; @ApiModelProperty(value = "城市") private String city; diff --git a/air/src/main/java/com/air/macro/service/MacroDataService.java b/air/src/main/java/com/air/macro/service/MacroDataService.java index 18dee63..4dfb124 100644 --- a/air/src/main/java/com/air/macro/service/MacroDataService.java +++ b/air/src/main/java/com/air/macro/service/MacroDataService.java @@ -3,6 +3,7 @@ package com.air.macro.service; import com.air.macro.entity.MacroData; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.IService; +import com.cinderella.framework.common.data.mybatis.QueryPage; import org.springframework.web.multipart.MultipartFile; import java.util.List; diff --git a/air/src/main/java/com/air/macro/service/impl/MacroDataServiceImpl.java b/air/src/main/java/com/air/macro/service/impl/MacroDataServiceImpl.java index 087498f..377017a 100644 --- a/air/src/main/java/com/air/macro/service/impl/MacroDataServiceImpl.java +++ b/air/src/main/java/com/air/macro/service/impl/MacroDataServiceImpl.java @@ -1,5 +1,6 @@ package com.air.macro.service.impl; +import com.air.enums.CommonStatusEnum; import com.air.macro.entity.MacroData; import com.air.macro.mapper.MacroDataMapper; import com.air.macro.service.MacroDataService; @@ -30,7 +31,8 @@ public class MacroDataServiceImpl extends ServiceImpl p = macroDataMapper.selectPage(page,Wrappers.lambdaQuery().eq(MacroData::getStatusCd, CommonStatusEnum.SYS_MESSAGE_STATUS_1000.getCode())); + return p; } @Override