From 03d520c4971b832ee25255d2b8f7f93ba8e5f0e0 Mon Sep 17 00:00:00 2001 From: qiuyt Date: Wed, 11 Dec 2024 19:30:29 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=AF=E5=93=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/glxp/mipsdl/client/hlfyyy/HlfyyyClient.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/glxp/mipsdl/client/hlfyyy/HlfyyyClient.java b/src/main/java/com/glxp/mipsdl/client/hlfyyy/HlfyyyClient.java index ac7c0e8..2557043 100644 --- a/src/main/java/com/glxp/mipsdl/client/hlfyyy/HlfyyyClient.java +++ b/src/main/java/com/glxp/mipsdl/client/hlfyyy/HlfyyyClient.java @@ -373,6 +373,12 @@ public class HlfyyyClient extends CommonHttpClient { return products; }).collect(Collectors.toList()); } + thrProductsDao.batchInsert(thrProductsEntityList); + for (ThrProductsEntity entity : thrProductsEntityList) { + entity.setId(null); + entity.setRemark(entity.getCode()); + entity.setCode(entity.getYbbm()); + } PageSimpleResponse pageSimpleResponse = new PageSimpleResponse<>(); pageSimpleResponse.setTotal(page.getTotal()); pageSimpleResponse.setList(thrProductsEntityList);