|
|
@@ -879,12 +879,9 @@ func FindUserGoodsInventory(userId int) (datas []UserGoodsInventoryRsp, err erro
|
|
|
Join("INNER", "MARKET M", "M.MARKETID = G.MARKETID AND M.TRADEMODE = 52").
|
|
|
Join("LEFT", "USERGOODSINVENTORY T", "G.GOODSID = T.GOODSID AND T.USERID = ?", userId).
|
|
|
Join("LEFT", "ENUMDICITEM E", "G.GOODUNITID = E.ENUMITEMNAME AND E.ENUMDICCODE = 'goodsunit'").
|
|
|
- Select(
|
|
|
- fmt.Sprintf(`%d USERID,
|
|
|
- T.CURQTY, T.UPDATETIME,
|
|
|
+ Select(`T.USERID, T.CURQTY, T.UPDATETIME,
|
|
|
G.GOODSID, G.GOODSCODE, G.GOODSNAME, G.GOODUNITID,
|
|
|
- E.ENUMDICNAME GOODUNIT`, userId),
|
|
|
- ).Find(&datas)
|
|
|
+ E.ENUMDICNAME GOODUNIT`).Find(&datas)
|
|
|
|
|
|
return
|
|
|
}
|