package com.fzzy.async.fzzy40; import com.fzzy.async.fzzy40.entity.Fz40Grain; import com.fzzy.async.fzzy40.repository.Fzzy40Sync1302Rep; import org.springframework.stereotype.Component; import javax.annotation.Resource; import java.util.Date; import java.util.List; /** * 2023年10月31日 02:28:21 ANDY增加用于自由接口调用,如其他模块调用 */ @Component public class Fzzy40CommonService { @Resource private Fzzy40Sync1302Rep fzzy40Sync1302Rep; /** * 根据开时间和截至时间获取粮情信息 * * @param depotId 系统中的仓库编码 * @param start * @param end * @return */ public List listGrain(String depotId, Date start, Date end) { return fzzy40Sync1302Rep.findByReceiveDate(depotId, start, end); } }