Explorar el Código

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

zou.yingbin hace 4 años
padre
commit
124a5091aa
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 }