glj-代码提交
This commit is contained in:
parent
eefa6d1330
commit
628ae3a6a7
|
@ -136,6 +136,12 @@ public class EntityData implements Serializable {
|
|||
@TableField(exist = false)
|
||||
private String msName;
|
||||
|
||||
/**
|
||||
* 灾害区域地理字段
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private String geometry;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
|
|
@ -25,4 +25,6 @@ public class OtherData{
|
|||
private Long disasterId;
|
||||
|
||||
private Integer visualFlag;
|
||||
|
||||
private String sourceOrganization;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package com.kening.vordm.controller;
|
||||
|
||||
import com.kening.vordm.entity.MapServer;
|
||||
import com.kening.vordm.service.MapServerService;
|
||||
import com.kening.vordm.vo.UserVo;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springblade.core.tool.api.R;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequiredArgsConstructor
|
||||
@RequestMapping("/ui/mapServer")
|
||||
public class MapServerController {
|
||||
|
||||
|
||||
//邮箱发送服务
|
||||
private final MapServerService mapServerService;
|
||||
|
||||
/**
|
||||
* 新增基础地理数据
|
||||
*
|
||||
* @param mapServer
|
||||
* @return
|
||||
*/
|
||||
// @PostMapping("/saveMapServer")
|
||||
// public R saveMapServer(@RequestBody MapServer mapServer) {
|
||||
// return mapServerService.saveMapServer(mapServer);
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -31,6 +31,7 @@ public class WordCloudsController {
|
|||
*/
|
||||
@GetMapping("/wordCount")
|
||||
public R<Map<String,List<WorldCharts>>> wordCount(@RequestParam Long disasterId){
|
||||
Map<String, List<WorldCharts>> stringListMap = service.wordCount(disasterId);
|
||||
return R.data(service.wordCount(disasterId));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,12 +40,11 @@
|
|||
select
|
||||
<include refid="Base_Column_List"/>,
|
||||
gi.username AS uploaderName,
|
||||
ms.layer_name,
|
||||
ms.vordm_id,
|
||||
ms.name AS msName
|
||||
di.vordm_id,
|
||||
di.geometry
|
||||
from entity_data ed
|
||||
left join guest_info gi on gi.id = ed.uploader_id
|
||||
left join map_server ms on ms.disaster_id = ed.disaster_id
|
||||
LEFT JOIN disaster_info di on di.id = ed.disaster_id
|
||||
<where>
|
||||
<if test="entityData.disasterId != null and entityData.disasterId != ''">
|
||||
ed.disaster_id = #{entityData.disasterId}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</sql>
|
||||
<select id="wordCount" resultType="com.kening.vordm.entity.WorldCharts" parameterType="java.lang.Long">
|
||||
select
|
||||
DATE_FORMAT(create_time,'%Y-%m-%d') date,
|
||||
date,
|
||||
frequency value,
|
||||
word name,
|
||||
type
|
||||
|
@ -35,5 +35,6 @@
|
|||
and disaster_id = #{disasterId}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY date DESC
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
@ -109,6 +109,7 @@ public class OtherDataServiceImpl extends ServiceImpl<OtherDataMapper, EntityDat
|
|||
entityData.setManagerId(AuthUtil.getUserId());
|
||||
entityData.setReviewTime(new Date());
|
||||
entityData.setVisualFlag(OtherData.getVisualFlag());
|
||||
entityData.setSourceOrganization(OtherData.getSourceOrganization());
|
||||
return save(entityData);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue