气象预警增加导出功能
parent
97a4700dbf
commit
40ad7d5af0
|
|
@ -533,10 +533,16 @@ public class QXWarnController {
|
|||
|
||||
List<QXWarning> list = service.list(dto);
|
||||
|
||||
if (CollectionUtils.isNotEmpty(list)){
|
||||
ExcelCommon.exportExcel(list,
|
||||
null, "历史气象预警", QXWarning.class, "历史气象预警.xlsx",
|
||||
response);
|
||||
|
||||
}else{
|
||||
throw new MyException("没有查询到数据");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@
|
|||
|
||||
ORDER BY Q.WARNID DESC
|
||||
</select>
|
||||
<select id="list" resultType="com.whdc.model.vo.QXWarningVO">
|
||||
<select id="list" resultType="com.whdc.model.entity.QXWarning">
|
||||
SELECT
|
||||
Q.*,IF( WF.ID IS NOT NULL,1,0) STATUS
|
||||
Q.*
|
||||
FROM
|
||||
FXKH_TXL.QXWARNING Q
|
||||
LEFT JOIN FXKH_TXL.WARNMSG_FEEDBACK WF ON WF.WARNID = Q.WARNID
|
||||
|
|
|
|||
Loading…
Reference in New Issue