标准预警导出

This commit is contained in:
庄新伟
2022-03-15 13:31:28 +08:00
parent af846f74e0
commit f9f4c0c0b4
3 changed files with 24 additions and 6 deletions
@@ -17,4 +17,6 @@ public interface EarlyWarningEODao extends BaseMapper<EarlyWarningEO> {
List<WarningExportVO> exportWarning(@Param("idList") List<String> ids);
String exportShow(@Param("str") List<String> str);
}
@@ -17,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.text.SimpleDateFormat;
import java.util.Arrays;
import java.util.List;
@Service("EarlyWarningEOService")
@@ -123,6 +124,14 @@ public class EarlyWarningEOServiceImpl extends ServiceImpl<EarlyWarningEODao, Ea
@Override
public List<WarningExportVO> getExportExcel(WarningExcelVO excelVO){
List<WarningExportVO> standWarningEOList = earlyWarningEODao.exportWarning( excelVO.getIds());
for(WarningExportVO vo:standWarningEOList){
if (vo.getApplyType() == null || vo.getApplyType().equals("")){
vo.setApplyTypeShow(null);
}else {
List<String> str = Arrays.asList(vo.getApplyType().split(","));
vo.setApplyTypeShow(earlyWarningEODao.exportShow(str));
}
}
// IPage<StandWarningEO> standWarningEOIPage = earlyWarningEODao.selectWarningPage(null, null, null);
return standWarningEOList;