| | |
| | | import org.springframework.data.jpa.repository.JpaRepository; |
| | | import org.springframework.data.jpa.repository.Query; |
| | | import org.springframework.data.repository.query.Param; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | |
| | | |
| | | /** |
| | | * 根据信息获取出入库信息 |
| | | * |
| | | * @param deptId |
| | | * @param type |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40InoutRecord where deptId=:deptId and type=:type and updateTime >=:start and updateTime <:end order by updateTime ") |
| | | @Query("from Fz40InoutRecord where deptId=:deptId and type=:type and updateTime >=:start and updateTime <=:end order by id ") |
| | | List<Fz40InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("type") String type, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | /** |
| | | * 根据id获取粮食出入库信息 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @Query("from Fz40InoutRecord where id=:id order by updateTime ") |
| | | List<Fz40InoutRecord> listInoutRecordById(@Param("id") String id); |
| | | |
| | | |
| | | /** |
| | | * 根据信息获取出入库信息 |
| | | * |
| | | * @param deptId |
| | | * @param start |
| | | * @param end |
| | | * @return |
| | | */ |
| | | @Query("from Fz40InoutRecord where deptId=:deptId and updateTime >=:start and updateTime <:end order by id ") |
| | | List<Fz40InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("start") Date start, @Param("end") Date end); |
| | | |
| | | |
| | | } |