From 742a8b31c4569fa07c9a50d331b568970f18801c Mon Sep 17 00:00:00 2001 From: jiang Date: Mon, 22 Sep 2025 18:53:28 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../device/controller/DevMergeController.java | 1 + .../material/device/domain/vo/DevInfoVo.java | 1 + .../service/impl/DevInfoServiceImpl.java | 22 +++--- .../material/devchange/MaDevInfoMapper.xml | 2 +- .../mapper/material/device/DevMergeMapper.xml | 68 ++++++++++--------- 5 files changed, 50 insertions(+), 44 deletions(-) diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/controller/DevMergeController.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/controller/DevMergeController.java index 56d0cf0..96b5b65 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/controller/DevMergeController.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/controller/DevMergeController.java @@ -58,6 +58,7 @@ public class DevMergeController extends BaseController { return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, list)); } + /** * 获取台账中设备信息详细信息 */ diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/vo/DevInfoVo.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/vo/DevInfoVo.java index d92305e..00cf42c 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/vo/DevInfoVo.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/domain/vo/DevInfoVo.java @@ -187,4 +187,5 @@ public class DevInfoVo extends DevInfo { private String devSubcategory; private String devName; private String devModel; + } diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java index d543fb8..20e9ae6 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/service/impl/DevInfoServiceImpl.java @@ -402,16 +402,16 @@ public class DevInfoServiceImpl implements DevInfoService { if (devInfo == null) { return AjaxResult.error("设备信息不能为空"); } - if (!"2".equals(devInfo.getType())) { + /* if (!"2".equals(devInfo.getType())) { if (ObjectUtil.isEmpty(devInfo.getMainFileList())) { return AjaxResult.error("主展示图不能为空"); } if (ObjectUtil.isEmpty(devInfo.getDetailsFileList())) { return AjaxResult.error("详情页展示图不能为空"); } - } + }*/ String code = ""; - for (int i = 0; i < devInfo.getTableList().size(); i++) { + /* for (int i = 0; i < devInfo.getTableList().size(); i++) {*/ //获取用户信息 Long userId = SecurityUtils.getLoginUser().getUserid(); //保存用户信息 @@ -422,9 +422,9 @@ public class DevInfoServiceImpl implements DevInfoService { code = getString(); } devInfo.setCode(code); - devInfo.setCompanyId(SecurityUtils.getLoginUser().getSysUser().getCompanyId().toString()); + //devInfo.setCompanyId(SecurityUtils.getLoginUser().getSysUser().getCompanyId().toString()); devInfo.setDeviceCount(devInfo.getDeviceCount()); - devInfo.setIdentifyCode(devInfo.getTableList().get(i).getIdentifyCode()); + //devInfo.setIdentifyCode(devInfo.getTableList().get(i).getIdentifyCode()); //0914 添加字段 devInfo.setChangeStatus("1"); devInfo.setUpDownStatus("0"); @@ -432,19 +432,19 @@ public class DevInfoServiceImpl implements DevInfoService { if (num == 0) { return AjaxResult.error("设备信息SQL保存失败,请修改后重试"); } - devInfoMapper.updateTypeLeasePrice(devInfo); + //devInfoMapper.updateTypeLeasePrice(devInfo); code = ""; //保存自定义属性值 - if (!CollectionUtils.isEmpty(devInfo.getDevInfoProperties())) { + /*if (!CollectionUtils.isEmpty(devInfo.getDevInfoProperties())) { devInfoMapper.insertDevInfoProperties(devInfo.getMaId(), devInfo.getDevInfoProperties()); - } + }*/ //把文件保存到附件中 - Table table = devInfo.getTableList().get(i); + /* Table table = devInfo.getTableList().get(i); AjaxResult error = uploadFiles(table, devInfo, userId, i); if (error != null) { return error; - } - } + }*/ + /*}*/ return AjaxResult.success("保存成功"); } diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/devchange/MaDevInfoMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/devchange/MaDevInfoMapper.xml index d20f362..eebcbf9 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/devchange/MaDevInfoMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/devchange/MaDevInfoMapper.xml @@ -134,7 +134,7 @@ LEFT JOIN bm_company_info c ON sd.dept_id = c.company_id LEFT JOIN ma_type_view mtv ON mtv.typeId = mdi.type_id LEFT JOIN jj_sing_project jsp ON jsp.pro_code = mdi.on_project - WHERE mdi.is_active = 1 and mdi.entry_status = 1 and mdi.own_co =#{ownCo} + WHERE mdi.is_active = 1 and mdi.entry_status = 1 and ( mtv.mainGxId = #{typeId} diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevMergeMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevMergeMapper.xml index 7954c53..9f61d62 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevMergeMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/device/DevMergeMapper.xml @@ -17,39 +17,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"