DistributMaterialMapper.java
1.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
package com.skua.modules.erp.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.skua.modules.erp.entity.DistributMaterial;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* erp分销物料
*/
public interface DistributMaterialMapper extends BaseMapper<DistributMaterial> {
public void delByContractId( @Param("contractId") String contractId);
List<DistributMaterial> queryListByContractId( @Param("contractId") String contractId);
/***
* 根据id或code校验货号是否唯一
* @param id
* @param goodCode
* @return
*/
public int checkGoodCode(@Param("id")String id,@Param("goodCode") String goodCode);
/***
* 根据departId或code校验货号是否唯一
* @param goodsCode
* @param departId
* @return
*/
int checkGoodCodeAndDepartId(@Param("goodCode") String goodsCode, @Param("departId") String departId);
/***
* 变更合同
* @param id
*/
void changePurchaseContract( @Param("contractId") String id);
}