ReceiptContainerHeaderService.java 1.77 KB
package com.huaheng.pc.receipt.receiptContainerHeader.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.mobile.receipt.ReceiptBill;
import com.huaheng.pc.receipt.receiptContainerHeader.domain.ReceiptContainerHeader;
import com.huaheng.pc.receipt.receiptContainerHeader.domain.ReceiptContainerView;
import io.swagger.annotations.ApiParam;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface ReceiptContainerHeaderService extends IService<ReceiptContainerHeader>{

    /**
     * 保存入库组盘
     *
     * @param receiptCode     入库单编码
     * @param containerCode   容器编码
     * @param receiptDetailId 入库单详情id
     * @param locationCode    库位编码
     * @param qty             收货数量
     * @param locatingRule    定位规则
     * @return 是否保存成功
     */
    AjaxResult saveContainer(String receiptCode, String containerCode, Integer receiptDetailId,
                            String locationCode, BigDecimal qty, String locatingRule);

    /**
     * 取消组盘
     * @param id
     * @return
     */
    Boolean cancelByIds(List<Integer> id);

    /**
     * 检查容器状态
     * @param record
     * @return
     */
    AjaxResult checkContainer(ReceiptContainerView record);


    AjaxResult batchSave(List<ReceiptContainerView> list);

    /**
     * 移动端校验库位
     * @param record
     * @return
     */
    Boolean mobileCheckLocationCode(ReceiptContainerView record);

    int insertTodayReceiptContainerHeader(ReceiptBill receiptBill, String receiptCode);

    /**
     * 取消入库任务
     * @param id 入库组盘头id
     * @return
     */
    AjaxResult cancelReceipt(Integer id);
}