package com.sunda.spmsoversea.service;

import com.sunda.spmsoversea.entity.OverseaPackageListBox;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 海外仓收货装箱单箱码关系表 服务类
 * </p>
 *
 * @author Wayne
 * @since 2021-10-22
 */
public interface IOverseaPackageListBoxService extends IService<OverseaPackageListBox> {

    /** 更新装箱单箱码信息，记录到货日期、收货仓库等 */
    int updateOverseaPackageListBox(String boxNote, String arrivalDate, String userId, String werksReceive, String whsLocationCodeReceive);

    /** 根据箱码 和 箱明细行号 查询箱码明细行号一行数据 */
    OverseaPackageListBox getOverseaPackageListBox(String boxNote, String boxNoteItem);

    /** 根据箱码 和 箱码明细行号，更新箱码行海外实际收货信息，操作类型说明：ADD 表示箱码明细行上加数量；SUB 表示箱码明细行上减数量； */
    void updateOverseaPackageListBoxQty(String boxNote, String boxNoteItem, double qty, String operateType);
}
