Quellcode durchsuchen

错误 #95121 【企业风管-IOS】期货账户,显示了内部账户

zou.yingbin vor 4 Jahren
Ursprung
Commit
55a184a33b
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      models/ermcpAccMgr.go

+ 2 - 2
models/ermcpAccMgr.go

@@ -338,7 +338,7 @@ func (r *ErmcpTaAccount) buildSql() string {
 		"  left join hedge_outmainconfig l" +
 		"    on t.accountid = l.accountid" +
 		"   and t.ismain = 1" +
-		" where 1 = 1"
+		" where 1 = 1 and t.taaccounttype = 1"
 	sqlId.And("t.userid", r.USERID)
 	return sqlId.String()
 }
@@ -607,7 +607,7 @@ func (r *ErmcpRoleMenu) GetDataEx() (interface{}, error) {
 		"       f.remark" +
 		" from funcmenulist f" +
 		" where f.menutype = 3"
-	db.GetEngine().SQL(sql).Find(&sData)
+	_ = db.GetEngine().SQL(sql).Find(&sData)
 	// 先创建PARENTCODE为空的记录
 	for _, v := range sData {
 		if v.PARENTCODE == "" {