|
|
@ -32,6 +32,7 @@ import com.epmet.entity.StaffRoleEntity; |
|
|
|
import com.epmet.feign.GovOrgOpenFeignClient; |
|
|
|
import com.epmet.service.StaffRoleService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.ListUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
@ -136,7 +137,9 @@ public class StaffRoleServiceImpl extends BaseServiceImpl<StaffRoleDao, StaffRol |
|
|
|
if (CollectionUtils.isEmpty(forms)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
List<GridStaffResultDTO> result = baseDao.staffGridRole(forms); |
|
|
|
List<String> userIds = forms.stream().map(m -> m.getStaffId()).distinct().collect(Collectors.toList()); |
|
|
|
List<GridStaffResultDTO> result = baseDao.staffGridRoleByIds(userIds); |
|
|
|
/*List<GridStaffResultDTO> result = baseDao.staffGridRole(forms);*/ |
|
|
|
if (CollectionUtils.isEmpty(result)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|