From fd04f3c74c14697809b51806877f851ee47555b7 Mon Sep 17 00:00:00 2001 From: zhugongping Date: Wed, 8 Apr 2026 17:51:47 +0800 Subject: [PATCH] =?UTF-8?q?20260408:1=E3=80=81=E6=95=B0=E6=8D=AE=E4=B8=8A?= =?UTF-8?q?=E6=8A=A5=E7=89=A9=E6=A8=A1=E5=9E=8B=E5=85=AC=E5=BC=8F=E8=AE=A1?= =?UTF-8?q?=E7=AE=97bug=E4=BF=AE=E5=A4=8D=EF=BC=9B2=E3=80=81=E9=83=A8?= =?UTF-8?q?=E9=97=A8/=E5=85=AC=E5=8F=B8=E6=94=AF=E6=8C=81=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E8=87=AA=E6=9C=89logo=E3=80=81=E5=85=AC=E5=8F=B8?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=EF=BC=9B3=E3=80=81=E5=8F=AA=E8=A6=81?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=AD=98=E5=9C=A8=E4=B8=8A=E6=8A=A5imei?= =?UTF-8?q?=E7=AD=89=E6=95=B0=E6=8D=AE=E5=8D=B3=E5=88=BB=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/core/domain/entity/SysDept.java | 13 ++ ...CaculateUtils.java => CalculateUtils.java} | 75 ++++---- .../common/utils/gateway/CRC16Utils.java | 4 +- .../iot/data/aspect/DeviceDebugLogAspect.java | 28 +-- .../iot/data/push/ThingsModelPushHandler.java | 4 +- .../fastbee/modbus/codec/ModbusProtocol.java | 8 +- .../com/fastbee/modbus/test/ModbusTest.java | 4 +- .../modbustcp/codec/ModbusTcpProtocol.java | 8 +- .../service/impl/DataCenterServiceImpl.java | 4 +- .../iot/service/impl/DeviceServiceImpl.java | 4 +- .../resources/mapper/system/SysDeptMapper.xml | 8 +- .../resources/mapper/system/SysUserMapper.xml | 3 +- .../data-center-history-chart-solution.md | 165 ++++++++++++++++++ .../src/layout/components/Sidebar/Logo.vue | 16 +- yack-web/src/views/system/dept/index.vue | 7 +- 15 files changed, 272 insertions(+), 79 deletions(-) rename fastbee-common/src/main/java/com/fastbee/common/utils/{CaculateUtils.java => CalculateUtils.java} (86%) create mode 100644 yack-web/docs/data-center-history-chart-solution.md diff --git a/fastbee-common/src/main/java/com/fastbee/common/core/domain/entity/SysDept.java b/fastbee-common/src/main/java/com/fastbee/common/core/domain/entity/SysDept.java index d3d700dc..35013e28 100644 --- a/fastbee-common/src/main/java/com/fastbee/common/core/domain/entity/SysDept.java +++ b/fastbee-common/src/main/java/com/fastbee/common/core/domain/entity/SysDept.java @@ -118,6 +118,11 @@ public class SysDept extends BaseEntity { * 机构类型 */ private Integer deptType; + + /** + * 机构Logo URL + */ + private String logo; /** * 是否显示自己 */ @@ -151,6 +156,14 @@ public class SysDept extends BaseEntity { this.deptType = deptType; } + public String getLogo() { + return logo; + } + + public void setLogo(String logo) { + this.logo = logo; + } + public String getUserName() { return userName; } diff --git a/fastbee-common/src/main/java/com/fastbee/common/utils/CaculateUtils.java b/fastbee-common/src/main/java/com/fastbee/common/utils/CalculateUtils.java similarity index 86% rename from fastbee-common/src/main/java/com/fastbee/common/utils/CaculateUtils.java rename to fastbee-common/src/main/java/com/fastbee/common/utils/CalculateUtils.java index 305d7e48..47caa19d 100644 --- a/fastbee-common/src/main/java/com/fastbee/common/utils/CaculateUtils.java +++ b/fastbee-common/src/main/java/com/fastbee/common/utils/CalculateUtils.java @@ -15,7 +15,7 @@ import java.util.regex.Pattern; /** * 字符串公式计算工具 */ -public class CaculateUtils { +public class CalculateUtils { /** * /* @@ -26,14 +26,15 @@ public class CaculateUtils { /** * 公式计算 字符串 * - * @param exeStr + * @param exeStr 公式:例:{AngY}-(0.0047*({T}-20)) + * @param replaceMap K:identifier,V:值 */ public static BigDecimal execute(String exeStr, Map replaceMap) { // 替换掉占位符 - exeStr = caculateReplace(exeStr, replaceMap); + exeStr = calculateReplace(exeStr, replaceMap); exeStr = exeStr.replaceAll("\\s*", ""); List suffixList = suffixHandle(exeStr); - return caculateAnalyse(suffixList); + return calculateAnalyse(suffixList); } @@ -41,26 +42,25 @@ public class CaculateUtils { * 公式计算 后序list * * @param suffixList - * @return + * @return 计算结果 */ - public static BigDecimal caculateAnalyse(List suffixList) { + public static BigDecimal calculateAnalyse(List suffixList) { BigDecimal a = BigDecimal.ZERO; - BigDecimal b = BigDecimal.ZERO; + BigDecimal b; // 构建一个操作数栈 每当获得操作符号时取出最上面两个数进行计算。 - Deque caculateStack = new ArrayDeque<>(); + Deque calculateStack = new ArrayDeque<>(); if (suffixList.size() > 1) { - for (int i = 0; i < suffixList.size(); i++) { - String temp = suffixList.get(i); + for (String temp : suffixList) { if (symbol.contains(temp)) { - b = caculateStack.pop(); - a = caculateStack.pop(); - a = caculate(a, b, temp.toCharArray()[0]); - caculateStack.push(a); + b = calculateStack.pop(); + a = calculateStack.pop(); + a = calculate(a, b, temp.toCharArray()[0]); + calculateStack.push(a); } else { - if (isNumber(suffixList.get(i))) { - caculateStack.push(new BigDecimal(suffixList.get(i))); + if (isNumber(temp)) { + calculateStack.push(new BigDecimal(temp)); } else { throw new RuntimeException("公式异常!"); } @@ -85,7 +85,7 @@ public class CaculateUtils { * @param symbol * @return */ - public static BigDecimal caculate(BigDecimal a, BigDecimal b, char symbol) { + public static BigDecimal calculate(BigDecimal a, BigDecimal b, char symbol) { switch (symbol) { case '+': { return a.add(b).stripTrailingZeros(); @@ -158,9 +158,9 @@ public class CaculateUtils { char con = stack.peek(); if (con == '(') { stack.pop(); - } else { - res.add(String.valueOf(stack.pop())); + break; // 只匹配当前这一对括号 } + res.add(String.valueOf(stack.pop())); } continue; } @@ -208,18 +208,18 @@ public class CaculateUtils { } /** - * 判断是否为数 字符串 + * 判断是否为数字 * - * @param str - * @return + * @param str 字符串 + * @return true:数字;false:非数字 */ public static boolean isNumber(String str) { - Pattern pattern = Pattern.compile("[-+]?[0-9]+\\.{0,1}[0-9]*"); + Pattern pattern = Pattern.compile("[-+]?[0-9]+\\.?[0-9]*"); Matcher isNum = pattern.matcher(str); return isNum.matches(); } - public static String caculateReplace(String str, Map map) { + public static String calculateReplace(String str, Map map) { for (Map.Entry entry : map.entrySet()) { // 对于包含特殊字符的占位符(如 {identifier}),需要转义正则表达式特殊字符 String key = entry.getKey(); @@ -343,26 +343,26 @@ public class CaculateUtils { ModbusDataType type = ModbusDataType.convert(dataType); switch (type) { case U_SHORT: - value = CaculateUtils.toUnSign16(val); + value = CalculateUtils.toUnSign16(val); break; case SHORT: case LONG_ABCD: value = val + ""; break; case LONG_CDAB: - value = CaculateUtils.toSign32_CDAB(val); + value = CalculateUtils.toSign32_CDAB(val); break; case U_LONG_ABCD: - value = CaculateUtils.toUnSign32_ABCD(val); + value = CalculateUtils.toUnSign32_ABCD(val); break; case U_LONG_CDAB: - value = CaculateUtils.toUnSign32_CDAB(val); + value = CalculateUtils.toUnSign32_CDAB(val); break; case FLOAT_ABCD: - value = CaculateUtils.toFloat32_ABCD(bytes) + ""; + value = CalculateUtils.toFloat32_ABCD(bytes) + ""; break; case FLOAT_CDAB: // todo:待改枚举页面枚举 - value = CaculateUtils.toFloat32_DCBA(bytes) + ""; + value = CalculateUtils.toFloat32_DCBA(bytes) + ""; break; } } @@ -401,16 +401,17 @@ public class CaculateUtils { // replaceMap.put("B", "2.5"); // replaceMap.put("C", "3.5"); // replaceMap.put("D", "4.5"); - replaceMap.put("AngZ", "-10"); - // replaceMap.put("%s", "1"); + replaceMap.put("{AngY}", "-0.10590162"); + replaceMap.put("{T}", "21.656084"); // replaceMap.put("%s1", "5"); - BigDecimal execute = execute("AngZ+88.59", replaceMap); + String formula = "{AngY}-(0.0047*({T}-20))"; + BigDecimal execute = execute(formula, replaceMap); System.out.println(execute); - Map map = new HashMap<>(); + /* Map map = new HashMap<>(); map.put("%s", "10"); - String caculate = caculateReplace("%s*2", map); - System.out.println(caculate); + String calculate = calculateReplace("%s*2", map); + System.out.println(calculate); System.out.println(execute("%s%3.00", map)); String s4 = toUnSign16(-1); @@ -451,7 +452,7 @@ public class CaculateUtils { int val1 = -6553510; byte[] bytes2 = intToBytes2(val1); int i1 = bytesToInt2(bytes2); - System.out.println(i1); + System.out.println(i1);*/ } } diff --git a/fastbee-common/src/main/java/com/fastbee/common/utils/gateway/CRC16Utils.java b/fastbee-common/src/main/java/com/fastbee/common/utils/gateway/CRC16Utils.java index 8bc592be..4d98989a 100644 --- a/fastbee-common/src/main/java/com/fastbee/common/utils/gateway/CRC16Utils.java +++ b/fastbee-common/src/main/java/com/fastbee/common/utils/gateway/CRC16Utils.java @@ -1,7 +1,7 @@ package com.fastbee.common.utils.gateway; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.gateway.protocol.ByteUtils; import org.apache.commons.lang3.ArrayUtils; @@ -141,7 +141,7 @@ public class CRC16Utils { byte[] byte8 = ByteUtils.hexToByte(crc8); int b = CRC8(byte8); System.out.println(b); - float v = CaculateUtils.toFloat32_DCBA(bytes); + float v = CalculateUtils.toFloat32_DCBA(bytes); System.out.println(v); } diff --git a/fastbee-iot-data/src/main/java/com/fastbee/iot/data/aspect/DeviceDebugLogAspect.java b/fastbee-iot-data/src/main/java/com/fastbee/iot/data/aspect/DeviceDebugLogAspect.java index 2d177f5d..302dd6fa 100644 --- a/fastbee-iot-data/src/main/java/com/fastbee/iot/data/aspect/DeviceDebugLogAspect.java +++ b/fastbee-iot-data/src/main/java/com/fastbee/iot/data/aspect/DeviceDebugLogAspect.java @@ -314,23 +314,23 @@ public class DeviceDebugLogAspect { } // 更新IMEI、ICCID、longitude、latitude - if (StringUtils.isEmpty(device.getImei()) || StringUtils.isEmpty(device.getIccid())) { - Map atCommandMap = ATCommandParserUtils.parseATResponseFromHex(context.sourceData); + Map atCommandMap = ATCommandParserUtils.parseATResponseFromHex(context.sourceData); + if (!atCommandMap.isEmpty()) { Device updateDevice = new Device(); - if (StringUtils.isEmpty(device.getImei())) { - updateDevice.setImei(atCommandMap.get("IMEI")); + String imei = atCommandMap.get("IMEI"); + if (StringUtils.isNotEmpty(imei)) { + updateDevice.setImei(imei); } - if (StringUtils.isEmpty(device.getIccid())) { - updateDevice.setIccid(atCommandMap.get("ICCID")); + String iccid = atCommandMap.get("ICCID"); + if (StringUtils.isNotEmpty(iccid)) { + updateDevice.setIccid(iccid); } - if (device.getLongitude() == null && device.getLatitude() == null) { - String lbsValue = atCommandMap.get("LBS"); - if (lbsValue != null) { - String[] lbsArray = lbsValue.split(","); - if (lbsArray.length == 2) { - updateDevice.setLongitude(new BigDecimal(lbsArray[1])); - updateDevice.setLatitude(new BigDecimal(lbsArray[0])); - } + String lbsValue = atCommandMap.get("LBS"); + if (StringUtils.isNotEmpty(lbsValue)) { + String[] lbsArray = lbsValue.split(","); + if (lbsArray.length == 2) { + updateDevice.setLongitude(new BigDecimal(lbsArray[1])); + updateDevice.setLatitude(new BigDecimal(lbsArray[0])); } } updateDevice.setDeviceId(device.getDeviceId()); diff --git a/fastbee-iot-data/src/main/java/com/fastbee/iot/data/push/ThingsModelPushHandler.java b/fastbee-iot-data/src/main/java/com/fastbee/iot/data/push/ThingsModelPushHandler.java index 58f3c2b6..e8535561 100644 --- a/fastbee-iot-data/src/main/java/com/fastbee/iot/data/push/ThingsModelPushHandler.java +++ b/fastbee-iot-data/src/main/java/com/fastbee/iot/data/push/ThingsModelPushHandler.java @@ -8,7 +8,7 @@ import com.fastbee.common.core.notify.config.WeChatConfigParams; import com.fastbee.common.core.notify.msg.WechatMsgParams; import com.fastbee.common.core.redis.RedisKeyBuilder; import com.fastbee.common.enums.DataLevelEnum; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.StringUtils; import com.fastbee.common.utils.wechat.WechatUtils; import com.fastbee.common.wechat.WeChatAppResult; @@ -317,7 +317,7 @@ public class ThingsModelPushHandler { replaceMap.put("{" + refKey + "}", val); } try { - Object computed = CaculateUtils.execute(model.getFormula(), replaceMap); + Object computed = CalculateUtils.execute(model.getFormula(), replaceMap); String computedStr = computed != null ? computed.toString() : null; return new ComputedValue(computedStr, maxTs); } catch (Exception e) { diff --git a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/codec/ModbusProtocol.java b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/codec/ModbusProtocol.java index 178d31f9..8e057c1a 100644 --- a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/codec/ModbusProtocol.java +++ b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/codec/ModbusProtocol.java @@ -13,7 +13,7 @@ import com.fastbee.common.core.protocol.modbus.ModbusCode; import com.fastbee.common.core.redis.RedisCache; import com.fastbee.common.core.thingsModel.ThingsModelSimpleItem; import com.fastbee.common.enums.FunctionReplyStatus; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.DateUtils; import com.fastbee.common.utils.StringUtils; import com.fastbee.common.utils.gateway.CRC16Utils; @@ -229,7 +229,7 @@ public class ModbusProtocol implements IProtocol { //普通取值,应该只有一个数据,将identity与address替换 ThingsModelSimpleItem simpleItem = new ThingsModelSimpleItem(); simpleItem.setId(config.getIdentifier()); - simpleItem.setValue(CaculateUtils.handleToUnSign16(data[0] + "", config.getDataType())); + simpleItem.setValue(CalculateUtils.handleToUnSign16(data[0] + "", config.getDataType())); simpleItem.setTs(DateUtils.getNowDate()); simpleItemList.add(simpleItem); } @@ -301,11 +301,11 @@ public class ModbusProtocol implements IProtocol { if (quantity == 1) { // 单个寄存器 - String value = CaculateUtils.handleToUnSign16(Long.parseLong(handleHex, 16) + "", modbusConfig.getDataType()); + String value = CalculateUtils.handleToUnSign16(Long.parseLong(handleHex, 16) + "", modbusConfig.getDataType()); simpleItem.setValue(value); } else if (quantity == 2) { // 浮点数,2个寄存器 - String value = CaculateUtils.parseValue(modbusConfig.getDataType(), handleHex); + String value = CalculateUtils.parseValue(modbusConfig.getDataType(), handleHex); simpleItem.setValue(value); } else { log.warn("不支持的quantity值:{},配置地址:{}", quantity, configAddress); diff --git a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/test/ModbusTest.java b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/test/ModbusTest.java index f3c16e37..279cb9a3 100644 --- a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/test/ModbusTest.java +++ b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbus/test/ModbusTest.java @@ -2,7 +2,7 @@ package com.fastbee.modbus.test; import com.fastbee.common.core.mq.message.DeviceData; import com.fastbee.common.core.protocol.modbus.ModbusCode; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.gateway.protocol.ByteUtils; import com.fastbee.modbus.codec.ModbusDecoder; import com.fastbee.modbus.codec.ModbusEncoder; @@ -78,7 +78,7 @@ public class ModbusTest { System.out.println(s1); String hexToBytes = "41EE8000"; byte[] bytes = ByteBufUtil.decodeHexDump(hexToBytes); - String v = CaculateUtils.toFloat(bytes); + String v = CalculateUtils.toFloat(bytes); System.out.println(v); System.out.println(ByteUtils.intToHex(-32768)); diff --git a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbustcp/codec/ModbusTcpProtocol.java b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbustcp/codec/ModbusTcpProtocol.java index 3abc418f..b25e6f44 100644 --- a/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbustcp/codec/ModbusTcpProtocol.java +++ b/fastbee-protocol/fastbee-protocol-collect/src/main/java/com/fastbee/modbustcp/codec/ModbusTcpProtocol.java @@ -15,7 +15,7 @@ import com.fastbee.common.core.redis.RedisKeyBuilder; import com.fastbee.common.core.thingsModel.ThingsModelSimpleItem; import com.fastbee.common.enums.FunctionReplyStatus; import com.fastbee.common.exception.ServiceException; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.DateUtils; import com.fastbee.common.utils.StringUtils; import com.fastbee.common.utils.modbus.BitUtils; @@ -265,7 +265,7 @@ public class ModbusTcpProtocol implements IProtocol { //普通取值,应该只有一个数据,将identity与address替换 ThingsModelSimpleItem simpleItem = new ThingsModelSimpleItem(); simpleItem.setId(config.getIdentifier()); - simpleItem.setValue(CaculateUtils.handleToUnSign16(data[0] + "", config.getDataType())); + simpleItem.setValue(CalculateUtils.handleToUnSign16(data[0] + "", config.getDataType())); simpleItem.setTs(DateUtils.getNowDate()); simpleItemList.add(simpleItem); } @@ -306,13 +306,13 @@ public class ModbusTcpProtocol implements IProtocol { simpleItem.setTs(DateUtils.getNowDate()); if (quantity == 1) { //将identity与address替换 - simpleItem.setValue(CaculateUtils.handleToUnSign16(data[i] + "", modbusConfig.getDataType())); + simpleItem.setValue(CalculateUtils.handleToUnSign16(data[i] + "", modbusConfig.getDataType())); simpleItemList.add(simpleItem); dataHex = dataHex.substring(4); } else if (quantity == 2) { //这里做数据处理 String handleHex = dataHex.substring(0, 8); - String value = CaculateUtils.parseValue(modbusConfig.getDataType(), handleHex); + String value = CalculateUtils.parseValue(modbusConfig.getDataType(), handleHex); simpleItem.setValue(value); simpleItemList.add(simpleItem); //处理dataHex diff --git a/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DataCenterServiceImpl.java b/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DataCenterServiceImpl.java index d41f5787..44a674db 100644 --- a/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DataCenterServiceImpl.java +++ b/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DataCenterServiceImpl.java @@ -5,7 +5,7 @@ import com.fastbee.common.enums.scenemodel.SceneModelVariableTypeEnum; import com.fastbee.common.utils.DateUtils; import com.fastbee.common.utils.SecurityUtils; import com.fastbee.common.utils.StringUtils; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.iot.cache.SceneModelTagCache; import com.fastbee.iot.domain.*; import com.fastbee.iot.model.AlertCountVO; @@ -380,7 +380,7 @@ public class DataCenterServiceImpl implements DataCenterService { replaceMap.put("{" + entry.getKey() + "}", val != null ? val : "0"); } try { - String computed = CaculateUtils.execute(model.getFormula(), replaceMap).toString(); + String computed = CalculateUtils.execute(model.getFormula(), replaceMap).toString(); HistoryModel hm = new HistoryModel(); hm.setTime(minute); hm.setIdentity(calcIdentifier); diff --git a/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DeviceServiceImpl.java b/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DeviceServiceImpl.java index e2711f38..81bee60b 100644 --- a/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DeviceServiceImpl.java +++ b/fastbee-service/fastbee-iot-service/src/main/java/com/fastbee/iot/service/impl/DeviceServiceImpl.java @@ -19,7 +19,7 @@ import com.fastbee.common.core.thingsModel.ThingsModelSimpleItem; import com.fastbee.common.core.thingsModel.ThingsModelValuesInput; import com.fastbee.common.enums.*; import com.fastbee.common.exception.ServiceException; -import com.fastbee.common.utils.CaculateUtils; +import com.fastbee.common.utils.CalculateUtils; import com.fastbee.common.utils.DateUtils; import com.fastbee.common.utils.SecurityUtils; import com.fastbee.common.utils.StringUtils; @@ -583,7 +583,7 @@ public class DeviceServiceImpl implements IDeviceService { // 执行计算 try { - value = String.valueOf(CaculateUtils.execute(formula, params)); + value = String.valueOf(CalculateUtils.execute(formula, params)); } catch (Exception e) { log.error("=>计算公式执行失败[{}],标识符:[{}],公式:[{}],错误:{}", input.getProductId(), identity, formula, e.getMessage()); } diff --git a/fastbee-service/fastbee-system-service/src/main/resources/mapper/system/SysDeptMapper.xml b/fastbee-service/fastbee-system-service/src/main/resources/mapper/system/SysDeptMapper.xml index dfa6dffa..7fff1d6b 100644 --- a/fastbee-service/fastbee-system-service/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/fastbee-service/fastbee-system-service/src/main/resources/mapper/system/SysDeptMapper.xml @@ -22,10 +22,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - select d.dept_id, d.dept_user_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time, d.dept_type + select d.dept_id, d.dept_user_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time, d.dept_type, d.logo from sys_dept d @@ -61,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"