process_id
This commit is contained in:
parent
efa2bd6351
commit
19161faf29
|
@ -54,7 +54,7 @@ func (d *ExternalCorpOrder) QueryProcessOrder(owner string, startTime, endTime i
|
||||||
tx.Where(orderTable+".pay_time >= ?", startTime)
|
tx.Where(orderTable+".pay_time >= ?", startTime)
|
||||||
tx.Where(orderTable+".pay_time <= ?", endTime)
|
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.Where("cp_user.username = ?", owner)
|
||||||
tx = tx.Find(&o)
|
tx = tx.Find(&o)
|
||||||
if tx.Error == gorm.ErrRecordNotFound {
|
if tx.Error == gorm.ErrRecordNotFound {
|
||||||
|
|
Loading…
Reference in New Issue