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);