process_id

This commit is contained in:
jiangyong 2025-03-05 23:52:52 +08:00
parent efa2bd6351
commit 19161faf29
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ func (d *ExternalCorpOrder) QueryProcessOrder(owner string, startTime, endTime i
tx.Where(orderTable+".pay_time >= ?", startTime)
tx.Where(orderTable+".pay_time <= ?", endTime)
tx.Joins(fmt.Sprintf("LEFT JOIN cp_user ON %s.admin_id=cp_user.id", orderTable))
tx.Joins(fmt.Sprintf("LEFT JOIN cp_user ON %s.process_id=cp_user.id", orderTable))
tx.Where("cp_user.username = ?", owner)
tx = tx.Find(&o)
if tx.Error == gorm.ErrRecordNotFound {