Commit dfcdff57 by guojuxing

接口更新

parent c8e1671b
package com.gic.evaluate.service.outer.impl;
import java.util.*;
import java.util.stream.Collectors;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSON;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.commons.util.DateUtil;
......@@ -16,22 +27,12 @@ import com.gic.evaluate.entity.TabProblemImg;
import com.gic.evaluate.service.*;
import com.gic.member.api.dto.AcuDetailDTO;
import com.gic.member.api.dto.MemberUserDTO;
import com.gic.member.api.dto.UserOwnerDTO;
import com.gic.member.api.dto.UserAscriptionDTO;
import com.gic.member.api.service.AppletsUserApiService;
import com.gic.member.api.service.CuDetailService;
import com.gic.member.api.service.MemberUserApiService;
import com.gic.store.dto.StoreDTO;
import com.gic.store.service.StoreApiService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.*;
import java.util.stream.Collectors;
/**
* @author zhiwj
......@@ -76,10 +77,10 @@ public class ProblemOutApiServiceImpl implements ProblemOutApiService {
problemDTO.setMemberName(memberUserDTO.getName());
problemDTO.setMemberPhone(memberUserDTO.getMobile());
// 用ACU关联的MCU的主卡最高权重服务门店
ServiceResponse<UserOwnerDTO> resp = appletsUserApiService.getUserOwnerByAppletConfigId(problemDTO.getAreaId(), problemDTO.getEnterpriseId(), problemDTO.getEcuId());
ServiceResponse<UserAscriptionDTO> resp = appletsUserApiService.getUserAscriptionByAppletConfigId(problemDTO.getAreaId(), problemDTO.getEnterpriseId(), problemDTO.getEcuId());
if (resp != null && resp.getResult() != null && StringUtils.isNotBlank(resp.getResult().getOwnerId())) {
StoreDTO storeDTO = storeApiService.getStoreByStoreInfoId(memberUserDTO.getEnterpriseId(), Integer.valueOf(resp.getResult().getOwnerId())).getResult();
if (resp != null && resp.getResult() != null && StringUtils.isNotBlank(resp.getResult().getAscriptionId())) {
StoreDTO storeDTO = storeApiService.getStoreByStoreInfoId(memberUserDTO.getEnterpriseId(), Integer.valueOf(resp.getResult().getAscriptionId())).getResult();
if (storeDTO != null) {
problemDTO.setStoreName(storeDTO.getStoreName());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment