From 954480166aad6d24c9e9889906a0edf762f0da2a Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期一, 10 二月 2025 16:32:56 +0800 Subject: [PATCH] 优化库存同步 --- src/main/java/com/fzzy/otherview/gd2022/pr/GDApi9201PR.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/fzzy/otherview/gd2022/pr/GDApi9201PR.java b/src/main/java/com/fzzy/otherview/gd2022/pr/GDApi9201PR.java index db47498..37504ed 100644 --- a/src/main/java/com/fzzy/otherview/gd2022/pr/GDApi9201PR.java +++ b/src/main/java/com/fzzy/otherview/gd2022/pr/GDApi9201PR.java @@ -110,6 +110,11 @@ org.springframework.data.domain.Page<Api9201> japPage = api9201Rep.findAll(specification, pageable); page.setEntityCount((int) japPage.getTotalElements()); + for (Api9201 api9201 : japPage.getContent()) { + api9201.setDtls(JSONArray.parseArray(api9201.getDtl(), Gd2022Api1023Dtl.class)); + api9201.setPeoples(JSONArray.parseArray(api9201.getPeople(), Gd2022Api1023People.class)); + api9201.setWays(JSONArray.parseArray(api9201.getWay(), Gd2022Api1023Way.class)); + } page.setEntities(japPage.getContent()); } -- Gitblit v1.9.3