AuthProductMapper.java 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package com.caimei.mapper;
  2. import com.caimei.model.po.ProductParamPo;
  3. import com.caimei.model.po.ProductPo;
  4. import com.caimei.model.vo.ProductFormVo;
  5. import com.caimei.model.vo.ProductListVo;
  6. import com.caimei.model.vo.WxProductListVo;
  7. import com.caimei.module.base.entity.po.CmBrandProductParamPo;
  8. import com.caimei.module.base.entity.vo.AuthProductVo;
  9. import com.caimei.module.base.entity.vo.StatementFileVo;
  10. import org.apache.ibatis.annotations.Mapper;
  11. import org.apache.ibatis.annotations.Param;
  12. import java.util.Date;
  13. import java.util.List;
  14. /**
  15. * Description
  16. *
  17. * @author : Aslee
  18. * @date : 2021/5/17
  19. */
  20. @Mapper
  21. public interface AuthProductMapper {
  22. 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);
  23. void updateProductStatusByProductId(@Param("productId") Integer productId, @Param("status") Integer status);
  24. void deleteProductByProductId(Integer productId);
  25. void insertProduct(ProductPo product);
  26. void updateProductByProductId(ProductPo product);
  27. void deleteParamsByProductId(Integer productId);
  28. void insertProductParam(@Param("productId") Integer productId, @Param("paramName") String paramName, @Param("paramContent") String paramContent);
  29. Integer getProductIdBySnCode(String snCode);
  30. ProductFormVo getProductFormByProductId(Integer productId);
  31. List<ProductParamPo> getParamsByProductId(Integer productId);
  32. List<Integer> getProductIdsByAuthId(Integer authId);
  33. ProductPo getImageByProductId(Integer productId);
  34. List<ProductPo> getAllImage();
  35. void updateImageByProductId(ProductPo product);
  36. void updateProductAuditStatus(@Param("productId") Integer productId, @Param("status") Integer status, @Param("auditStatus") Integer auditStatus, @Param("invalidReason") String invalidReason, @Param("auditBy") Integer auditBy, @Param("auditTime") Date auditTime);
  37. List<WxProductListVo> getWxProductList(@Param("appId") String appId, @Param("productName") String productName);
  38. Integer getBrandIdByBrandName(String brand);
  39. List<ProductFormVo> getAuthProductList(Integer authId);
  40. void updateCertificateImage(ProductPo product);
  41. AuthProductVo getAuthProductByProductId(Integer productId);
  42. StatementFileVo getStatementFile(Integer authUserId, Integer brandId);
  43. List<CmBrandProductParamPo> getAuthProductParams(Integer productId);
  44. List<WxProductListVo> getClubProductList(Integer authId);
  45. }