src/main/java/com/zy/asrs/entity/DeviceConfig.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/DeviceConfigMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/static/js/deviceConfig/deviceConfig.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/webapp/views/admin/deviceConfig/deviceConfig.html | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/zy/asrs/entity/DeviceConfig.java
@@ -70,6 +70,13 @@ @TableField("fake") private Integer fake; /** * 虚拟设备初始化设备状态 */ @ApiModelProperty(value= "虚拟设备初始化设备状态") @TableField("fake_init_status") private String fakeInitStatus; public DeviceConfig() {} public DeviceConfig(String ip,Integer port,String threadImpl,Date createTime,String deviceType,Integer deviceNo) { src/main/java/com/zy/core/model/protocol/ShuttleProtocol.java
@@ -217,7 +217,10 @@ } public Integer getTaskNo() { RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); RedisUtil redisUtil = null; try { redisUtil = SpringUtils.getBean(RedisUtil.class); }catch (Exception e) {} if (null != redisUtil) { Object o = redisUtil.get(RedisKeyType.SHUTTLE_FLAG.key + this.shuttleNo); if (!Cools.isEmpty(o)) { @@ -228,7 +231,10 @@ } public synchronized void setSyncTaskNo(Integer taskNo) { RedisUtil redisUtil = SpringUtils.getBean(RedisUtil.class); RedisUtil redisUtil = null; try { redisUtil = SpringUtils.getBean(RedisUtil.class); }catch (Exception e) {} if (null != redisUtil) { redisUtil.set(RedisKeyType.SHUTTLE_FLAG.key + this.shuttleNo, taskNo); this.taskNo = taskNo; @@ -247,7 +253,10 @@ //通过当前二维码获取当前库位号 public String getCurrentLocNo() { LocMastService locMastService = SpringUtils.getBean(LocMastService.class); LocMastService locMastService = null; try { locMastService = SpringUtils.getBean(LocMastService.class); }catch (Exception e) {} if (locMastService == null) { return null; } @@ -260,7 +269,13 @@ } public String getStatusErrorCode$() { BasShuttleErrService basShuttleErrService = SpringUtils.getBean(BasShuttleErrService.class); BasShuttleErrService basShuttleErrService = null; try { basShuttleErrService = SpringUtils.getBean(BasShuttleErrService.class); }catch (Exception e) {} if (basShuttleErrService == null) { return ""; } if (this.errorCode == null) { return ""; } @@ -339,12 +354,15 @@ public HashMap<String, Object> getPoint() { HashMap<String, Object> map = new HashMap<>(); if (this.currentCode == null) { LocMastService locMastService = null; try { locMastService = SpringUtils.getBean(LocMastService.class); }catch (Exception e) {} if (locMastService == null) { return map; } LocMastService locMastService = SpringUtils.getBean(LocMastService.class); if (locMastService == null) { if (this.currentCode == null) { return map; } src/main/resources/mapper/DeviceConfigMapper.xml
@@ -12,6 +12,7 @@ <result column="device_type" property="deviceType" /> <result column="device_no" property="deviceNo" /> <result column="fake" property="fake" /> <result column="fake_init_status" property="fakeInitStatus" /> </resultMap> src/main/webapp/static/js/deviceConfig/deviceConfig.js
@@ -28,6 +28,7 @@ ,{field: 'port', align: 'center',title: '设备端口'} ,{field: 'threadImpl', align: 'center',title: '实现类'} ,{field: 'fake$', align: 'center',title: '虚拟设备'} ,{field: 'fakeInitStatus', align: 'center',title: '虚拟设备初始化设备状态'} ,{field: 'createTime$', align: 'center',title: '创建时间'} ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} src/main/webapp/views/admin/deviceConfig/deviceConfig.html
@@ -112,6 +112,12 @@ </select> </div> </div> <div class="layui-form-item"> <label class="layui-form-label">虚拟设备初始化设备状态: </label> <div class="layui-input-block"> <input class="layui-input" name="fakeInitStatus" placeholder="请输入虚拟设备初始化设备状态"> </div> </div> </div> </div>