diff --git a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java index 249757a..164a2c2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java @@ -16,7 +16,7 @@ public class RuoYiApplication { // System.setProperty("spring.devtools.restart.enabled", "false"); SpringApplication.run(RuoYiApplication.class, args); System.out.println( - "(♥◠‿◠)ノ゙ 能源管理系统启动成功 ლ(´ڡ`ლ)゙ \n" + "(♥◠‿◠)ノ゙ 传感器平台启动成功 ლ(´ڡ`ლ)゙ \n" + "$$$$$$\\ $$\\ $$\\ $$$$$$\\ $$$$$$\\ $$$$$$$$\\ $$$$$$\\ $$$$$$\\ \n" + "$$ __$$\\ $$ | $$ |$$ __$$\\ $$ __$$\\ $$ _____|$$ __$$\\ $$ __$$\\ \n" + "$$ / \\__|$$ | $$ |$$ / \\__|$$ / \\__|$$ | $$ / \\__|$$ / \\__| \n" diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_CollectDeviceInfoController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_CollectDeviceInfoController.java index c0ea4b5..57e898e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_CollectDeviceInfoController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/T_CollectDeviceInfoController.java @@ -49,11 +49,11 @@ public class T_CollectDeviceInfoController extends BaseController @RequiresPermissions("system:CollectDeviceInfo:list") @PostMapping("/list") @ResponseBody - public TableDataInfo list(T_CollectDeviceInfoDTO t_CollectDeviceInfo) + public TableDataInfo list(T_CollectDeviceInfo t_CollectDeviceInfo) { startPage(); - //List list = t_CollectDeviceInfoService.selectT_CollectDeviceInfoList(t_CollectDeviceInfo); - List list = t_CollectDeviceInfoService.selectT_CollectDeviceInfoDTOList(t_CollectDeviceInfo); + List list = t_CollectDeviceInfoService.selectT_CollectDeviceInfoList(t_CollectDeviceInfo); +// List list = t_CollectDeviceInfoService.selectT_CollectDeviceInfoDTOList(t_CollectDeviceInfo); return getDataTable(list); } diff --git a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/CollectDeviceInfo.html b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/CollectDeviceInfo.html index ed55ac6..b2f5e61 100644 --- a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/CollectDeviceInfo.html +++ b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/CollectDeviceInfo.html @@ -16,9 +16,9 @@
  • - - +
  • @@ -54,6 +54,7 @@ var editFlag = [[${@permission.hasPermi('system:CollectDeviceInfo:edit')}]]; var removeFlag = [[${@permission.hasPermi('system:CollectDeviceInfo:remove')}]]; var prefix = ctx + "system/CollectDeviceInfo"; + var energyTypeData = [[${@dict.getType('energy_type')}]]; $(function() { var options = { @@ -97,7 +98,10 @@ }, { field: 'energyTypeId', - title: '能源类型' + title: '能源类型', + formatter: function(value, row, index) { + return $.table.selectDictLabel(energyTypeData, value); + } }, { field: 'ip', diff --git a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/add.html b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/add.html index 324fef2..8048f1a 100644 --- a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/add.html +++ b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/add.html @@ -49,9 +49,8 @@
    - +
    diff --git a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/edit.html b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/edit.html index 7bbf02d..b4654a1 100644 --- a/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/edit.html +++ b/ruoyi-admin/src/main/resources/templates/system/CollectDeviceInfo/edit.html @@ -50,10 +50,9 @@
    - +
    diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java index 96b5055..3065108 100644 --- a/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/config/ShiroConfig.java @@ -287,6 +287,7 @@ public class ShiroConfig // 不需要拦截的访问 filterChainDefinitionMap.put("/login", "anon,captchaValidate"); filterChainDefinitionMap.put("/appLogin", "anon,captchaValidate"); + filterChainDefinitionMap.put("/miniProgramApi/**", "anon,captchaValidate"); //MES接口 filterChainDefinitionMap.put("/test/testapi/**/**", "anon,captchaValidate"); // 注册相关 diff --git a/ruoyi-system/src/main/resources/mapper/system/T_CollectDeviceInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/system/T_CollectDeviceInfoMapper.xml index d0e6a83..06652b9 100644 --- a/ruoyi-system/src/main/resources/mapper/system/T_CollectDeviceInfoMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/T_CollectDeviceInfoMapper.xml @@ -1,64 +1,81 @@ + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - - - - - - - - - + + + + + + + + + - - - - - - - - - + + + + + + + + + - select objid, collectDeviceId, manufacturer, model, factoryNumber, produceDate, settingAddress, energyTypeId, ip from T_CollectDeviceInfo + select objid, + collectDeviceId, + manufacturer, + model, + factoryNumber, + produceDate, + settingAddress, + energyTypeId, + ip + from T_CollectDeviceInfo - select t1.objid as objid, t1.collectDeviceId as collectDeviceId,t1.manufacturer as manufacturer,t1.model as model, - t1.factoryNumber as factoryNumber,t1.produceDate as produceDate,t1.settingAddress as settingAddress, - t2.energyName as energyTypeId, t1.ip as ip - from T_CollectDeviceInfo t1 - left join T_EnergyType t2 on t1.energyTypeId = t2.energyTypeId + select t1.objid as objid, + t1.collectDeviceId as collectDeviceId, + t1.manufacturer as manufacturer, + t1.model as model, + t1.factoryNumber as factoryNumber, + t1.produceDate as produceDate, + t1.settingAddress as settingAddress, + t2.energyName as energyTypeId, + t1.ip as ip + from T_CollectDeviceInfo t1 + left join T_EnergyType t2 on t1.energyTypeId = t2.energyTypeId - - and collectDeviceId = #{collectDeviceId} - and manufacturer = #{manufacturer} - and model = #{model} - and factoryNumber = #{factoryNumber} - and produceDate = #{produceDate} - and settingAddress = #{settingAddress} - and energyTypeId = #{energyTypeId} - and ip = #{ip} + and collectDeviceId = #{collectDeviceId} + and manufacturer = #{manufacturer} + and model = #{model} + and factoryNumber = #{factoryNumber} + and produceDate = #{produceDate} + and settingAddress = #{settingAddress} + and energyTypeId = #{energyTypeId} + and ip = #{ip} - - and t1.settingAddress = #{settingAddress} - and t2.energyTypeId = #{energyTypeId} + and t1.settingAddress = #{settingAddress} + and t2.energyTypeId = #{energyTypeId} @@ -79,7 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" settingAddress, energyTypeId, ip, - + #{objid}, #{collectDeviceId}, @@ -90,7 +107,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{settingAddress}, #{energyTypeId}, #{ip}, - + @@ -109,7 +126,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - delete from T_CollectDeviceInfo where objid = #{objid} + delete + from T_CollectDeviceInfo + where objid = #{objid}