@Override
  public boolean batchAuditProduct(
      List<Integer> prodIds, String auditStatus, String auditContent, String auditName) {

    Date currentDate = DateUtils.currentDate();
    Product product = new Product();
    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);
    }

    boolean b = productMapper.batchUpdateProdByCondition(prodIds, product);
    if (b) {
      this.redisTemplate
          .opsForValue()
          .getOperations()
          .delete(ProductConstants.PROD_ + product.getProdId());
      ;
    }
    return b;
  }
  @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;
  }