|
|
|
@ -75,8 +75,8 @@ public class GridOperatorInfoServiceImpl extends BaseServiceImpl<GridOperatorInf |
|
|
|
return ConvertUtils.sourceToTarget(entityList, GridOperatorInfoDTO.class); |
|
|
|
} |
|
|
|
|
|
|
|
private QueryWrapper<GridOperatorInfoEntity> getWrapper(Map<String, Object> params){ |
|
|
|
String id = (String)params.get(FieldConstant.ID_HUMP); |
|
|
|
private QueryWrapper<GridOperatorInfoEntity> getWrapper(Map<String, Object> params) { |
|
|
|
String id = (String) params.get(FieldConstant.ID_HUMP); |
|
|
|
|
|
|
|
QueryWrapper<GridOperatorInfoEntity> wrapper = new QueryWrapper<>(); |
|
|
|
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|
|
|
@ -87,8 +87,8 @@ public class GridOperatorInfoServiceImpl extends BaseServiceImpl<GridOperatorInf |
|
|
|
@Override |
|
|
|
public GridOperatorInfoDTO get(String id) { |
|
|
|
GridOperatorInfoEntity entity = baseDao.selectById(id); |
|
|
|
GridOperatorInfoDTO gridOperatorInfoDTO = ConvertUtils.sourceToTarget(entity, GridOperatorInfoDTO.class); |
|
|
|
if(StringUtils.isNotBlank(entity.getAllDeptIds())){ |
|
|
|
GridOperatorInfoDTO gridOperatorInfoDTO = ConvertUtils.sourceToTarget(entity, GridOperatorInfoDTO.class); |
|
|
|
if (StringUtils.isNotBlank(entity.getAllDeptIds())) { |
|
|
|
String depts[] = entity.getAllDeptIds().split(","); |
|
|
|
gridOperatorInfoDTO.setAllDeptIds(depts); |
|
|
|
} |
|
|
|
|