Explorar o código

fix:修复定时任务每天更新客户试用总天数bug

Roc %!s(int64=2) %!d(string=hai) anos
pai
achega
25bdfe00dd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      services/company_product.go

+ 1 - 1
services/company_product.go

@@ -485,7 +485,7 @@ func StaticCompanyTryDay(cont context.Context) (err error) {
 	for _, v := range list {
 		isAdd := false //是否要增加一天,默认不加
 		permissionList, tmpErr := models.GetCompanyReportPermissionByStatus(v.CompanyId, v.ProductId, "试用")
-		if tmpErr == nil {
+		if tmpErr != nil {
 			errList = append(errList, fmt.Sprint("company_id:", v.CompanyId, ";product_id:", v.ProductId, ";寻找对应的试用品种失败,Err:", tmpErr))
 			continue
 		}