Parcourir la source

解决查履约计划历史问题

zou.yingbin il y a 4 ans
Parent
commit
6be42bdd51
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      models/wrTrade2.go

+ 2 - 2
models/wrTrade2.go

@@ -1667,7 +1667,7 @@ select to_char(t.PERFORMANCEPLANID) PERFORMANCEPLANID,
     on t.sellaccountid = a2.accountid
   left join useraccount u2
     on a2.userid = u2.userid
-  left join his_performancestep k
+  left join (select * from his_performancestep where isvaliddata=1) k
     on t.curstepid = k.performancestepid
   left join performancesteptype s
     on k.steptypeid = s.steptypeid
@@ -1676,7 +1676,7 @@ select to_char(t.PERFORMANCEPLANID) PERFORMANCEPLANID,
   left join tmp
     on f.wrfactortypeid = tmp.wrfactortypeid
   left join market m on t.marketid=m.marketid
- where 1 = 1 and t.isvaliddata=1 and k.isvaliddata=1
+ where 1 = 1 and t.isvaliddata=1
 `
 	if r.BUYORSELL == 0 {
 		sqlId.And("u1.userid", r.USERID)