fix: UDM数据勾选导出
This commit is contained in:
@@ -74,6 +74,13 @@ func (r *UDMAuthUser) SelectPage(query map[string]any) map[string]any {
|
|||||||
conditions = append(conditions, "ne_id = ?")
|
conditions = append(conditions, "ne_id = ?")
|
||||||
params = append(params, v)
|
params = append(params, v)
|
||||||
}
|
}
|
||||||
|
if v, ok := query["imsis"]; ok && v != "" {
|
||||||
|
placeholder := repo.KeyPlaceholderByQuery(len(v.([]any)))
|
||||||
|
conditions = append(conditions, fmt.Sprintf("imsi in (%s)", placeholder))
|
||||||
|
for _, v := range v.([]any) {
|
||||||
|
params = append(params, v.(string))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 构建查询条件语句
|
// 构建查询条件语句
|
||||||
whereSql := ""
|
whereSql := ""
|
||||||
|
|||||||
@@ -113,6 +113,13 @@ func (r *UDMSubUser) SelectPage(query map[string]any) map[string]any {
|
|||||||
conditions = append(conditions, "msisdn like concat(concat('%', ?), '%')")
|
conditions = append(conditions, "msisdn like concat(concat('%', ?), '%')")
|
||||||
params = append(params, strings.Trim(v.(string), " "))
|
params = append(params, strings.Trim(v.(string), " "))
|
||||||
}
|
}
|
||||||
|
if v, ok := query["imsis"]; ok && v != "" {
|
||||||
|
placeholder := repo.KeyPlaceholderByQuery(len(v.([]any)))
|
||||||
|
conditions = append(conditions, fmt.Sprintf("imsi in (%s)", placeholder))
|
||||||
|
for _, v := range v.([]any) {
|
||||||
|
params = append(params, v.(string))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// for multi-tenancy solution
|
// for multi-tenancy solution
|
||||||
if v, ok := query["tenantName"]; ok && v != "" {
|
if v, ok := query["tenantName"]; ok && v != "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user