fix: UDM批量用户删除[)

This commit is contained in:
TsMask
2023-11-07 14:54:17 +08:00
parent 25c2030c26
commit 5a5c4d2da9
2 changed files with 2 additions and 2 deletions

View File

@@ -267,7 +267,7 @@ func (r *RepoUdmAuthUser) Deletes(neID, imsi, num string) int64 {
return 0
}
results, err := datasource.DefaultDB().Table("u_auth_user").Where("imsi >= ? and imsi <= ? and ne_id = ?", imsiV, imsiV+numV, neID).Delete()
results, err := datasource.DefaultDB().Table("u_auth_user").Where("imsi >= ? and imsi < ? and ne_id = ?", imsiV, imsiV+numV, neID).Delete()
if err != nil {
return results
}

View File

@@ -434,7 +434,7 @@ func (r *RepoUdmSubUser) Deletes(neID, imsi, num string) int64 {
return 0
}
results, err := datasource.DefaultDB().Table("u_sub_user").Where("imsi >= ? and imsi <= ? and ne_id = ?", imsiV, imsiV+numV, neID).Delete()
results, err := datasource.DefaultDB().Table("u_sub_user").Where("imsi >= ? and imsi < ? and ne_id = ?", imsiV, imsiV+numV, neID).Delete()
if err != nil {
return results
}