SupplierMapper.java 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.dk.mdm.mapper.mst;
  2. import com.dk.mdm.model.pojo.mst.Supplier;
  3. import com.dk.common.mapper.BaseMapper;
  4. import com.dk.mdm.model.query.mst.SupplierQuery;
  5. import com.dk.mdm.model.response.mst.SpplierResponse;
  6. import com.dk.mdm.model.vo.mst.SupplierVo;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. /**
  10. * 供应商 Mapper
  11. */
  12. @Repository
  13. public interface SupplierMapper extends BaseMapper<Supplier>{
  14. /**
  15. * @desc : 根据条件进行查询
  16. * @author : 王英杰
  17. * @date : 2023/1/9 10:42
  18. */
  19. List<SpplierResponse> selectByCond(SupplierQuery supplierQuery);
  20. /**
  21. * @desc : 根据条件进行查询(数量)
  22. * @author : 王英杰
  23. * @date : 2023/1/9 10:42
  24. */
  25. Long countByCond(SupplierQuery supplierQuery);
  26. /**
  27. * @desc : 保存供应商品牌
  28. * @author : 王英杰
  29. * @date : 2024/2/29 17:49
  30. */
  31. int insertSupplierBrand(Supplier supplierVo);
  32. /**
  33. * @desc : 保存供应商品牌
  34. * @author : 王英杰
  35. * @date : 2024/2/29 17:49
  36. */
  37. int insertSupplierBrandtBatch(List<Supplier> supplierVo );
  38. /**
  39. * @desc : 批量删除 供应商iD对应的品牌
  40. * @author : 王英杰
  41. * @date : 2024/2/29 17:49
  42. */
  43. int batchDeleteBrand (List<String> supIdList );
  44. /**
  45. * @desc : 自动生id
  46. * @author : 王英杰
  47. * @date : 2024/2/29 17:49
  48. */
  49. String selectUuid ();
  50. /**
  51. * @desc :根据 公司id和uuid 生成 code
  52. * @author : 王英杰
  53. * @date : 2024/2/29 17:49
  54. */
  55. String selectSupCode (SupplierVo supplierVo);
  56. }