glj-代码提交

This commit is contained in:
glj 2023-07-10 10:53:50 +08:00
parent 1e73ec8c55
commit 011fd5238a
4 changed files with 15 additions and 4 deletions

View File

@ -76,6 +76,12 @@ public class Hotspot implements Serializable {
@ExcelIgnore
private Date reviewTime;
/**
* news或gdacs 来源
*/
private String source;
@ExcelIgnore
@TableField(exist = false)

View File

@ -21,4 +21,9 @@ public class HotspotArea {
* 名称
*/
private String nameNew;
/**
* 来源
*/
private String source;
}

View File

@ -1,7 +1,5 @@
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.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

View File

@ -14,19 +14,21 @@
<result property="status" column="status" jdbcType="SMALLINT"/>
<result property="managerId" column="manager_id" jdbcType="BIGINT"/>
<result property="reviewTime" column="review_time" jdbcType="TIMESTAMP"/>
<result property="source" column="source" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,area_cn,area_en,
frequency,disaster_id,create_time,
status,manager_id,review_time
status,manager_id,review_time, source
</sql>
<select id="hotspotCount" resultType="com.kening.vordm.entity.HotspotArea">
select
concat(area_cn,"(",area_en,")") as name,
area_en AS nameNew,
frequency as value
frequency as value,
source as source
from hotspot
<where>
and `status` = 1