DistributMaterialMapper.java
946 字节
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);
}