From 9af51c29eb378cf31af04eb713572f7df72623e0 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Thu, 18 Apr 2024 17:04:48 +0800 Subject: [PATCH] =?UTF-8?q?#=20=E7=AB=99=E7=82=B9=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8E=92=E5=BA=8F=E5=AD=97=E6=AE=B5=E8=87=AA?= =?UTF-8?q?=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzims/operational/station/mapper/StationMapper.java | 6 ++++++ .../com/hnac/hzims/operational/station/mapper/StationMapper.xml | 3 +++ .../hzims/operational/station/service/impl/StationServiceImpl.java | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.java index 4f45e33..1303961 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.java @@ -285,4 +285,10 @@ public interface StationMapper extends UserDataScopeBaseMapper { */ List listWithOutAuth(@Param(Constants.WRAPPER) Wrapper wrapper); List stationVoCount(); + + /** + * 获取站点排序最大值 + * @return 排序最大值 + */ + Integer getMaxSort(); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.xml b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.xml index 12d48ac..a2089a1 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.xml +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/mapper/StationMapper.xml @@ -464,4 +464,7 @@ + diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java index 3b5c0e6..7976d98 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/station/service/impl/StationServiceImpl.java @@ -75,8 +75,6 @@ public class StationServiceImpl extends BaseServiceImpl wq = Wrappers.lambdaQuery().eq(StationEntity::getSignage, entity.getSignage()); @@ -692,6 +690,8 @@ public class StationServiceImpl extends BaseServiceImpl sort + 1).orElse(1)); // 创建站点机构 this.createStationDept(entity); return super.save(entity);