|
|
@@ -4038,11 +4038,15 @@ func (r *GGzbscuserpowerfee) buildSql() string {
|
|
|
t.POWERFEE,
|
|
|
t.CREATETIME
|
|
|
FROM GZ_BSCUserPowerFee t
|
|
|
- WHERE t.userid = %v AND t.TRADEMONTH = %v
|
|
|
- ORDER BY t.INSTRUMENTNO DESC
|
|
|
+ WHERE 1=1
|
|
|
`
|
|
|
+ // WHERE t.userid = %v AND t.TRADEMONTH = %v
|
|
|
+ // ORDER BY t.INSTRUMENTNO DESC
|
|
|
|
|
|
- sqlId.FormatParam(r.USERID)
|
|
|
+ // sqlId.FormatParam(r.USERID)
|
|
|
+ sqlId.And("t.userid", r.USERID)
|
|
|
+ sqlId.And("t.TRADEMONTH", r.TRADEMONTH)
|
|
|
+ sqlId.OrderByDesc("t.INSTRUMENTNO")
|
|
|
|
|
|
sqlId.Page(r.Page, r.PageSize)
|
|
|
return sqlId.String()
|