fzzy-igdss-core/src/main/java/com/fzzy/igds/timer/JobWarnService.java
@@ -26,7 +26,6 @@
 * @Date 2026/1/23 9:14
 */
@Slf4j
@Service
public class JobWarnService {
@@ -44,20 +43,18 @@
     */
    @Scheduled(cron = "0 0 2 * * ?")
    public void timer() {
        doExe();
        doExe(null);
    }
    /**
     * 开始质押合同核算
     */
    public void doExe() {
        List<PledgeContract> contractList = contractService.getContractByPledge(new Date());
    public void doExe(String bankId) {
        List<PledgeContract> contractList = contractService.getContractByPledge(new Date(), bankId);
        if (null == contractList || contractList.isEmpty()) {
            log.error("-----当前没有有效期的质押合同,不执行提醒核算-----");
            return;
        }
        Depot depot;
        FoodPrice foodPrice;
        WorkOrderConf conf;
@@ -112,12 +109,13 @@
                }
                sumMoney += depot.getStorageReal() * foodPrice.getPrice();
                log.info("-----当前合同={}下仓库={}:对应的实际储量={},对应粮食单价={}-----", pledgeContract.getName(), depot.getName(), depot.getStorageReal(), foodPrice.getPrice());
            }
            per = sumMoney / backMoney;
            if (per > 1.1) {
                log.error("-----当前合同={}下质押仓库={}库存未到待还款的110%,不生成还款提醒工单-----", pledgeContract.getName(), pledgeContract.getDepotNames());
            if (per < 1.1) {
                log.error("-----当前合同={}下质押仓库={}库存未到待还款的110%,sumMoney={},backMoney={},不生成还款提醒工单-----", pledgeContract.getName(), pledgeContract.getDepotNames(), sumMoney, backMoney);
                continue;
            }