|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.client.UserServiceClient;
|
|
|
import com.diagbot.dto.LantoneProductDTO;
|
|
|
+import com.diagbot.dto.LantoneProductOrgDTO;
|
|
|
import com.diagbot.dto.OpendProductDTO;
|
|
|
import com.diagbot.dto.ProductLineDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
@@ -174,9 +175,9 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
*
|
|
|
* @return 查询当前用户已开通产品
|
|
|
*/
|
|
|
- public List<LantoneProductWrapper> opendedProductByCurrentUser() {
|
|
|
+ public List<LantoneProductOrgDTO> opendedProductByCurrentUser() {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
- List<LantoneProductWrapper> list = this.opendedProductByUserId(userId);
|
|
|
+ List<LantoneProductOrgDTO> list = this.opendedProductByUserId(userId);
|
|
|
List<Long> userIdList = new ArrayList<>();
|
|
|
userIdList.add(userId);
|
|
|
RespDTO<Map<Long, UserOrgDTO>> mapRespDTO = userServiceClient.getUserAndOrg(userIdList);
|
|
@@ -194,7 +195,7 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
List<ServiceInfo> serviceInfoList = serviceInfoFacade.list(qwServiceInfo);
|
|
|
|
|
|
- for (LantoneProductWrapper product : list) {
|
|
|
+ for (LantoneProductOrgDTO product : list) {
|
|
|
product.setOrganizationName(mapRespDTO.data.get(userId).getOrgName());
|
|
|
String[] accessType = product.getAccessType().split(",|,");
|
|
|
String[] chargeType = product.getChargeType().split(",|,");
|