Ver código fonte

错误 #96390 团队订单中,出现有提货平仓卖出的数据,需要排除

zou.yingbin 4 anos atrás
pai
commit
3a7eaa78b6
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      models/qhj.go

+ 1 - 0
models/qhj.go

@@ -2031,6 +2031,7 @@ func (r *QhjTeamOrder) buildSql() string {
 		"    on g.goodunitid = e.enumitemname" +
 		"   and e.enumdiccode = 'goodsunit'" +
 		" where 1 = 1"
+	sqlId.Join(" and t.tradetype <> 28") // tradetype 28-提货成交, 过滤掉
 	sqlId.AndEx("u.refereeuserid", r.USERID, r.USERID > 0)
 	sqlId.AndEx("m.trademode", r.TRADEMODE, r.TRADEMODE > 0)
 	sqlCur := fmt.Sprintf(sqlId.String(), "trade_tradedetail")