|
|
@@ -239,7 +239,9 @@ select *
|
|
|
from today_accountmargin t) a
|
|
|
where a.cnt = 1
|
|
|
`
|
|
|
- sqlId.AndEx("a.ACCOUNTID", r.ACCOUNTID, r.ACCOUNTID > 0)
|
|
|
+ if r.ACCOUNTID > 0 {
|
|
|
+ sqlId.JoinFormat(" and a.ACCOUNTID in(0, %v)", r.ACCOUNTID)
|
|
|
+ }
|
|
|
sqlId.AndEx("a.GOODSID", r.GOODSID, r.GOODSID > 0)
|
|
|
sqlId.AndEx("a.MARKETID", r.MARKETID, r.MARKETID > 0)
|
|
|
return sqlId.String()
|