| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.whyc.util.ActionUtil.createFilefolderIFNotExist; |
| | | |
| | |
| | | wrapper.in("role_id",integers); |
| | | wrapper.select("id","name","role_id"); |
| | | List<DocUser> list=mapper.selectList(wrapper); |
| | | Map<String, List<DocUser>> collect = list.stream().collect(Collectors.groupingBy(DocUser::getRoleId)); |
| | | return new Response().setII(1,collect.size()>0,collect,"返回数据"); |
| | | return new Response().setII(1,list.size()>0,list,"返回数据"); |
| | | } |
| | | } |