From c66d5f0789c02238919ec075eabb1a04f4e7c418 Mon Sep 17 00:00:00 2001 From: dfdg <2710245601@qq.com> Date: Sun, 28 Sep 2025 16:57:24 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E8=AE=BE=E8=AE=A1=E5=87=BA=E5=9B=BE?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vo/volumecatalog/DesVolumeCatalogVo.java | 5 +++++ .../impl/DesVolumeCatalogServiceImpl.java | 18 +++++++++++++----- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/domain/vo/volumecatalog/DesVolumeCatalogVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/domain/vo/volumecatalog/DesVolumeCatalogVo.java index fca98874..1ddda84e 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/domain/vo/volumecatalog/DesVolumeCatalogVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/domain/vo/volumecatalog/DesVolumeCatalogVo.java @@ -134,4 +134,9 @@ public class DesVolumeCatalogVo implements Serializable { */ private Long fileCount; + /** + * 待提交审核数量 + */ + private Long reviewCount; + } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/service/impl/DesVolumeCatalogServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/service/impl/DesVolumeCatalogServiceImpl.java index 9996b7cd..f1a03153 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/service/impl/DesVolumeCatalogServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/design/service/impl/DesVolumeCatalogServiceImpl.java @@ -252,14 +252,15 @@ public class DesVolumeCatalogServiceImpl extends ServiceImpl lqw - .eq(DesVolumeCatalog::getVolumeNumber, req.getVolumeNumber()) - .or() - .eq(DesVolumeCatalog::getDocumentName, req.getDocumentName())) + .eq(DesVolumeCatalog::getVolumeNumber, req.getVolumeNumber()) +// .and(lqw -> lqw +// .eq(DesVolumeCatalog::getVolumeNumber, req.getVolumeNumber()) +// .or() +// .eq(DesVolumeCatalog::getDocumentName, req.getDocumentName())) .ne(DesVolumeCatalog::getDesign, req.getDesign()) .count(); if (count > 0) { - throw new ServiceException("卷册目录已存在", HttpStatus.BAD_REQUEST); + throw new ServiceException("卷册号已存在", HttpStatus.BAD_REQUEST); } // 修改数据 DesVolumeCatalog volumeCatalog = new DesVolumeCatalog(); @@ -390,6 +391,13 @@ public class DesVolumeCatalogServiceImpl extends ServiceImpl list = volumeFileService.list(fileQueryWrapper); if (list != null && !list.isEmpty()) { + long count = 0; + for (DesVolumeFile file : list) { + if (BusinessStatusEnum.DRAFT.getStatus().equals(file.getAuditStatus())) { + count++; + } + } + desVolumeCatalogVo.setReviewCount(count); desVolumeCatalogVo.setFileCount((long) list.size()); } else { desVolumeCatalogVo.setFileCount(0L); From 3d3df168172cf833fd00099d194d4c0aae98cfe7 Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Sun, 28 Sep 2025 17:04:29 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/FacPhotovoltaicPanelServiceImpl.java | 4 ++-- .../service/impl/PgsProgressCategoryServiceImpl.java | 1 - .../impl/PgsProgressPlanDetailServiceImpl.java | 12 ++++++------ 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/facility/service/impl/FacPhotovoltaicPanelServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/facility/service/impl/FacPhotovoltaicPanelServiceImpl.java index 647e1d85..0d553e2d 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/facility/service/impl/FacPhotovoltaicPanelServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/facility/service/impl/FacPhotovoltaicPanelServiceImpl.java @@ -312,10 +312,10 @@ public class FacPhotovoltaicPanelServiceImpl extends ServiceImpl value = entry.getValue(); PgsProgressCategory first = value.getFirst(); - topVo.setId(first.getId()); topVo.setSort(first.getSort()); // 转换为方阵结构的VO列表 List matrixVoList = value.stream().map(category -> { diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java index 0df26f5d..486ca87f 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java @@ -174,11 +174,11 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl Date: Sun, 28 Sep 2025 20:03:36 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E4=B8=93=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qualityconstructionlog/QltQualityConstructionLogVo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/quality/domain/vo/qualityconstructionlog/QltQualityConstructionLogVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/quality/domain/vo/qualityconstructionlog/QltQualityConstructionLogVo.java index 37110086..cb0b3bbd 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/quality/domain/vo/qualityconstructionlog/QltQualityConstructionLogVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/quality/domain/vo/qualityconstructionlog/QltQualityConstructionLogVo.java @@ -84,12 +84,12 @@ public class QltQualityConstructionLogVo implements Serializable { * 创建者 */ @ExcelProperty(value = "创建者") - private String createBy; + private Long createBy; /** * 创建者名称 */ - @Translation(type = TransConstant.USER_ID_TO_NICKNAME) + @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "createBy") private String createByName; /** From 39038889b6ebf9f46b563c01fb8f7f897d62a5ce Mon Sep 17 00:00:00 2001 From: lcj <2331845269@qq.com> Date: Sun, 28 Sep 2025 20:14:39 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E8=90=A4=E7=9F=B3=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/org/dromara/other/domain/OthYs7Device.java | 5 +++++ .../other/domain/dto/ys7device/OthYs7DeviceUpdateReq.java | 5 +++++ .../dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java | 5 +++++ .../dromara/other/service/impl/OthYs7DeviceServiceImpl.java | 1 - .../service/impl/PgsProgressPlanDetailServiceImpl.java | 2 +- 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/OthYs7Device.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/OthYs7Device.java index 462e8bb0..897045cc 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/OthYs7Device.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/OthYs7Device.java @@ -101,6 +101,11 @@ public class OthYs7Device implements Serializable { */ private Integer videoEncrypted; + /** + * 设备详情 + */ + private String detail; + /** * 备注 */ diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/dto/ys7device/OthYs7DeviceUpdateReq.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/dto/ys7device/OthYs7DeviceUpdateReq.java index 740298ee..b30d84b4 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/dto/ys7device/OthYs7DeviceUpdateReq.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/dto/ys7device/OthYs7DeviceUpdateReq.java @@ -35,6 +35,11 @@ public class OthYs7DeviceUpdateReq implements Serializable { */ private String deviceVersion; + /** + * 设备详情 + */ + private String detail; + /** * 备注 */ diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java index be79e0bf..ef621e51 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/domain/vo/ys7device/OthYs7DeviceVo.java @@ -87,6 +87,11 @@ public class OthYs7DeviceVo implements Serializable { @ExcelProperty(value = "视频加密(0关闭 1开启)") private Integer videoEncrypted; + /** + * 设备详情 + */ + private String detail; + /** * 备注 */ diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java index d6330eeb..dd7ca865 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/other/service/impl/OthYs7DeviceServiceImpl.java @@ -14,7 +14,6 @@ import org.dromara.common.core.utils.ObjectUtils; import org.dromara.common.core.utils.StringUtils; import org.dromara.common.mybatis.core.page.PageQuery; import org.dromara.common.mybatis.core.page.TableDataInfo; -import org.dromara.common.satoken.utils.LoginHelper; import org.dromara.manager.ys7manager.Ys7Constant; import org.dromara.manager.ys7manager.Ys7Manager; import org.dromara.manager.ys7manager.enums.DeviceOnOffLineEnum; diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java index 486ca87f..60f0384a 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/progress/service/impl/PgsProgressPlanDetailServiceImpl.java @@ -166,7 +166,7 @@ public class PgsProgressPlanDetailServiceImpl extends ServiceImpl Date: Mon, 29 Sep 2025 09:54:34 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BD=AC=E7=A7=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 13 ++- .../mapper/ProjectBigScreenMapper.java | 2 +- .../controller/TransferDataController.java | 50 +++++++---- .../mapper/TransferDataMapper.java | 19 ++++ .../service/TransferDataService.java | 87 +++++++++++++++++-- 5 files changed, 139 insertions(+), 32 deletions(-) diff --git a/xinnengyuan/ruoyi-admin/src/main/resources/application-dev.yml b/xinnengyuan/ruoyi-admin/src/main/resources/application-dev.yml index 285d71fa..b8c2c198 100644 --- a/xinnengyuan/ruoyi-admin/src/main/resources/application-dev.yml +++ b/xinnengyuan/ruoyi-admin/src/main/resources/application-dev.yml @@ -57,9 +57,9 @@ spring: lazy: true type: ${spring.datasource.type} driverClassName: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.110.2:13386/zmkgdev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true - username: zmkgdev - password: JhYxREf25AXdy3h8 + url: jdbc:mysql://192.168.110.2:13386/zmkgc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + username: zmkgc + password: nWKDKRNRT48tFBdh slave1: lazy: true type: ${spring.datasource.type} @@ -67,6 +67,13 @@ spring: url: jdbc:mysql://192.168.110.2:13386/zmkgprod?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true username: zmkgprod password: MaY8nehwWkJriWPm + slave2: + lazy: true + type: ${spring.datasource.type} + driverClassName: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.110.2:13386/zmkgdev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + username: zmkgdev + password: JhYxREf25AXdy3h8 # oracle: # type: ${spring.datasource.type} # driverClassName: oracle.jdbc.OracleDriver diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/bigscreen/mapper/ProjectBigScreenMapper.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/bigscreen/mapper/ProjectBigScreenMapper.java index cc6f21bb..262e89ea 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/bigscreen/mapper/ProjectBigScreenMapper.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/bigscreen/mapper/ProjectBigScreenMapper.java @@ -13,7 +13,7 @@ import java.util.List; * @author lilemy * @date 2025-09-10 19:32 */ -@DS("slave") +@DS("slave2") @Mapper public interface ProjectBigScreenMapper { diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/controller/TransferDataController.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/controller/TransferDataController.java index 607ffd5e..9d429ea0 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/controller/TransferDataController.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/controller/TransferDataController.java @@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j; import org.dromara.contractor.domain.SubConstructionUser; import org.dromara.contractor.service.ISubConstructionUserService; import org.dromara.project.domain.BusAttendanceRule; +import org.dromara.project.service.IBusAttendanceService; import org.dromara.system.domain.vo.SysOssVo; import org.dromara.transferData.domain.ConstructionUserCopy; import org.dromara.transferData.domain.OldAttendance; @@ -48,7 +49,12 @@ public class TransferDataController { @Resource private TransferDataService transferDataService; + @Resource + private IBusAttendanceService attendanceService; + private static final String slave = "zmkgc"; + + private static final String slave1 = "zmkgprod"; // 两个候选基础URL @@ -59,10 +65,16 @@ public class TransferDataController { @RequestMapping("/transferAttendance") - public void transferAttendance() { + public void transferAttendance(String name) { List arrs = new ArrayList<>(); - - List data = transferDataMapper.getData(); + List data; + if(slave.equals(name)){ + data = transferDataMapper.getData0(); + }else if(slave1.equals(name)) { + data = transferDataMapper.getData(); + }else { + return; + } List list = attendanceRuleService.list(Wrappers.lambdaQuery() .in(BusAttendanceRule::getProjectId, Arrays.asList(1897160897167638529L, 1897161054676336641L))); @@ -75,16 +87,16 @@ public class TransferDataController { continue; } LocalDate clockDate = LocalDate.parse(oldAttendance.getPrintingDate()); -// //判定是否重读 -// List list = attendanceService.list(Wrappers.lambdaQuery(BusAttendance.class) -// .eq(BusAttendance::getUserId, constructionUserCopy.getSysUserId()) -// .eq(BusAttendance::getProjectId, constructionUserCopy.getProjectId()) -// .eq(BusAttendance::getClockDate, clockDate) -// .eq(BusAttendance::getClockType, oldAttendance.getCommuter()) -// ); -// if(CollectionUtil.isNotEmpty(list)){ -// continue; -// } + //判定是否重复 + List list1 = attendanceService.list(Wrappers.lambdaQuery(BusAttendance.class) + .eq(BusAttendance::getUserId, constructionUserCopy.getSysUserId()) + .eq(BusAttendance::getProjectId, constructionUserCopy.getProjectId()) + .eq(BusAttendance::getClockDate, clockDate) + .eq(BusAttendance::getClockType, oldAttendance.getCommuter()) + ); + if(CollectionUtil.isNotEmpty(list1)){ + continue; + } BusAttendance busAttendance = new BusAttendance(); @@ -162,10 +174,10 @@ public class TransferDataController { // attendanceService.saveBatch(arrs); // transferDataMapper.saveBatchCopy(arrs); - //更新施工人员图片 - transferDataService.renYuan(); - //更新附件图片 - transferDataService.renYuanFuJiang(); +// //更新施工人员图片 +// transferDataService.renYuan(); +// //更新附件图片 +// transferDataService.renYuanFuJiang(); } @@ -204,8 +216,8 @@ public class TransferDataController { @GetMapping("/userTransfer") - private void userTransfer() { - transferDataService.userTransfer(); + private void userTransfer(String name) { + transferDataService.userTransfer(name); } diff --git a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/mapper/TransferDataMapper.java b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/mapper/TransferDataMapper.java index e6527ce8..dfbc8ddb 100644 --- a/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/mapper/TransferDataMapper.java +++ b/xinnengyuan/ruoyi-modules/ruoyi-system/src/main/java/org/dromara/transferData/mapper/TransferDataMapper.java @@ -18,10 +18,19 @@ public interface TransferDataMapper { @Select("select * from bus_attendance where project_id in (59,60)") List getData(); + @DS("slave") + @Select("select * from bus_attendance where project_id in (59,60)") + List getData0(); + + @DS("slave1") @Select("select * from bus_construction_user where project_id in (59,60) and deleted_at is null") List getUserList(); + @DS("slave") + @Select("select * from bus_construction_user where project_id in (59,60) and deleted_at is null") + List getUserList0(); + @Select("select id,sys_user_id,project_id,user_name from sub_construction_user where go_openid = #{openId}") ConstructionUserCopy getConstructionUserCopy(@Param("openId") String openId); @@ -60,6 +69,16 @@ public interface TransferDataMapper { List getOldFileList1(List userIds); @DS("slave") + @Select("") + List getOldFileList0(List userIds); + + @DS("slave2") @Select("