删除无用代码
This commit is contained in:
parent
7ff3bef2b3
commit
12e5320abf
@ -58,8 +58,6 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
||||
.antMatchers(HttpMethod.GET, "/api/user/verificationCode").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/uploadFileMore").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/uploadFile").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/deleteShuiTi").permitAll()
|
||||
.antMatchers(HttpMethod.GET, "/selectBeijing").permitAll()
|
||||
.antMatchers(HttpMethod.GET, "/api/user/verificationCodeUpdate").permitAll()
|
||||
.antMatchers(HttpMethod.GET, "/api/user/getVerificationCode").permitAll()
|
||||
.antMatchers(HttpMethod.POST, "/api/user/userUnRememberPassword").permitAll()
|
||||
|
@ -372,29 +372,6 @@ public class FirePointController {
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, byFireCode, locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除水体类型的火点信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Transactional(rollbackOn = Exception.class)
|
||||
@PostMapping("/deleteShuiTi")
|
||||
public String deleteShuiTi() {
|
||||
// 获取区域信息
|
||||
Locale locale = LocaleContextHolder.getLocale();
|
||||
List<Integer> integers = firePointDao.selectId();
|
||||
firePointDao.deleteByIdIn(integers);
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "删除成功", locale);
|
||||
}
|
||||
|
||||
@GetMapping("/selectBeijing")
|
||||
public String selectBeijing() {
|
||||
// 获取区域信息
|
||||
Locale locale = LocaleContextHolder.getLocale();
|
||||
List<FirePointEntity> firePointEntities = firePointDao.selectBeijing();
|
||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, firePointEntities, locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据火点编码添加火点前后的图片
|
||||
*
|
||||
|
@ -39,33 +39,15 @@ public interface FirePointDao extends JpaRepository<FirePointEntity, Long>, JpaS
|
||||
/**
|
||||
* 查询时间段内各植被类型的火点数量
|
||||
*/
|
||||
@Query(value = "select la.land_name landname,count(fp.id) as num from land la left join fire_point fp on fp.land_type = la.land_name AND fp.add_time BETWEEN ?1 AND ?2 group by la.land_name", nativeQuery = true)
|
||||
@Query(value = "select la.land_name landname,count(fp.id) as num from land la left join fire_point fp on fp.land_type = la.land_name AND fp.satellite_time BETWEEN ?1 AND ?2 group by la.land_name", nativeQuery = true)
|
||||
List<Map<String, Object>> selectNumByLandType(String startTime, String endTime);
|
||||
|
||||
/**
|
||||
* 查询时间段内各地区的火点数量
|
||||
*/
|
||||
@Query(value = "select ci.city_name cityname,count(fp.id) from city ci left join fire_point fp " + "on fp.county_code like concat('%',ci.city_code,'%') AND fp.add_time BETWEEN ?1 AND ?2 " + "group by ci.city_name", nativeQuery = true)
|
||||
@Query(value = "select ci.city_name cityname,count(fp.id) from street ci left join fire_point fp on fp.county_code like concat('%',ci.city_code,'%') AND fp.satellite_time BETWEEN ?1 AND ?2 group by ci.city_name", nativeQuery = true)
|
||||
List<Map<String, Object>> selectNumByArea(String startTime, String endTime);
|
||||
|
||||
/**
|
||||
* 查询水体类型的id
|
||||
*/
|
||||
@Query(value = "select id from fire_point where land_type = '水体'", nativeQuery = true)
|
||||
List<Integer> selectId();
|
||||
|
||||
/**
|
||||
* 批量删除水体
|
||||
*/
|
||||
@Modifying(clearAutomatically = true)
|
||||
void deleteByIdIn(List<Integer> id);
|
||||
|
||||
/**
|
||||
* 查询北京的火点
|
||||
*/
|
||||
@Query(value = "select * from fire_point fp where fp.fire_point_address like concat('%','北京市','%') and fp.add_time BETWEEN '2021-10-19' AND '2021-11-20'", nativeQuery = true)
|
||||
List<FirePointEntity> selectBeijing();
|
||||
|
||||
/**
|
||||
* 根据火点编码,修改火点前后图片路径
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user