whycxzp
2025-05-09 f92783da5430037bf80cf28a5cf7091cdecefbb7
src/main/java/com/whyc/mapper/ProductMapper.java
@@ -1,8 +1,23 @@
package com.whyc.mapper;
import com.whyc.pojo.AttachLock;
import com.whyc.pojo.Material;
import com.whyc.pojo.Product;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ProductMapper extends CustomMapper<Product>{
    // 5.在product中插入设定可用的pHistory
    int insertPselectPH(Integer id);
   //查询出所有的产品信息(分页加模糊查询<产品的编码,型号,名字,定制表编号>
    List<Product> getAllProduct(String subCode, String parentCode, String parentName, String parentModel, String customCode,Integer enabled);
    //根据产品id查询被锁定的物料dwg
    List<AttachLock> selectListMaterial(int productId);
    //根据产品id查询被锁定的产品丝印
    List<AttachLock> selectListProduct(int productId);
    //查询产品是否存在物料时钣金件的产品
    List<Material> selectMaterial_0120(String parentCode, String customCode);
    //验证母料编码是否存在产品中
    int judgeParentCode(@Param("parentCode") String parentCode,String customCode);
}