glj-代码提交
This commit is contained in:
parent
1e73ec8c55
commit
011fd5238a
|
@ -76,6 +76,12 @@ public class Hotspot implements Serializable {
|
||||||
@ExcelIgnore
|
@ExcelIgnore
|
||||||
private Date reviewTime;
|
private Date reviewTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* news或gdacs 来源
|
||||||
|
*/
|
||||||
|
private String source;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ExcelIgnore
|
@ExcelIgnore
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|
|
@ -21,4 +21,9 @@ public class HotspotArea {
|
||||||
* 名称
|
* 名称
|
||||||
*/
|
*/
|
||||||
private String nameNew;
|
private String nameNew;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 来源
|
||||||
|
*/
|
||||||
|
private String source;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
package com.kening.vordm.entity;
|
package com.kening.vordm.entity;
|
||||||
|
|
||||||
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
|
|
||||||
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
|
|
||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
|
@ -14,19 +14,21 @@
|
||||||
<result property="status" column="status" jdbcType="SMALLINT"/>
|
<result property="status" column="status" jdbcType="SMALLINT"/>
|
||||||
<result property="managerId" column="manager_id" jdbcType="BIGINT"/>
|
<result property="managerId" column="manager_id" jdbcType="BIGINT"/>
|
||||||
<result property="reviewTime" column="review_time" jdbcType="TIMESTAMP"/>
|
<result property="reviewTime" column="review_time" jdbcType="TIMESTAMP"/>
|
||||||
|
<result property="source" column="source" jdbcType="TIMESTAMP"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<sql id="Base_Column_List">
|
<sql id="Base_Column_List">
|
||||||
id,area_cn,area_en,
|
id,area_cn,area_en,
|
||||||
frequency,disaster_id,create_time,
|
frequency,disaster_id,create_time,
|
||||||
status,manager_id,review_time
|
status,manager_id,review_time, source
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="hotspotCount" resultType="com.kening.vordm.entity.HotspotArea">
|
<select id="hotspotCount" resultType="com.kening.vordm.entity.HotspotArea">
|
||||||
select
|
select
|
||||||
concat(area_cn,"(",area_en,")") as name,
|
concat(area_cn,"(",area_en,")") as name,
|
||||||
area_en AS nameNew,
|
area_en AS nameNew,
|
||||||
frequency as value
|
frequency as value,
|
||||||
|
source as source
|
||||||
from hotspot
|
from hotspot
|
||||||
<where>
|
<where>
|
||||||
and `status` = 1
|
and `status` = 1
|
||||||
|
|
Loading…
Reference in New Issue