|
|
@@ -36,6 +36,7 @@ import io.swagger.annotations.Api;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -241,7 +242,9 @@ public class QuoteController extends BaseController {
|
|
|
// return pingAnOrderApiService.quote(quoteInfo, quoteVo1);
|
|
|
}
|
|
|
PtlAgreementAttribution byId = ptlAgreementAttributionService.getById(quoteVo.getAgreementId());
|
|
|
- respVo.getData().setApiType(byId.getApiType());
|
|
|
+ if( respVo != null && !ObjectUtils.isEmpty( respVo.getData() )){
|
|
|
+ respVo.getData().setApiType(byId.getApiType());
|
|
|
+ }
|
|
|
return respVo;
|
|
|
}
|
|
|
}
|