2022-06-02 10:06:59 +08:00
|
|
|
package com.xkrs.dao;
|
|
|
|
|
|
|
|
import com.xkrs.model.entity.ShanDongFirePointEntity;
|
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
2022-06-02 11:38:55 +08:00
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
|
import org.springframework.data.jpa.repository.Query;
|
2022-06-02 10:06:59 +08:00
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
|
|
@Component
|
|
|
|
public interface ShanDongFirePointDao extends JpaRepository<ShanDongFirePointEntity, Long>, JpaSpecificationExecutor<ShanDongFirePointEntity> {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据火点编码查询火点信息
|
|
|
|
*
|
|
|
|
* @param fireCode
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
ShanDongFirePointEntity findByFireCode(String fireCode);
|
|
|
|
|
2022-06-02 11:38:55 +08:00
|
|
|
/**
|
|
|
|
* 在山东临时火点表中根据火点编码修改审核状态
|
|
|
|
*/
|
|
|
|
@Modifying(clearAutomatically = true)
|
|
|
|
@Query(value = "UPDATE fire_point_shandong SET verify_state = ?2 WHERE fire_code = ?1", nativeQuery = true)
|
|
|
|
void updateVerifyStateByFireCode(String fireCode, String verifyState);
|
|
|
|
|
2022-06-02 10:06:59 +08:00
|
|
|
}
|