|
@@ -124,7 +124,7 @@ func GetStaticOrderDetails(bDateUnix, eDateUnix int64, state string, isSend bool
|
|
|
s := fmt.Sprintf("and o.status=%s", state)
|
|
s := fmt.Sprintf("and o.status=%s", state)
|
|
|
sql = strings.Join([]string{sql, s}, " ")
|
|
sql = strings.Join([]string{sql, s}, " ")
|
|
|
}
|
|
}
|
|
|
- s := "and ot.is_send=? group by ot.product_id order by product_id desc"
|
|
|
|
|
|
|
+ s := "and ot.is_zeng=? group by ot.product_id order by product_id desc"
|
|
|
sql = strings.Join([]string{sql, s}, " ")
|
|
sql = strings.Join([]string{sql, s}, " ")
|
|
|
beego.BeeLogger.Warn("sql=[%s]", sql)
|
|
beego.BeeLogger.Warn("sql=[%s]", sql)
|
|
|
if _, err := orm.NewOrm().Raw(sql, isSend).QueryRows(&details); err != nil {
|
|
if _, err := orm.NewOrm().Raw(sql, isSend).QueryRows(&details); err != nil {
|