fix: update tenancy failed
This commit is contained in:
@@ -236,6 +236,10 @@ func (r *SysTenantImpl) IsUniqueTenancy(sysTenant model.SysTenant) bool {
|
||||
// 查询条件拼接
|
||||
var conditions []string
|
||||
var params []any
|
||||
if sysTenant.TenantID != "" {
|
||||
conditions = append(conditions, "tenant_id != ?")
|
||||
params = append(params, sysTenant.TenantID)
|
||||
}
|
||||
if sysTenant.TenancyType != "" {
|
||||
conditions = append(conditions, "tenancy_type = ?")
|
||||
params = append(params, sysTenant.TenancyType)
|
||||
|
||||
Reference in New Issue
Block a user