|
|
@@ -187,16 +187,21 @@ public class STKServiceImpl implements STKService {
|
|
|
sourceDataList.add(sourcedao);
|
|
|
}
|
|
|
}
|
|
|
+ List<SaveOrChangeCustomerVo> changeCustomerVos = new ArrayList<>();
|
|
|
//调用深投控api接口
|
|
|
- SaveOrChangeCustomerVo saveOrChangeCustomerVo = null;
|
|
|
- try {
|
|
|
- HttpResultResponse resultResponse = requestSTKService.updateKSPostParam(1,200,sourceDataList);
|
|
|
- saveOrChangeCustomerVo = JSONObject.parseObject(resultResponse.getBody(),SaveOrChangeCustomerVo.class);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ for(SaveOrChangeCustomerDetailDto detailDto : sourceDataList){
|
|
|
+ SaveOrChangeCustomerVo saveOrChangeCustomerVo = null;
|
|
|
+ try {
|
|
|
+ HttpResultResponse resultResponse = requestSTKService.updateKSPostParam(1,200,detailDto);
|
|
|
+ saveOrChangeCustomerVo = JSONObject.parseObject(resultResponse.getBody(),SaveOrChangeCustomerVo.class);
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ changeCustomerVos.add(saveOrChangeCustomerVo);
|
|
|
}
|
|
|
+
|
|
|
ApiResult result = new ApiResult();
|
|
|
- return result.setData(saveOrChangeCustomerVo);
|
|
|
+ return result.setData(changeCustomerVos);
|
|
|
}
|
|
|
|
|
|
|