导出工具类,以及代码优化
This commit is contained in:
parent
d799c141ed
commit
308c7cea68
|
|
@ -98,7 +98,7 @@ public class CoordinatePhotoController {
|
|||
@LogAnnotation(operModul = "协调照片--导出", operation = "查询照片", operDesc = "系统级事件",operType="导出")
|
||||
public void coordinatePhotoExport(HttpServletResponse response, EncryptedReq<CoordinatePhotoReqVo> data) {
|
||||
|
||||
List<CoordinatePhotoVo> coordinatePhotoVoList = (List<CoordinatePhotoVo>) coordinatePhotoService.getCoordinatePhotoList(data.getData()).getData();
|
||||
List<CoordinatePhotoVo> coordinatePhotoVoList = coordinatePhotoService.coordinatePhotoExport(data.getData());
|
||||
ExcelUtil<CoordinatePhotoVo> util = new ExcelUtil<CoordinatePhotoVo>(CoordinatePhotoVo.class);
|
||||
util.exportExcel(response, coordinatePhotoVoList, "协调照片");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public class ImportantMatterController {
|
|||
@LogAnnotation(operModul = "协调照片--导出", operation = "查询照片", operDesc = "系统级事件",operType="导出")
|
||||
public void importantMatterExport(HttpServletResponse response, EncryptedReq<ImportantMatterReqVo> data) {
|
||||
|
||||
List<ImportantMatterVo> coordinatePhotoVoList = (List<ImportantMatterVo>) importantMatterService.getImportantMatterList(data.getData()).getData();
|
||||
List<ImportantMatterVo> coordinatePhotoVoList = importantMatterService.importantMatterExport(data.getData());
|
||||
ExcelUtil<ImportantMatterVo> util = new ExcelUtil<ImportantMatterVo>(ImportantMatterVo.class);
|
||||
util.exportExcel(response, coordinatePhotoVoList, "重要事项及宣传照片");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ public class SafetyMeasuresController {
|
|||
@LogAnnotation(operModul = "安全措施落实-导出", operation = "查询照片", operDesc = "系统级事件",operType="导出")
|
||||
public void safetyMeasuresExport(HttpServletResponse response, EncryptedReq<SafetyMeasuresReqVo> data) {
|
||||
|
||||
List<SafetyMeasuresVo> safetyMeasuresList = (List<SafetyMeasuresVo>) safetyMeasuresService.getSafetyMeasuresList(data.getData()).getData();
|
||||
List<SafetyMeasuresVo> safetyMeasuresList = safetyMeasuresService.safetyMeasuresExport(data.getData());
|
||||
ExcelUtil<SafetyMeasuresVo> util = new ExcelUtil<SafetyMeasuresVo>(SafetyMeasuresVo.class);
|
||||
util.exportExcel(response, safetyMeasuresList, "安全措施落实");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import com.bonus.imgTool.imageUpload.dto.CoordinatePhotoReqVo;
|
|||
import com.bonus.imgTool.imageUpload.dto.CoordinatePhotoVo;
|
||||
import com.bonus.imgTool.utils.ServerResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface CoordinatePhotoService {
|
||||
ServerResponse getCoordinatePhotoList(CoordinatePhotoReqVo data);
|
||||
|
||||
|
|
@ -14,4 +16,6 @@ public interface CoordinatePhotoService {
|
|||
ServerResponse updateCoordinatePhoto(CoordinatePhotoVo data);
|
||||
|
||||
ServerResponse getCoordinatePhotoById(CoordinatePhotoReqVo data);
|
||||
|
||||
List<CoordinatePhotoVo> coordinatePhotoExport(CoordinatePhotoReqVo data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import com.bonus.imgTool.imageUpload.dto.ImportantMatterReqVo;
|
|||
import com.bonus.imgTool.imageUpload.dto.ImportantMatterVo;
|
||||
import com.bonus.imgTool.utils.ServerResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface ImportantMatterService {
|
||||
ServerResponse getImportantMatterList(ImportantMatterReqVo data);
|
||||
|
||||
|
|
@ -14,4 +16,6 @@ public interface ImportantMatterService {
|
|||
ServerResponse updateImportantMatter(ImportantMatterVo data);
|
||||
|
||||
ServerResponse getImportantMatterById(ImportantMatterReqVo data);
|
||||
|
||||
List<ImportantMatterVo> importantMatterExport(ImportantMatterReqVo data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@ import com.bonus.imgTool.imageUpload.dto.SafetyMeasuresReqVo;
|
|||
import com.bonus.imgTool.imageUpload.dto.SafetyMeasuresVo;
|
||||
import com.bonus.imgTool.utils.ServerResponse;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface SafetyMeasuresService {
|
||||
ServerResponse getSafetyMeasuresList(SafetyMeasuresReqVo data);
|
||||
|
||||
|
|
@ -14,4 +16,6 @@ public interface SafetyMeasuresService {
|
|||
ServerResponse updateSafetyMeasures(SafetyMeasuresVo data);
|
||||
|
||||
ServerResponse getSafetyMeasuresById(SafetyMeasuresReqVo data);
|
||||
|
||||
List<SafetyMeasuresVo> safetyMeasuresExport(SafetyMeasuresReqVo data);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -161,5 +161,10 @@ public class CoordinatePhotoServiceImpl implements CoordinatePhotoService {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<CoordinatePhotoVo> coordinatePhotoExport(CoordinatePhotoReqVo data) {
|
||||
return coordinatePhotoMapper.getCoordinatePhotoList(data);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -160,4 +160,9 @@ public class ImportantMatterServiceImpl implements ImportantMatterService {
|
|||
return ServerResponse.createErroe("查询失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ImportantMatterVo> importantMatterExport(ImportantMatterReqVo data) {
|
||||
return importantMatterMapper.getImportantMatterList(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -163,4 +163,9 @@ public class SafetyMeasuresServiceImpl implements SafetyMeasuresService {
|
|||
return ServerResponse.createErroe("查询失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SafetyMeasuresVo> safetyMeasuresExport(SafetyMeasuresReqVo data) {
|
||||
return safetyMeasuresMapper.getSafetyMeasuresList(data);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue