This commit is contained in:
jiangyong27 2025-05-29 15:01:57 +08:00
parent 99924aae13
commit dffe776ef5
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func (d *ExternalCorpOrder) QueryOwnerOrder(owner string, corpId int64, startTim
tx.Where("cp_user.username = ?", owner)
}
if corpId != 0 {
tx.Where(orderTable+".corp_id = ?", corpId)
tx.Where("cp_user.corp_id = ?", corpId)
}
if startTime > 0 {