浏览代码

修改商城列表

zhou.xiaoning 4 年之前
父节点
当前提交
1d902b95d2
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      models/hsby.go

+ 5 - 2
models/hsby.go

@@ -1397,11 +1397,14 @@ func GetHsbyMarketGoodses(marketIDs string, accountID, categoryID, goodsID int)
 				G.GOODSCODE, G.GOODSNAME, G.DECIMALPLACE, G.QUOTEMINUNIT, G.AGREEUNIT, 
 				G.GOODSCODE, G.GOODSNAME, G.DECIMALPLACE, G.QUOTEMINUNIT, G.AGREEUNIT, 
 				GX.HOTINDEX, GX.PICURLS, GX.CATEGORYID, GX.GOODSDESC, 
 				GX.HOTINDEX, GX.PICURLS, GX.CATEGORYID, GX.GOODSDESC, 
 				E.ENUMDICNAME CURRENCY, E.PARAM2 CURRENCYSIGN, 
 				E.ENUMDICNAME CURRENCY, E.PARAM2 CURRENCYSIGN, 
-				M.TRADEMODE`).
+				M.TRADEMODE, 
+				U.CUSTOMERNAME`).
 		Join("LEFT", "GOODS G", "G.GOODSID = T.GOODSID").
 		Join("LEFT", "GOODS G", "G.GOODSID = T.GOODSID").
 		Join("LEFT", "HSBY_GOODSEX GX", "GX.GOODSID = T.GOODSID").
 		Join("LEFT", "HSBY_GOODSEX GX", "GX.GOODSID = T.GOODSID").
 		Join("LEFT", "ENUMDICITEM E", "E.ENUMITEMNAME = G.CURRENCYID and E.ENUMDICCODE = 'currency'").
 		Join("LEFT", "ENUMDICITEM E", "E.ENUMITEMNAME = G.CURRENCYID and E.ENUMDICCODE = 'currency'").
 		Join("LEFT", "MARKET M", "M.MARKETID = T.MARKETID").
 		Join("LEFT", "MARKET M", "M.MARKETID = T.MARKETID").
+		Join("LEFT", "TAACCOUNT TA", "TA.ACCOUNTID = T.ACCOUNTID").
+		Join("LEFT", "USERINFO U", "U.USERID = TA.RELATEDUSERID").
 		Where(fmt.Sprintf("T.MARKETID in (%s)", marketIDs)).
 		Where(fmt.Sprintf("T.MARKETID in (%s)", marketIDs)).
 		And("T.ORDERSTATUS in (3,7) and T.BUYORSELL = 1 and (T.ORDERQTY - T.TRADEQTY - T.CANCELQTY) > 0")
 		And("T.ORDERSTATUS in (3,7) and T.BUYORSELL = 1 and (T.ORDERQTY - T.TRADEQTY - T.CANCELQTY) > 0")
 	if categoryID != 0 {
 	if categoryID != 0 {
@@ -1457,7 +1460,7 @@ func GetHsbyMarketGoodses(marketIDs string, accountID, categoryID, goodsID int)
 						continue
 						continue
 					}
 					}
 					order.SellUserID = int(userInfo.Userid)
 					order.SellUserID = int(userInfo.Userid)
-					order.Customername = userInfo.Customername
+					// order.Customername = userInfo.Customername
 
 
 					tmpGoodsID := fmt.Sprintf(",%d,", order.Goodsid)
 					tmpGoodsID := fmt.Sprintf(",%d,", order.Goodsid)
 					tmpUserID := fmt.Sprintf(",%d,", userInfo.Userid)
 					tmpUserID := fmt.Sprintf(",%d,", userInfo.Userid)