package com.caimei.mapper; import com.caimei.model.po.ProductParamPo; import com.caimei.model.po.ProductPo; import com.caimei.model.vo.ProductFormVo; import com.caimei.model.vo.ProductListVo; import com.caimei.model.vo.WxProductListVo; 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); 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("appId") String appId, @Param("productName") String productName); 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); }