省厅基础数据对接问题修改
parent
ddc8d4a8bd
commit
a8f0b96a75
|
|
@ -100,11 +100,7 @@ public class SourceDeviceV2 implements Serializable {
|
||||||
@Column(name = "update_time")
|
@Column(name = "update_time")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
|
||||||
/**
|
|
||||||
* 地市
|
|
||||||
*/
|
|
||||||
@Column(name = "info_source")
|
|
||||||
private String infoSource;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 警员身份证号 - 使用驼峰命名
|
* 警员身份证号 - 使用驼峰命名
|
||||||
|
|
|
||||||
|
|
@ -28,13 +28,7 @@ public interface SourceDeviceV2Repository extends JpaRepository<SourceDeviceV2,
|
||||||
* @param infoSource 信息来源
|
* @param infoSource 信息来源
|
||||||
* @return 设备
|
* @return 设备
|
||||||
*/
|
*/
|
||||||
SourceDeviceV2 findByDeviceCodeAndInfoSource(String deviceCode, String infoSource);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 查询指定信息来源的最新更新时间
|
|
||||||
* @param infoSource 信息来源
|
|
||||||
* @return 最新更新时间
|
|
||||||
*/
|
|
||||||
@Query("SELECT MAX(d.updateTime) FROM SourceDeviceV2 d WHERE d.infoSource = :infoSource")
|
|
||||||
Date findMaxUpdateTimeByInfoSource(@Param("infoSource") String infoSource);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue