wujianwei
2025-12-23 298a6477b6220f651062080264750dcb04573eca
service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java
@@ -4,6 +4,9 @@
import com.ruoyi.common.utils.DateUtils;
import javax.annotation.Resource;
import com.ruoyi.cwgl.service.IPayableBillManagementLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.stereotype.Service;
import org.springframework.scheduling.annotation.Async;
@@ -33,7 +36,8 @@
    protected final Logger logger = LoggerFactory.getLogger(getClass());
    @Resource
    private PayableBillManagementMapper payableBillManagementMapper;
    @Autowired
    private IPayableBillManagementLogService logService;
    /**
     * 查询应付账单管理
@@ -200,8 +204,8 @@
            throw new RuntimeException("只能作废状态为未结算的应付账单");
        }
        
        // 更新账单状态为"cancelled"(作废)
        bill.setStatus("cancelled");
        // 更新账单状态为"2"(作废)
        bill.setStatus("2");
        bill.setUpdateTime(DateUtils.getNowDate());
        
        return updatePayableBillManagement(bill);