|
@@ -692,11 +692,12 @@ public class XiaoJuServiceImpl implements XiaoJuService {
|
|
|
apiLog.setResponse(JSONUtil.toJsonStr(response));
|
|
|
apiLogDao.save(apiLog);
|
|
|
List<QueryGetPromotionResponse> list=new ArrayList<>();
|
|
|
- response.forEach(it->{
|
|
|
- QueryGetPromotionResponse queryGetPromotionResponse = new QueryGetPromotionResponse();
|
|
|
- BeanUtils.copyProperties(it, queryGetPromotionResponse);
|
|
|
- list.add(queryGetPromotionResponse);
|
|
|
- });
|
|
|
+ for (GenPromotionInfo genPromotionInfo : response) {
|
|
|
+ JSONObject entries = JSONUtil.parseObj(genPromotionInfo);
|
|
|
+ QueryGetPromotionResponse bean = entries.toBean(QueryGetPromotionResponse.class);
|
|
|
+ list.add(bean);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
return ResultContent.buildContent(list);
|
|
|
} catch (Exception e) {
|