@Override
  public boolean auditProduct(
      Integer prodId, String auditStatus, String auditContent, String auditName) {

    Date currentDate = DateUtils.currentDate();
    Product product = new Product();
    product.setProdId(prodId);
    product.setAuditStatus(auditStatus);
    if (ProductConstants.PROD_AUDIT_STATUS_PASS.equals(auditStatus)) { // 审核通过
      product.setStatus(ProductConstants.PROD_STATUS_ON);
      product.setAuditContent(AUDIT_PASS_COMMENT);
      product.setLastUpdateDate(currentDate);
      product.setLastAuditName(auditName);
      product.setLastAuditDate(currentDate);
    } else if (ProductConstants.PROD_AUDIT_STATUS_NO_PASS.equals(auditStatus)) { // 审核驳回
      product.setStatus(ProductConstants.PROD_STATUS_DOWN);
      product.setAuditContent(auditContent);
      product.setLastUpdateDate(currentDate);
      product.setLastAuditName(auditName);
      product.setLastAuditDate(currentDate);
    }

    int i = productMapper.updateByPrimaryKeySelective(product);
    if (i > 0) {
      this.redisTemplate
          .opsForValue()
          .getOperations()
          .delete(ProductConstants.PROD_ + product.getProdId());
      ;
    }
    return i > 0 ? true : false;
  }
 @Override
 public boolean cancelAuditProduct(Integer prodId) {
   Product product = new Product();
   product.setProdId(prodId);
   product.setAuditStatus(ProductConstants.PROD_AUDIT_STATUS_WAIT);
   product.setLastUpdateDate(DateUtils.currentDate());
   int i = this.productMapper.updateByPrimaryKeySelective(product);
   if (i > 0) {
     this.redisTemplate
         .opsForValue()
         .getOperations()
         .delete(ProductConstants.PROD_ + product.getProdId());
     ;
   }
   return i > 0 ? true : false;
 }