Forráskód Böngészése

错误 #94946 ...首页小红点数量不对

zou.yingbin 4 éve
szülő
commit
124a5091aa
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      models/ermcpPendingAuditInfo.go

+ 1 - 1
models/ermcpPendingAuditInfo.go

@@ -46,7 +46,7 @@ func (r *ErmcpPendingAudit) buildSql() string {
 		" union all " +
 		"select 7, count(1) BusinessFpQty from ermcp_contractoperateapply t where t.userid = %v and t.applystatus = 1 and t.operateapplytype=4" +
 		" union all " +
-		"select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8)"
+		"select 8, count(1) AreaStockQty from ermcp_contractoperateapply t where t.userid = %v and t.operateapplytype in(5,6,7,8) and t.applystatus = 1"
 	sqlId = fmt.Sprintf(sqlId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId, r.UserId)
 	return sqlId
 }