czt
3 天以前 46ee5aac0c31c352f19344eb3cfd762817f2559e
src/main/java/com/fzzy/async/fzzy35/repository/Fzzy35Sync1202Rep.java
@@ -28,6 +28,16 @@
    List<Fz35InoutRecord> listInoutRecord(@Param("deptId") String deptId, @Param("type") String type, @Param("start") Date start, @Param("end") Date end);
    /**
     * 根据信息获取出入库信息
     * @param type
     * @param start
     * @param end
     * @return
     */
    @Query("from Fz35InoutRecord where type=:type and completeTime >=:start and completeTime <:end order by completeTime ")
    List<Fz35InoutRecord> listInoutRecord(@Param("type") String type, @Param("start") Date start, @Param("end") Date end);
    /**
     * 根据id获取粮食出入库信息
     * @param id
     * @return
@@ -35,4 +45,8 @@
    @Query("from Fz35InoutRecord where id=:id order by completeTime ")
    List<Fz35InoutRecord> listInoutRecordById(@Param("id") String id);
    @Query("from Fz35InoutRecord where deptId=:deptId and (type=:type1 or type=:type2) and completeTime >=:start and completeTime <=:end order by id ")
    List<Fz35InoutRecord> listInAndOutRecord(@Param("deptId") String deptId, @Param("type1") String type1, @Param("type2") String type2, @Param("start") Date start, @Param("end") Date end);
}