ShipmentHeaderService.java
938 Bytes
package com.huaheng.pc.shipment.shipmentHeader.service;
import com.huaheng.framework.web.domain.AjaxResult;
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
import com.baomidou.mybatisplus.extension.service.IService;
import java.lang.reflect.InvocationTargetException;
import java.util.List;
public interface ShipmentHeaderService extends IService<ShipmentHeader>{
//新增出库主单
AjaxResult<Boolean> saveHeader(ShipmentHeader shipmentHeader) ;
//根据单据类型建单据号
String createCode(String shipmentType);
//根据Id更新这个单据的首尾状态
AjaxResult updateShipmentStatus(int shipmentId);
AjaxResult addHistory(ShipmentHeader shipmentHeader) throws InvocationTargetException, IllegalAccessException;
//审核出库单
AjaxResult review(String ids);
List<ShipmentHeader> selectListByCreated();
List<ShipmentHeader> getLatestShipment();
}