|  |  | 
 |  |  | @Service | 
 |  |  | public class GetShowDictList { | 
 |  |  |     @Autowired | 
 |  |  |     private  SysDictTypeService sysDictTypeService; | 
 |  |  |     private SysDictTypeService sysDictTypeService; | 
 |  |  |  | 
 |  |  |     public  String getShowDictList(String values, String DictTYpe) { | 
 |  |  |         List<DictDto> userDicts = sysDictTypeService.getUserDicts(); | 
 |  |  |         DictDto testType1Dict = userDicts.stream() | 
 |  |  |                 .filter(c -> c.getDictType().equals(DictTYpe)) | 
 |  |  |                 .collect(Collectors.toList()).get(0); | 
 |  |  |         values = "," + values + ","; | 
 |  |  |     public String getShowDictList(Object paramValues, String DictTYpe, Boolean enter) { | 
 |  |  |         String result = ""; | 
 |  |  |         for (DictItemDto dictItemDto : ((DictLeafDto) testType1Dict).getDataList()) { | 
 |  |  |             String value = dictItemDto.getDictValue(); | 
 |  |  |             String desc = (values.contains("," + value + ",") ? "☑" : "□") + dictItemDto.getDictLabel(); | 
 |  |  |             result = result + desc; | 
 |  |  |         if (paramValues != null) { | 
 |  |  |             List<DictDto> userDicts = sysDictTypeService.getUserDicts(); | 
 |  |  |             DictDto testType1Dict = userDicts.stream() | 
 |  |  |                     .filter(c -> c.getDictType().equals(DictTYpe)) | 
 |  |  |                     .collect(Collectors.toList()).get(0); | 
 |  |  |  | 
 |  |  |             String values = "," + paramValues.toString() + ","; | 
 |  |  |             int i = 0; | 
 |  |  |             for (DictItemDto dictItemDto : ((DictLeafDto) testType1Dict).getDataList()) { | 
 |  |  |                 String value = dictItemDto.getDictValue(); | 
 |  |  |                 String desc = (values.contains("," + value + ",") ? "☑" : "□") + dictItemDto.getDictLabel(); | 
 |  |  |                 i++; | 
 |  |  |                 if (enter && i < ((DictLeafDto) testType1Dict).getDataList().size()) { | 
 |  |  |                     desc = desc + "\r\n"; | 
 |  |  |                 } | 
 |  |  |                 result = result + desc; | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         return result; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |