删除无用代码
This commit is contained in:
parent
65e5bb7cb8
commit
debab6db6e
@ -3,7 +3,6 @@ package com.xkrs.dao;
|
|||||||
import com.xkrs.model.entity.FirePointEntity;
|
import com.xkrs.model.entity.FirePointEntity;
|
||||||
import org.springframework.data.jpa.repository.JpaRepository;
|
import org.springframework.data.jpa.repository.JpaRepository;
|
||||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||||
import org.springframework.data.jpa.repository.Modifying;
|
|
||||||
import org.springframework.data.jpa.repository.Query;
|
import org.springframework.data.jpa.repository.Query;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -21,13 +20,6 @@ public interface FirePointDao extends JpaRepository<FirePointEntity, Long>, JpaS
|
|||||||
@Query(value = "SELECT * FROM fire_point WHERE longitude = ?1 AND latitude = ?2 AND street_code = ?3 AND satellite_time = ?4 AND satellite_type = ?5 AND land_type = ?6", nativeQuery = true)
|
@Query(value = "SELECT * FROM fire_point WHERE longitude = ?1 AND latitude = ?2 AND street_code = ?3 AND satellite_time = ?4 AND satellite_type = ?5 AND land_type = ?6", nativeQuery = true)
|
||||||
List<FirePointEntity> findDuplicatedData(double longitude, double latitude, String streetCode, String satelliteTime, String satelliteType, String landType);
|
List<FirePointEntity> findDuplicatedData(double longitude, double latitude, String streetCode, String satelliteTime, String satelliteType, String landType);
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据火点编码修改审核火点状态
|
|
||||||
*/
|
|
||||||
@Modifying(clearAutomatically = true)
|
|
||||||
@Query(value = "UPDATE fire_point SET audit_fire_type = ?2 WHERE fire_code = ?1", nativeQuery = true)
|
|
||||||
void updateAuditFireTypeByFireCode(String fireCode, String auditFireType);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询时间段内各植被类型的火点数量
|
* 查询时间段内各植被类型的火点数量
|
||||||
*/
|
*/
|
||||||
|
@ -1,17 +1,16 @@
|
|||||||
package com.xkrs.straw.controller;
|
package com.xkrs.straw.controller;
|
||||||
|
|
||||||
import com.xkrs.common.encapsulation.PromptMessageEnum;
|
import com.xkrs.common.encapsulation.PromptMessageEnum;
|
||||||
import com.xkrs.utils.TokenUtil;
|
|
||||||
import com.xkrs.dao.FirePointDao;
|
import com.xkrs.dao.FirePointDao;
|
||||||
import com.xkrs.straw.dao.SysUserDao;
|
|
||||||
import com.xkrs.model.entity.FirePointEntity;
|
import com.xkrs.model.entity.FirePointEntity;
|
||||||
import com.xkrs.straw.model.entity.SysUserEntity;
|
|
||||||
import com.xkrs.model.qo.AuditFireTypeQo;
|
|
||||||
import com.xkrs.model.qo.FirePointQo;
|
import com.xkrs.model.qo.FirePointQo;
|
||||||
import com.xkrs.service.FirePointService;
|
import com.xkrs.service.FirePointService;
|
||||||
import com.xkrs.service.StreetService;
|
import com.xkrs.service.StreetService;
|
||||||
import com.xkrs.service.impl.FirePointServiceImpl;
|
import com.xkrs.service.impl.FirePointServiceImpl;
|
||||||
|
import com.xkrs.straw.dao.SysUserDao;
|
||||||
|
import com.xkrs.straw.model.entity.SysUserEntity;
|
||||||
import com.xkrs.utils.FirePointQueryHelper;
|
import com.xkrs.utils.FirePointQueryHelper;
|
||||||
|
import com.xkrs.utils.TokenUtil;
|
||||||
import org.apache.hc.core5.util.TextUtils;
|
import org.apache.hc.core5.util.TextUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.*;
|
|||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.transaction.Transactional;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
@ -89,22 +87,6 @@ public class FirePointController {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 在全国火点表中根据火点编码修改审核火点状态
|
|
||||||
*/
|
|
||||||
@Transactional(rollbackOn = Exception.class)
|
|
||||||
@PostMapping("/updateauditfiretype")
|
|
||||||
public String updateAuditFireType(@RequestBody AuditFireTypeQo auditFireTypeQo) {
|
|
||||||
String fireCode = auditFireTypeQo.getFireCode();
|
|
||||||
String auditFireType = auditFireTypeQo.getAuditFireType();
|
|
||||||
FirePointEntity firePointByFireCode = firePointDao.findByFireCode(fireCode);
|
|
||||||
if (firePointByFireCode == null) {
|
|
||||||
return outputEncapsulationObject(PromptMessageEnum.PROCESS_FAIL, "修改失败,没有指定的火点编号", locale);
|
|
||||||
}
|
|
||||||
firePointDao.updateAuditFireTypeByFireCode(fireCode, auditFireType);
|
|
||||||
return outputEncapsulationObject(PromptMessageEnum.SUCCESS, "修改成功", locale);
|
|
||||||
}
|
|
||||||
|
|
||||||
@RequestMapping(value = "/download/vipuserfirepoint", method = RequestMethod.GET)
|
@RequestMapping(value = "/download/vipuserfirepoint", method = RequestMethod.GET)
|
||||||
public String downloadVipUserFirePoint(HttpServletResponse response, HttpServletRequest request) {
|
public String downloadVipUserFirePoint(HttpServletResponse response, HttpServletRequest request) {
|
||||||
return firePointService.downloadVipUserFilePoint(request, response);
|
return firePointService.downloadVipUserFilePoint(request, response);
|
||||||
|
Loading…
Reference in New Issue
Block a user