IERPPurchaseContractService.java
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.skua.modules.erp.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.skua.modules.erp.entity.ERPPurchaseContract;
import com.baomidou.mybatisplus.extension.service.IService;
import com.skua.modules.erp.entity.PurchaseMaterial;
import com.skua.modules.erp.entity.PurchasePlanItem;
import com.skua.modules.erp.vo.PurchaseContractVO;
import com.skua.modules.erp.vo.PurchaseMaterialVO;
import com.skua.modules.erp.vo.PurchasePlanSearchVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 采购合同
*/
public interface IERPPurchaseContractService extends IService<ERPPurchaseContract> {
/***
* 校验方法:校验是否唯一
* @param purchaseContractVO
* @param checkCount 新增= 0 ,修改checkCount=1
* @return 返回有问题的货号
*/
String checkGoodCode(PurchaseContractVO purchaseContractVO,int checkCount );
/***
* 新增purchaseContractVO
* @param purchaseContractVO
*/
void savePurchaseContract(PurchaseContractVO purchaseContractVO);
/**
* 修改purchaseContractVO
* @param purchaseContractVO
* @return
*/
boolean updatePurchaseContract(PurchaseContractVO purchaseContractVO);
/***
* 删除purchaseContractVO
* @param id
*/
public void delById(String id);
/***
* 根据id查询purchaseContractVO
* @param id
* @return
*/
public PurchaseContractVO queryById(String id);
/**
* 根据编号获取采购清单集合
* @param contractId
* @return
*/
public List<PurchaseMaterial> queryListByContractId(String contractId);
/***
* 审批 采购合同
* @param purchaseContractVO
*/
void auditPurchaseContract(PurchaseContractVO purchaseContractVO);
/***
* 同步入库操作
* @param purchaseContractVO
* @return
*/
int syncEquipmentIn(PurchaseContractVO purchaseContractVO)throws Exception;
}