YYC
2024-11-08 01a9e07288902ff84bf3007030be6a72e2150679
src/main/java/com/fzzy/api/view/repository/Api1202Rep.java
@@ -52,4 +52,14 @@
     */
    @Query("from Api1202 where hwdm=:hwdm and ywrq <=:keyTime order by ywrq desc")
    List<Api1202> getDataByHwdmAndTime(@Param("hwdm") String hwdm, @Param("keyTime") Date keyTime);
    /**
     * 根据库区编码和业务日期查询
     * @param kqdm
     * @param start
     * @param end
     * @return
     */
    @Query("from Api1202 where kqdm=:kqdm and ywrq >=:start and ywrq <:end order by ywrq ")
    List<Api1202> getDataByYwrq(@Param("kqdm") String kqdm, @Param("start") Date start, @Param("end") Date end);
}