Browse Source

修改接口 “/Ferroalloy/QueryTHJPurchaseTradeDetail 查询我的订单-采购订单” BUG

zhou.xiaoning 3 years ago
parent
commit
9122cef878
1 changed files with 2 additions and 2 deletions
  1. 2 2
      models/ferroalloy.go

+ 2 - 2
models/ferroalloy.go

@@ -828,9 +828,9 @@ func (r *Thjpurchasetradedetail) buildSql2() string {
 }
 
 func (r *Thjpurchasetradedetail) GetDataByPage() (interface{}, error, int, int, int) {
-	sql := r.buildSql()
+	sql := r.buildSql2()
 	if r.TYPE == 1 {
-		sql = r.buildSql2()
+		sql = r.buildSql()
 	}
 	sData := make([]Thjpurchasetradedetail, 0)
 	err := db.GetEngine().SQL(sql).Find(&sData)