Blame view

src/main/java/com/huaheng/pc/shipment/shipmentHeader/service/ShipmentHeaderService.java 1.63 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;
tongzhonghao authored
9
import com.huaheng.pc.task.taskHeader.domain.TaskHeader;
mahuandong authored
10
11

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

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

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

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