ReceiptDetailService.java 917 Bytes
package com.huaheng.pc.receipt.receiptDetail.service;

import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.receipt.receiptDetail.domain.ReceiptDetail;
import com.baomidou.mybatisplus.extension.service.IService;
public interface ReceiptDetailService extends IService<ReceiptDetail>{

    AjaxResult saveReceiptDetaial(ReceiptDetail receiptDetail);

    AjaxResult updateReceiptDetaial(ReceiptDetail receiptDetail);

    /**
     * 根据流程配置更新入库明细下一流程
     * @param receiptDetail
     * @return
     */
    ReceiptDetail queryflow(ReceiptDetail receiptDetail);

    /**
     * @description 更新头表尾状态
     * 每次明细表更新后调用该方法
     * 当所有明细表到达该状态时,更新头表状态
     * @param id 头表id
     */
    void updateReceiptHeaderLastStatus(Integer id);

    AjaxResult approval(String ids, Integer approval);
}