|
@@ -34,6 +34,7 @@ import com.zhongshu.payment.client.type.TransferType;
|
|
import com.zswl.cloud.shop.client.dto.life.TripartiteShopDto;
|
|
import com.zswl.cloud.shop.client.dto.life.TripartiteShopDto;
|
|
import com.zswl.cloud.shop.client.service.ShopService;
|
|
import com.zswl.cloud.shop.client.service.ShopService;
|
|
import com.zswl.cloud.springBatch.client.model.request.*;
|
|
import com.zswl.cloud.springBatch.client.model.request.*;
|
|
|
|
+import com.zswl.cloud.springBatch.client.model.xiaoju.QueryGetPromotionResponse;
|
|
import com.zswl.cloud.springBatch.client.service.XiaoJuService;
|
|
import com.zswl.cloud.springBatch.client.service.XiaoJuService;
|
|
import com.zswl.cloud.springBtach.server.core.dao.*;
|
|
import com.zswl.cloud.springBtach.server.core.dao.*;
|
|
import com.zswl.cloud.springBtach.server.core.domain.*;
|
|
import com.zswl.cloud.springBtach.server.core.domain.*;
|
|
@@ -673,7 +674,7 @@ public class XiaoJuServiceImpl implements XiaoJuService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- public ResultContent<List<com.zswl.cloud.springBatch.client.model.xiaoju.GenPromotionInfo>> getPromotion(com.zswl.cloud.springBatch.client.model.xiaoju.QueryGetPromotionRequest queryGetPromotionRequest) {
|
|
|
|
|
|
+ public ResultContent<List<QueryGetPromotionResponse>> getPromotion(com.zswl.cloud.springBatch.client.model.xiaoju.QueryGetPromotionRequest queryGetPromotionRequest) {
|
|
QueryClient queryClient = QueryClientFactory.create(oilConfig);
|
|
QueryClient queryClient = QueryClientFactory.create(oilConfig);
|
|
ApiLog apiLog = new ApiLog();
|
|
ApiLog apiLog = new ApiLog();
|
|
apiLog.setService("getPromotion");
|
|
apiLog.setService("getPromotion");
|
|
@@ -690,7 +691,14 @@ public class XiaoJuServiceImpl implements XiaoJuService {
|
|
xiaoJuActivityReceiverDao.save(xiaoJuActivityReceiver);
|
|
xiaoJuActivityReceiverDao.save(xiaoJuActivityReceiver);
|
|
apiLog.setResponse(JSONUtil.toJsonStr(response));
|
|
apiLog.setResponse(JSONUtil.toJsonStr(response));
|
|
apiLogDao.save(apiLog);
|
|
apiLogDao.save(apiLog);
|
|
- return ResultContent.buildContent(response);
|
|
|
|
|
|
+ List<QueryGetPromotionResponse> list=new ArrayList<>();
|
|
|
|
+ response.forEach(it->{
|
|
|
|
+ QueryGetPromotionResponse queryGetPromotionResponse = new QueryGetPromotionResponse();
|
|
|
|
+ BeanUtils.copyProperties(it, queryGetPromotionResponse);
|
|
|
|
+ list.add(queryGetPromotionResponse);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ return ResultContent.buildContent(list);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
apiLog.setResponse(e.getCause().getCause().getMessage());
|
|
apiLog.setResponse(e.getCause().getCause().getMessage());
|