package com.yeejoin.amos.boot.module.hygf.api.service;


import com.yeejoin.amos.boot.module.hygf.api.dto.PreparationMoneyDto;
import com.yeejoin.amos.boot.module.hygf.api.entity.PreparationMoney;
import com.yeejoin.amos.feign.privilege.model.AgencyUserModel;

/**
 * 发货单接口类
 *
 * @author system_generator
 * @date 2023-08-17
 */
public interface IPreparationMoneyService {

    /**
     * 新增/更新发货单
     *
     *
     * @param model dto
     * @return {@link  PreparationMoneyDto}
     * @author Provence
     * @throws
     */
    PreparationMoney saveOrUpdateObject(PreparationMoney model, AgencyUserModel agencyUserModel);

    /**
     * 更新发货单状态
     *
     *
     * @param sequenceNbr 发货单ID
     * @param operationType 操作类型(RECEIPT-确认收货, DELIVERY-发货, DISCARD-废弃)
     * @return {@link  Boolean}
     * @author Provence
     * @throws
     */
    Boolean updatePreparationMoneyStatus(Long sequenceNbr, String operationType);

}
