| | |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface ApiInfoDataRep extends JpaRepository<ApiInfoData, String>, JpaSpecificationExecutor<ApiInfoData> { |
| | |
| | | List<ApiInfoData> getDataByInteId(@Param("inteId") String inteId); |
| | | |
| | | /** |
| | | * 根据接口编码查询数据 |
| | | * |
| | | * @param inteId |
| | | * @return |
| | | */ |
| | | @Query("from ApiInfoData where inteId=:inteId and updateTime >=:start and updateTime <:end order by updateTime") |
| | | List<ApiInfoData> getDataByInteId(@Param("inteId") String inteId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | /** |
| | | * 根据表单主键更新操作标志状态 |
| | | * |
| | | * @param id 主键ID |