Blame view

src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderService.java 1.56 KB
mahuandong authored
1
2
package com.huaheng.pc.shipment.shipmentHeader.service;
mahuandong authored
3
import com.huaheng.framework.web.domain.AjaxResult;
tongzhonghao authored
4
5
import com.huaheng.mobile.shipment.Shipment;
import com.huaheng.pc.receipt.receiptHeader.domain.ReceiptHeader;
周鸿 authored
6
import com.huaheng.pc.shipment.lockingWorkOrder.domain.LockingWorkOrder;
mahuandong authored
7
8
import com.huaheng.pc.shipment.shipmentHeader.domain.ShipmentHeader;
import com.baomidou.mybatisplus.extension.service.IService;
mahuandong authored
9
10

import java.lang.reflect.InvocationTargetException;
tongzhonghao authored
11
import java.math.BigDecimal;
tongzhonghao authored
12
import java.util.Collection;
mahuandong authored
13
import java.util.List;
tongzhonghao authored
14
import java.util.Map;
mahuandong authored
15
mahuandong authored
16
17
public interface ShipmentHeaderService extends IService<ShipmentHeader>{
mahuandong authored
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    //新增出库主单
    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();
游杰 authored
34
    List<ShipmentHeader> getLatestShipment();
35
36

    AjaxResult removeShipmentByHeaderId(Integer headerId);
周鸿 authored
37
tongzhonghao authored
38
39
    AjaxResult postBack(String id, Map<Integer, BigDecimal> detailsQtyMap);
周鸿 authored
40
    ShipmentHeader createShipmentHeader(LockingWorkOrder lockingWorkOrder);
tongzhonghao authored
41
42

    List<ShipmentHeader> listByCodes(Collection<String> codes, String warehouseCode);
周鸿 authored
43
44
45

    public AjaxResult deleteHeaderAndDetail(String ids);
    public int cleanDocuments();
mahuandong authored
46
}