Browse Source

查交易商品排除状态无效的

zou.yingbin 4 năm trước cách đây
mục cha
commit
56efe5d223
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      models/ermcp3.go

+ 1 - 1
models/ermcp3.go

@@ -495,7 +495,7 @@ func (r *Ermcp3GoodsEx) buildSql() string {
 		"    on gp.goodsgroupid = g.goodsgroupid" +
 		"  left join externalexchange ex" +
 		"    on gp.exexchangeid = ex.autoid" +
-		" where 1 = 1"
+		" where g.goodsstatus not in(4,5,6) and mg.isvalid=1 and gp.goodsgroupstatus=1"
 	sqlId.AndEx("mg.areauserid", r.AREAUSERID, r.AREAUSERID > 0)
 	sqlId.Join(" order by mg.middlegoodsid")
 	return sqlId.String()