|
|
|
@ -89,8 +89,10 @@ public class GridOperatorInfoServiceImpl extends BaseServiceImpl<GridOperatorInf |
|
|
|
GridOperatorInfoEntity entity = baseDao.selectById(id); |
|
|
|
GridOperatorInfoDTO gridOperatorInfoDTO = ConvertUtils.sourceToTarget(entity, GridOperatorInfoDTO.class); |
|
|
|
if (StringUtils.isNotBlank(entity.getAllDeptIds())) { |
|
|
|
String depts[] = entity.getAllDeptIds().split(","); |
|
|
|
gridOperatorInfoDTO.setAllDeptIds(depts); |
|
|
|
String[] depts = entity.getAllDeptIds().split(","); |
|
|
|
List<String> ids = Arrays.asList(depts); |
|
|
|
String[] allDeptIds = new String[(ids.subList(1, ids.size())).size()]; |
|
|
|
gridOperatorInfoDTO.setAllDeptIds((ids.subList(1, ids.size())).toArray(allDeptIds)); |
|
|
|
} |
|
|
|
return gridOperatorInfoDTO; |
|
|
|
} |
|
|
|
|