| | |
| | | package com.fzzy.api.view.repository; |
| | | |
| | | import com.fzzy.api.entity.Api1102; |
| | | import com.fzzy.api.entity.Api1104; |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Modifying; |
| | |
| | | import org.springframework.data.repository.query.Param; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | |
| | |
| | | @Query("update Api1104 set czbz=:czbz where ajdh=:id ") |
| | | int updateStatus(@Param("id") String id, @Param("czbz") String czbz); |
| | | |
| | | /** |
| | | * @param kqdm |
| | | * @return |
| | | */ |
| | | @Query("from Api1104 where kqdm=:kqdm ") |
| | | List<Api1104> findPushData(@Param("kqdm") String kqdm); |
| | | |
| | | /** |
| | | * |
| | | * @param |
| | | * @return |
| | | */ |
| | | @Query("from Api1104 where ajdh=:ajdh ") |
| | | List<Api1104> findDataByAjdh(@Param("ajdh") String ajdh); |
| | | |
| | | /** |
| | | * |
| | | * @param kqdm |
| | | * @return |
| | | */ |
| | | @Query("from Api1104 where kqdm=:kqdm and zhgxsj >=:start and zhgxsj <:end order by zhgxsj ") |
| | | List<Api1104> findPushDataTime(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | /** |
| | | * @param |
| | | * @return |
| | | */ |
| | | @Query("from Api1104 where cfbh=:cfbh ") |
| | | List<Api1104> findDataByCfbh(@Param("cfbh") String cfbh); |
| | | |
| | | |
| | | /** |
| | | * @param |
| | | * @return |
| | | */ |
| | | @Query("from Api1104 where ajdh=:ajdh ") |
| | | Api1104 findByAjdh(@Param("ajdh") String ajdh); |
| | | } |