标准预警导出
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
+9
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user