From 165bd7c53f1d31accc44a8f3cc7956fae4bac5b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Wed, 15 Oct 2025 15:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=8C=87=E4=BB=A4=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=8E=B7=E5=8F=96=E5=8F=8A=E5=AD=98=E5=82=A8=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/NuBizNuCustomerElderTag.java | 2 + .../NuBizNuCustomerServerServiceImpl.java | 98 ++++++++++--------- 2 files changed, 52 insertions(+), 48 deletions(-) diff --git a/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/entity/NuBizNuCustomerElderTag.java b/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/entity/NuBizNuCustomerElderTag.java index d9c86f95..a69b7947 100644 --- a/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/entity/NuBizNuCustomerElderTag.java +++ b/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/entity/NuBizNuCustomerElderTag.java @@ -66,6 +66,7 @@ public class NuBizNuCustomerElderTag implements Serializable { /**图标*/ @Excel(name = "图标", width = 15) @ApiModelProperty(value = "图标") + @TableField(exist = false) private java.lang.String pic; /**图标*/ @Excel(name = "图标", width = 15) @@ -75,6 +76,7 @@ public class NuBizNuCustomerElderTag implements Serializable { /**焦点图标*/ @Excel(name = "焦点图标", width = 15) @ApiModelProperty(value = "焦点图标") + @TableField(exist = false) private java.lang.String picFocus; /**图标*/ @Excel(name = "图标", width = 15) diff --git a/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/service/impl/NuBizNuCustomerServerServiceImpl.java b/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/service/impl/NuBizNuCustomerServerServiceImpl.java index 2e511e16..28c6b217 100644 --- a/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/service/impl/NuBizNuCustomerServerServiceImpl.java +++ b/nursing-unit-api/src/main/java/com/nu/modules/NuBizNuCustomerServer/service/impl/NuBizNuCustomerServerServiceImpl.java @@ -46,6 +46,8 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl getNclist(NuBizNuCustomerServer nuBizNuCustomerServer) { Map resMap = new HashMap<>(); @@ -54,14 +56,14 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl groupList = baseMapper.selectList(nuBizNuCustomerServerQueryWrapper); - String groupPositioning[] = {"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23"}; - List> allList = new ArrayList<>(); - for(String groupPositioning1 : groupPositioning){ - Map posMap = new HashMap<>(); - posMap.put("positioning",groupPositioning1); - List> childrenList = new ArrayList<>(); +// String groupPositioning[] = {"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23"}; +// List> allList = new ArrayList<>(); +// for(String groupPositioning1 : groupPositioning){ +// Map posMap = new HashMap<>(); +// posMap.put("positioning",groupPositioning1); +// List> childrenList = new ArrayList<>(); for(NuBizNuCustomerServer par : groupList){ - if(StringUtils.equals(groupPositioning1,par.getPositioning())){ +// if(StringUtils.equals(groupPositioning1,par.getPositioning())){ Map map = new HashMap<>(); map.put("nuId",nuBizNuCustomerServer.getNuId()); map.put("customerId",nuBizNuCustomerServer.getCustomerId()); @@ -80,45 +82,46 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl instantQueryWrapper = new QueryWrapper<>(); instantQueryWrapper.eq(StringUtils.isNotEmpty(nuBizNuCustomerServer.getNuId()),"nu_id",nuBizNuCustomerServer.getNuId()); @@ -241,12 +244,13 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl serverList = nuBizNuCustomerServer.getServerList(); if(serverList.size()>0){ for(NuBizNuCustomerServer par : serverList){ - par.setNuId(nuBizNuCustomerServer.getNuId()); + par.setNuId(nuId); par.setNuName(nuBizNuCustomerServer.getNuName()); - par.setCustomerId(nuBizNuCustomerServer.getCustomerId()); + par.setCustomerId(customerId); par.setCustomerName(nuBizNuCustomerServer.getCustomerName()); - baseMapper.insert(par); } + + this.saveBatch(serverList); } QueryWrapper instantQueryWrapper = new QueryWrapper<>(); instantQueryWrapper.eq("nu_id",nuId); @@ -255,12 +259,13 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl instantList = nuBizNuCustomerServer.getInstantList(); if(instantList.size()>0){ for(NuBizNuCustomerServerInstant pari : instantList){ - pari.setNuId(nuBizNuCustomerServer.getNuId()); + pari.setNuId(nuId); pari.setNuName(nuBizNuCustomerServer.getNuName()); - pari.setCustomerId(nuBizNuCustomerServer.getCustomerId()); + pari.setCustomerId(customerId); pari.setCustomerName(nuBizNuCustomerServer.getCustomerName()); - nuBizNuCustomerServerInstantService.save(pari); + } + nuBizNuCustomerServerInstantService.saveBatch(instantList); } QueryWrapper tagQueryWrapper = new QueryWrapper<>(); @@ -270,12 +275,12 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl tagList = nuBizNuCustomerServer.getTagList(); if(tagList.size()>0){ for(NuBizNuCustomerElderTag tg : tagList){ - tg.setNuId(nuBizNuCustomerServer.getNuId()); + tg.setNuId(nuId); tg.setNuName(nuBizNuCustomerServer.getNuName()); - tg.setCustomerId(nuBizNuCustomerServer.getCustomerId()); + tg.setCustomerId(customerId); tg.setCustomerName(nuBizNuCustomerServer.getCustomerName()); - nuBizNuCustomerElderTagService.save(tg); } + nuBizNuCustomerElderTagService.saveBatch(tagList); } } @@ -284,24 +289,21 @@ public class NuBizNuCustomerServerServiceImpl extends ServiceImpl