package com.hzs.scm.pub.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzs.common.core.enums.EApprovalBusiness;
import com.hzs.common.core.enums.EOrderPrefix;
import com.hzs.common.domain.scm.pub.ScmOrderApproveLog;
import com.hzs.scm.pub.param.ScmApproveParam;
import com.hzs.system.sys.dto.LoginUser;

import java.util.List;

/**
 * <p>
 * 供应链单据审批记录 服务类
 * </p>
 *
 * @author hzs
 * @since 2023-11-24
 */
public interface IScmOrderApproveLogService extends IService<ScmOrderApproveLog> {

    void submitOrder(ScmApproveParam scmApproveParam, EApprovalBusiness approvalBusiness, EOrderPrefix orderPrefix, LoginUser loginUser);


    /*
     * @description: 查询签呈
     * @author: sui q
     * @date: 2023/11/25 9:07
     * @param: null null
     **/
    List<ScmOrderApproveLog> queryScmOrderApproveLogByCondition(Long pkId, Integer auditType, String businessCode);

    /*
     * @description: 更新订单状态
     * @author: sui q
     * @date: 2023/11/25 16:28
     * @param: null null
     **/
    void updateScmOrderApproveStatus(Long pkId, Long pkMember, Integer approvalStatus);
}
