fix
This commit is contained in:
@@ -13,6 +13,7 @@ import com.cool.store.request.TrainingExperienceDistributionRequest;
|
|||||||
import com.cool.store.service.TrainingExperienceService;
|
import com.cool.store.service.TrainingExperienceService;
|
||||||
import com.cool.store.utils.poi.DateUtils;
|
import com.cool.store.utils.poi.DateUtils;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.apache.commons.collections4.CollectionUtils;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
@@ -152,6 +153,10 @@ public class TrainingExperienceServiceImpl extends LineFlowService implements Tr
|
|||||||
//过滤
|
//过滤
|
||||||
userIdsByMappingIds.retainAll(userIdsByRoleIdList);
|
userIdsByMappingIds.retainAll(userIdsByRoleIdList);
|
||||||
//用户
|
//用户
|
||||||
|
if (CollectionUtils.isEmpty(userIdsByMappingIds)){
|
||||||
|
leaseBaseInfoDO.setStoreManager("");
|
||||||
|
return leaseBaseInfoDO;
|
||||||
|
}
|
||||||
List<EnterpriseUserDO> userInfoByUserIds = enterpriseUserMapper.getUserInfoByUserIds(userIdsByMappingIds);
|
List<EnterpriseUserDO> userInfoByUserIds = enterpriseUserMapper.getUserInfoByUserIds(userIdsByMappingIds);
|
||||||
String nameList = userInfoByUserIds.stream().map(EnterpriseUserDO::getName).collect(Collectors.toList()).toString();
|
String nameList = userInfoByUserIds.stream().map(EnterpriseUserDO::getName).collect(Collectors.toList()).toString();
|
||||||
leaseBaseInfoDO.setStoreManager(nameList);
|
leaseBaseInfoDO.setStoreManager(nameList);
|
||||||
|
|||||||
Reference in New Issue
Block a user