Commit 9bbe7cf1 by zhiwj

修改servicereponse返回时null的判断

parent 43bc2219
......@@ -73,9 +73,10 @@ public class ProblemOutApiServiceImpl implements ProblemOutApiService {
problemDTO.setMemberName(memberUserDTO.getName());
problemDTO.setMemberPhone(memberUserDTO.getMobile());
// 门店
String storeId = cuDetailService.getServiceStoreId(problemDTO.getAcuId(), problemDTO.getEnterpriseId(), problemDTO.getEcuId()).getResult();
if (StringUtils.isNotBlank(storeId)) {
StoreDTO storeDTO = storeApiService.getStoreById(memberUserDTO.getEnterpriseId(), Integer.valueOf(storeId)).getResult();
ServiceResponse<String> serviceStoreId = cuDetailService.getServiceStoreId(problemDTO.getAcuId(), problemDTO.getEnterpriseId(), problemDTO.getEcuId());
if (serviceStoreId != null && StringUtils.isNotBlank(serviceStoreId.getResult())) {
StoreDTO storeDTO = storeApiService.getStoreById(memberUserDTO.getEnterpriseId(), Integer.valueOf(serviceStoreId.getResult())).getResult();
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