|
@@ -314,6 +314,7 @@ func (r *MyTradegoodsdeliveryoffline) buildSql() string {
|
|
|
sqlId.FormatParam(r.USERID)
|
|
sqlId.FormatParam(r.USERID)
|
|
|
// sqlId.AndEx("t.DELIVERYSTATUS", r.DELIVERYSTATUS, r.DELIVERYSTATUS > 0)
|
|
// sqlId.AndEx("t.DELIVERYSTATUS", r.DELIVERYSTATUS, r.DELIVERYSTATUS > 0)
|
|
|
sqlId.JoinEx(r.Status != "", fmt.Sprintf(" AND t.DELIVERYSTATUS IN (%v)", r.Status))
|
|
sqlId.JoinEx(r.Status != "", fmt.Sprintf(" AND t.DELIVERYSTATUS IN (%v)", r.Status))
|
|
|
|
|
+ sqlId.OrderByDesc("t.deliveryorderid")
|
|
|
|
|
|
|
|
sqlId.Page(r.Page, r.PageSize)
|
|
sqlId.Page(r.Page, r.PageSize)
|
|
|
return sqlId.String()
|
|
return sqlId.String()
|