sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -22,3 +22,13 @@ func visibleBatchTypeMatches(actual int, requested *int) bool {
|
||||
}
|
||||
return requested == nil || actual == *requested
|
||||
}
|
||||
|
||||
// successListBatchTypeModel keeps export execution logs out of business batch selectors.
|
||||
func successListBatchTypeModel(mod *gdb.Model, column string, requested *int) *gdb.Model {
|
||||
mod = visibleBatchTypeModel(mod, column, requested)
|
||||
return mod.Where(column+" <> ?", consts.BatchTypeExport)
|
||||
}
|
||||
|
||||
func successListBatchTypeMatches(actual int, requested *int) bool {
|
||||
return actual != consts.BatchTypeExport && visibleBatchTypeMatches(actual, requested)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user