|
@@ -12,6 +12,7 @@ import com.dragoninfo.dcuc.app.service.IApplyInfoService;
|
|
|
import com.dragoninfo.dcuc.app.service.IServiceResourceService;
|
|
|
import com.dragoninfo.dcuc.app.vo.ServiceResourceVo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.enumresources.YesNotEnum;
|
|
|
+import com.dragoninfo.dcuc.common.utils.DcucBeanUtil;
|
|
|
import com.dragoninfo.dcuc.duceap.enums.ServiceProvideWayEnum;
|
|
|
import com.dragoninfo.dcuc.duceap.enums.ServiceResourceTypeEnum;
|
|
|
import com.dragoninfo.dcuc.duceap.facade.IDuceapUploadFacade;
|
|
@@ -41,10 +42,7 @@ import javax.annotation.Resource;
|
|
|
import java.io.ByteArrayInputStream;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -273,6 +271,17 @@ public class ServiceResourceServiceImpl extends BaseMybatisService<ServiceResour
|
|
|
return Long.valueOf(serviceResourceMapper.selectCount(query));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ServiceResourceVo> getServiceByIds(List<String> serviceIds) {
|
|
|
+ if (CollectionUtils.isEmpty(serviceIds)) {
|
|
|
+ return Collections.emptyList();
|
|
|
+ }
|
|
|
+ LambdaQueryWrapper<ServiceResource> wrapper = Wrappers.lambdaQuery();
|
|
|
+ wrapper.in(ServiceResource::getId, serviceIds);
|
|
|
+ List<ServiceResource> serviceResources = serviceResourceMapper.selectList(wrapper);
|
|
|
+ return DcucBeanUtil.createCopyToObjectList(serviceResources, ServiceResourceVo.class);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 构建服务资源数组
|
|
|
* @param inputStream
|