AuthProductMapper.java 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. package com.caimei.mapper.cmMapper;
  2. import com.caimei.model.po.ProductParamPo;
  3. import com.caimei.model.po.ProductPo;
  4. import com.caimei.model.po.ProductTypePo;
  5. import com.caimei.model.vo.*;
  6. import org.apache.ibatis.annotations.Mapper;
  7. import org.apache.ibatis.annotations.Param;
  8. import java.util.Date;
  9. import java.util.List;
  10. /**
  11. * Description
  12. *
  13. * @author : Aslee
  14. * @date : 2021/5/17
  15. */
  16. @Mapper
  17. public interface AuthProductMapper {
  18. List<ProductListVo> getProductList(@Param("listType") Integer listType, @Param("authId") Integer authId, @Param("productName") String productName, @Param("snCode") String snCode, @Param("status") Integer status, @Param("auditStatus") Integer auditStatus, @Param("shopAuditStatus") Integer shopAuditStatus);
  19. void updateProductStatusByProductId(@Param("productId") Integer productId, @Param("status") Integer status);
  20. void deleteProductByProductId(Integer productId);
  21. void insertProduct(ProductPo product);
  22. void updateProductByProductId(ProductPo product);
  23. void deleteParamsByProductId(Integer productId);
  24. void insertProductParam(@Param("productId") Integer productId, @Param("paramName") String paramName, @Param("paramContent") String paramContent);
  25. Integer getProductIdBySnCode(String snCode);
  26. ProductFormVo getProductFormData(@Param("relationId") Integer relationId);
  27. List<ProductParamPo> getParamsByProductId(Integer productId);
  28. List<Integer> getProductIdsByAuthId(Integer authId);
  29. List<ProductPo> getAllImage();
  30. void updateImageByProductId(ProductPo product);
  31. void updateProductAuditStatus(@Param("productId") Integer productId, @Param("productTypeId") Integer productTypeId, @Param("status") Integer status, @Param("auditStatus") Integer auditStatus, @Param("invalidReason") String invalidReason, @Param("auditBy") Integer auditBy, @Param("auditTime") Date auditTime);
  32. List<WxProductListVo> getWxProductList(@Param("listType") Integer listType, @Param("authId") Integer authId, @Param("authParty") String authParty, @Param("productTypeId") Integer productTypeId, @Param("snCode") String snCode);
  33. List<ProductFormVo> getAuthProductList(Integer authId);
  34. void updateCertificateImage(ProductPo product);
  35. AuthProductVo getAuthProductByProductId(Integer productId);
  36. List<ProductParamPo> getAuthProductParams(Integer productId);
  37. List<WxProductListVo> getClubProductList(Integer authId);
  38. void insertProductType(ProductTypePo productType);
  39. void updateProductType(ProductTypePo productType);
  40. void deleteProductType(Integer productTypeId);
  41. void updateProductTypeStatus(Integer productTypeId, Integer status);
  42. List<ProductTypeListVo> getProductTypeList(Integer listType, Integer authUserId, String name, Integer status, Integer auditStatus);
  43. void updateProductTypeAuditStatus(Integer productTypeId, Integer status, Integer auditStatus, String invalidReason, Integer auditBy, Date auditTime);
  44. List<WxProductTypeListVo> getWxProductTypeList(Integer authUserId, String name);
  45. ProductTypePo getProductType(Integer productTypeId, String productName, Integer authUserId);
  46. Integer getProductCountByTypeId(Integer productTypeId);
  47. void updateProductShopAuditStatus(@Param("productId") Integer productId, @Param("productTypeId") Integer productTypeId, @Param("status") Integer status, @Param("shopAuditStatus") Integer auditStatus, @Param("shopInvalidReason") String invalidReason, @Param("shopAuditBy") Integer auditBy, @Param("shopAuditTime") Date auditTime);
  48. ProductPo getProductPo(Integer productId);
  49. Integer getAuthUserIdByProductId(Integer productId);
  50. void deleteParamsByProductTypeId(Integer productTypeId);
  51. void insertProductTypeParam(@Param("productTypeId") Integer productTypeId, @Param("paramName") String paramName, @Param("paramContent") String paramContent);
  52. List<ProductParamPo> getProductTypeParamList(Integer productTypeId);
  53. void checkAuthProduct(Integer productId);
  54. Integer insertProductRelation(@Param("authId") Integer authId, @Param("productId") Integer productId, @Param("authType") Integer authType);
  55. ProductRelationVo getProductRelation(@Param("relationId") Integer relationId, @Param("productId") Integer productId, @Param("authId") Integer authId);
  56. void updateProductRelation(@Param("relationId") Integer relationId, @Param("authId") Integer authId, @Param("productId") Integer productId, @Param("authType") Integer authType);
  57. Integer getProductRelationCount(Integer productId);
  58. ProductFormVo getProductInfo(@Param("productId") Integer productId, @Param("snCode") String snCode);
  59. List<String> getSnCodeList(Integer authUserId, Integer authId);
  60. List<WxClubListVo> getProductClubList(Integer productId);
  61. void addScanCount(Integer productId);
  62. void checkProductType(Integer productTypeId);
  63. }