|
|
@@ -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 == "" {
|