Skip to content

Commit

Permalink
fix: 客户端事件列表过滤跳过的事件数据
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambition9186 committed Oct 10, 2024
1 parent 427046a commit 6d9938a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bcs-services/bcs-bscp/pkg/dal/dao/client_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ func (dao *clientEventDao) List(kit *kit.Kit, bizID, appID, clientID uint32, sta
searchValue string, order *pbds.ListClientEventsReq_Order, opt *types.BasePage) (
[]*table.ClientEvent, int64, error) {

// 过滤当前ID和目标ID相等且状态不是成功的数据(跳过的数据)
m := dao.genQ.ClientEvent
q := dao.genQ.ClientEvent.WithContext(kit.Ctx).Where(m.BizID.Eq(bizID), m.AppID.Eq(appID),
m.ClientID.Eq(clientID))
m.ClientID.Eq(clientID)).Where(m.OriginalReleaseID.NeqCol(m.TargetReleaseID)).
Or(m.OriginalReleaseID.EqCol(m.TargetReleaseID).AddCol(m.ReleaseChangeStatus.Neq(string(table.Success))))

var err error
var conds []rawgen.Condition
Expand Down

0 comments on commit 6d9938a

Please sign in to comment.