AuthProductMapper.java 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. package com.caimei.mapper.cmMapper;
  2. import com.caimei.model.ResponseJson;
  3. import com.caimei.model.po.ProductParamPo;
  4. import com.caimei.model.po.ProductPo;
  5. import com.caimei.model.po.ProductTypePo;
  6. import com.caimei.model.vo.*;
  7. import com.github.pagehelper.PageInfo;
  8. import org.apache.ibatis.annotations.Mapper;
  9. import org.apache.ibatis.annotations.Param;
  10. import java.util.Date;
  11. import java.util.List;
  12. /**
  13. * Description
  14. *
  15. * @author : Aslee
  16. * @date : 2021/5/17
  17. */
  18. @Mapper
  19. public interface AuthProductMapper {
  20. 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);
  21. void updateProductStatusByProductId(@Param("productId") Integer productId, @Param("status") Integer status);
  22. void deleteProductByProductId(Integer productId);
  23. void insertProduct(ProductPo product);
  24. void updateProductByProductId(ProductPo product);
  25. void deleteParamsByProductId(Integer productId);
  26. void insertProductParam(@Param("productId") Integer productId, @Param("paramName") String paramName, @Param("paramContent") String paramContent);
  27. Integer getProductIdBySnCode(String snCode);
  28. ProductFormVo getProductFormData(@Param("relationId") Integer relationId);
  29. List<ProductParamPo> getParamsByProductId(Integer productId);
  30. List<Integer> getProductIdsByAuthId(Integer authId);
  31. List<ProductPo> getAllImage();
  32. void updateImageByProductId(ProductPo product);
  33. 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);
  34. List<WxProductListVo> getWxProductList(@Param("listType") Integer listType, @Param("authId") Integer authId, @Param("authParty") String authParty, @Param("productTypeId") Integer productTypeId, @Param("snCode") String snCode);
  35. List<ProductFormVo> getAuthProductList(Integer authId);
  36. void updateCertificateImage(ProductPo product);
  37. AuthProductVo getAuthProductByProductId(Integer productId);
  38. List<ProductParamPo> getAuthProductParams(Integer productId);
  39. List<WxProductListVo> getClubProductList(Integer authId);
  40. void insertProductType(ProductTypePo productType);
  41. void updateProductType(ProductTypePo productType);
  42. void deleteProductType(Integer productTypeId);
  43. void updateProductTypeStatus(Integer productTypeId, Integer status);
  44. List<ProductTypeListVo> getProductTypeList(Integer listType, Integer authUserId, String name, Integer status, Integer auditStatus);
  45. void updateProductTypeAuditStatus(Integer productTypeId, Integer status, Integer auditStatus, String invalidReason, Integer auditBy, Date auditTime);
  46. List<WxProductTypeListVo> getWxProductTypeList(Integer authUserId, String name);
  47. ProductTypePo getProductType(Integer productTypeId, String productName, Integer authUserId);
  48. Integer getProductCountByTypeId(Integer productTypeId);
  49. 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);
  50. ProductPo getProductPo(Integer productId);
  51. Integer getAuthUserIdByProductId(Integer productId);
  52. void deleteParamsByProductTypeId(Integer productTypeId);
  53. void insertProductTypeParam(@Param("productTypeId") Integer productTypeId, @Param("paramName") String paramName, @Param("paramContent") String paramContent);
  54. List<ProductParamPo> getProductTypeParamList(Integer productTypeId);
  55. void checkAuthProduct(Integer productId);
  56. Integer insertProductRelation(@Param("authId") Integer authId, @Param("productId") Integer productId, @Param("authType") Integer authType);
  57. ProductRelationVo getProductRelation(@Param("relationId") Integer relationId, @Param("productId") Integer productId, @Param("authId") Integer authId);
  58. void updateProductRelation(@Param("relationId") Integer relationId, @Param("authId") Integer authId, @Param("productId") Integer productId, @Param("authType") Integer authType);
  59. Integer getProductRelationCount(Integer productId);
  60. ProductFormVo getProductInfo(@Param("productId") Integer productId, @Param("snCode") String snCode);
  61. List<String> getSnCodeList(Integer authUserId, Integer authId,@Param("snCodeList") List<String> snCodeList);
  62. List<String> getSnCodeList1(Integer authUserId, Integer authId,String[] relationIdList,@Param("snCodeList") List<String> snCodeList);
  63. List<Integer> getAllSn(Integer authId);
  64. List<String> getAllSnlist(@Param("productIdList") List<Integer> productIdList);
  65. List<WxClubListVo> getProductClubList(Integer productId);
  66. void addScanCount(Integer productId);
  67. void checkProductType(Integer productTypeId);
  68. //获取关联机构
  69. String getRelationId(Integer authId);
  70. //根据sn码产品id
  71. List<ProductPo> getSnList( @Param("sn") String sn);
  72. List<ProductListVo> getPronductInfo(Integer authId, Integer authUserId);
  73. }