package com.caimei.mapper.cmMapper; import com.caimei.model.po.ProductParamPo; import com.caimei.model.po.ProductPo; import com.caimei.model.po.ProductTypePo; import com.caimei.model.vo.*; import com.caimei.module.base.entity.po.CmBrandProductParamPo; import com.caimei.module.base.entity.vo.AuthProductVo; import com.caimei.module.base.entity.vo.StatementFileVo; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; /** * Description * * @author : Aslee * @date : 2021/5/17 */ @Mapper public interface AuthProductMapper { List 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); void updateProductStatusByProductId(@Param("productId") Integer productId, @Param("status") Integer status); void deleteProductByProductId(Integer productId); void insertProduct(ProductPo product); void updateProductByProductId(ProductPo product); void deleteParamsByProductId(Integer productId); void insertProductParam(@Param("productId") Integer productId, @Param("paramName") String paramName, @Param("paramContent") String paramContent); Integer getProductIdBySnCode(String snCode); ProductFormVo getProductFormByProductId(Integer productId); List getParamsByProductId(Integer productId); List getProductIdsByAuthId(Integer authId); ProductPo getImageByProductId(Integer productId); List getAllImage(); void updateImageByProductId(ProductPo product); 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); List getWxProductList(@Param("listType") Integer listType, @Param("authId") Integer authId, @Param("productTypeId") Integer productTypeId, @Param("snCode") String snCode); Integer getBrandIdByBrandName(String brand); List getAuthProductList(Integer authId); void updateCertificateImage(ProductPo product); AuthProductVo getAuthProductByProductId(Integer productId); StatementFileVo getStatementFile(Integer authUserId, Integer brandId); List getAuthProductParams(Integer productId); List getClubProductList(Integer authId); void insertProductType(ProductTypePo productType); void updateProductType(ProductTypePo productType); void deleteProductType(Integer productTypeId); void updateProductTypeStatus(Integer productTypeId, Integer status); List getProductTypeList(Integer listType, Integer authUserId, String name, Integer status, Integer auditStatus); void updateProductTypeAuditStatus(Integer productTypeId, Integer status, Integer auditStatus, String invalidReason, Integer auditBy, Date auditTime); List getWxProductTypeList(Integer authUserId, String name); ProductTypePo getProductType(Integer productTypeId, String productName, Integer authUserId); Integer getProductCountByTypeId(Integer productTypeId); void updateProductShopAuditStatus(@Param("productId") Integer productId, @Param("productTypeId") Integer productTypeId, @Param("shopAuditStatus") Integer auditStatus, @Param("shopInvalidReason") String invalidReason, @Param("shopAuditTime") Date auditTime); ProductPo getProductPo(Integer productId); Integer getAuthUserIdByProductId(Integer productId); }