|
@@ -14,6 +14,7 @@ import com.diagbot.entity.LantoneProduct;
|
|
|
import com.diagbot.entity.OpenedProducts;
|
|
|
import com.diagbot.entity.OpenedProductsIndex;
|
|
|
import com.diagbot.entity.ServiceInfo;
|
|
|
+import com.diagbot.entity.User;
|
|
|
import com.diagbot.entity.wrapper.OpendProductWrapper;
|
|
|
import com.diagbot.entity.wrapper.ServiceInfoWrapper;
|
|
|
import com.diagbot.enums.AccessTypeEnum;
|
|
@@ -250,19 +251,13 @@ public class LantoneProductFacade extends LantoneProductServiceImpl {
|
|
|
productLineDTO.setProductAudit(ProductAuditEnum.NotOpend.getKey());
|
|
|
}
|
|
|
}
|
|
|
- RespDTO<Map<Long, UserOrgDTO>> mapRespDTO = userServiceClient.getUserAndOrg(userIdList);
|
|
|
+ RespDTO<User> mapRespDTO = userServiceClient.getUserAuthStatus(userId);
|
|
|
if (mapRespDTO == null || !"0".equals(mapRespDTO.code)) {
|
|
|
throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
"获取用户机构信息失败");
|
|
|
}
|
|
|
- Map<Long, UserOrgDTO> dataMap =mapRespDTO.data;
|
|
|
- UserOrgDTO uo =dataMap.get(userId);
|
|
|
Map map =new HashMap();
|
|
|
- if(uo.getAuStatus() == null){
|
|
|
- throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
|
|
|
- "账号信息不完善");
|
|
|
- }
|
|
|
- map.put("userAuStatus",uo.getAuStatus());
|
|
|
+ map.put("userAuStatus",mapRespDTO.data.getAuthStatus());
|
|
|
List list =new ArrayList();
|
|
|
list.add(productLineDTOList);
|
|
|
list.add(map);
|