lxw
2023-10-19 daf5edc51048fb64feb78f73d2a7f744ca972b54
src/main/java/com/whyc/service/ProductService.java
@@ -1040,8 +1040,8 @@
        return object -> seen.putIfAbsent(keyExtractor.apply(object), Boolean.TRUE) == null;
    }
    //验证母料编码是否存在产品中
    public Response judgeParentCode(String parentCode) {
        int count = mapper.judgeParentCode(parentCode);
    public Response judgeParentCode(String parentCode,String customCode) {
        int count = mapper.judgeParentCode(parentCode,customCode);
        return  new Response().set(1,count>0,"验证母料编码是否存在产品中");
    }
}