Ver código fonte

删除字典bug修复

yxh 5 anos atrás
pai
commit
d15c2537fc
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/model/admin/sys_dict_type/sys_dict_type.go

+ 1 - 1
app/model/admin/sys_dict_type/sys_dict_type.go

@@ -239,7 +239,7 @@ func DeleteDictByIds(ids []int) error {
 	//删除字典下的数据
 	for _, v := range discs {
 		sys_dict_data.Model.Delete("dict_type=?", v.DictType)
-		Model.Delete(v.DictId)
+		Model.Delete("dict_id", v.DictId)
 	}
 	return nil
 }