在select中如何将实体的字符串转换为Dto的List<string> 返回

SqlSugar 沟通中
2 200

数据库保存的是用逗号隔开的数据,现在需要转换为Dto中的List<string>,提示image.png

热忱回答2

  • fate sta fate sta VIP0
    1个月前

    DTO在加个GET customerArrar 通过获取customer分割获取集合。 

    0 回复
  • @fate sta:老师,是不是需要加两个字段,一个用于数据库字符串,一个用户返回Dto

    image.png

    0 回复