package com.shkj.wms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shkj.common.core.domain.Result;
import com.shkj.wms.bo.AdjustLocationBo;
import com.shkj.wms.bo.BusinStockMoveSQueryBo;
import com.shkj.wms.domain.BusinStockMoveD;
import com.shkj.wms.vo.BusinStockMoveDVo;

import java.util.List;

/**
 * 货位移动明细Service接口
 *
 * @author lch
 * @date 2022-06-10
 */
public interface IBusinStockMoveDService extends IService<BusinStockMoveD> {

	/**
	 * 货位调整
	 *
	 * @param bo 薄
	 * @return {@code Result<Boolean>}
	 */
	Result<Boolean> adjustLocation(AdjustLocationBo bo);

	/**
	 * 把任务完成
	 *
	 * @param orderNo 订单没有
	 * @return {@link Result}
	 */
	Result moveTaskFinish(Long orderNo);

	/**
	 * 查询列表
	 *
	 * @param bo 薄
	 * @return {@code List<BusinStockMoveDVo>}
	 */
	List<BusinStockMoveDVo> queryList(BusinStockMoveSQueryBo bo);

	/**
	 * 再次更新移动状态
	 *
	 * @param taskCode 任务代码
	 */
	void updateMoveStatusByAgain(String taskCode);
}
