Browse Source

名字脱敏

zou.yingbin 4 years ago
parent
commit
a3d6020588
1 changed files with 3 additions and 1 deletions
  1. 3 1
      models/wrTrade2.go

+ 3 - 1
models/wrTrade2.go

@@ -2597,13 +2597,15 @@ type WrTradeOrderDetail struct {
 }
 
 func (r *WrTradeOrderDetail) calc() {
-
+	r.USERNAME = EncryptByStar(r.USERNAME)
 }
 
 func (r *WrTradeOrderDetail) buildSql() string {
 	var sqlId utils.SQLVal = "select t.orderid," +
 		"       t.buyorsell," +
+		"       t.goodsid," +
 		"       t.orderprice," +
+		"       u.userid," +
 		"       u.accountname username," +
 		"       t.orderstatus" +
 		"  from trade_orderdetail t" +