|
|
@@ -678,6 +678,8 @@ func (r *Ermcp3Contract) getQryTypeStatus() string {
|
|
|
status = "2"
|
|
|
case 4: // 已完成
|
|
|
status = "3,5"
|
|
|
+ default:
|
|
|
+ status = "0,1,2,3,4,5,6"
|
|
|
}
|
|
|
return status
|
|
|
}
|
|
|
@@ -766,9 +768,11 @@ SELECT to_char(t.SPOTCONTRACTID) SPOTCONTRACTID,
|
|
|
sqlId.AndEx("t.CONTRACTTYPE", r.CONTRACTTYPE, r.CONTRACTTYPE != 0)
|
|
|
// 用户条件
|
|
|
sqlId.Join(fmt.Sprintf(" and %v in(t.userid, t.saleuserid, t.tradeuserid, t.meruserid, l.userid)", r.OwnUserId))
|
|
|
- status := r.getQryTypeStatus()
|
|
|
- if len(status) > 0 {
|
|
|
- sqlId.Join(fmt.Sprintf(" and t.contractstatus in (%v)", status))
|
|
|
+ if r.QryType > 0 {
|
|
|
+ status := r.getQryTypeStatus()
|
|
|
+ if len(status) > 0 {
|
|
|
+ sqlId.Join(fmt.Sprintf(" and t.contractstatus in (%v)", status))
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if r.CONTRACTNO != "" {
|