| New file |
| | |
| | | -- save basCrnErrorLog record |
| | | -- mysql |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog/basCrnErrorLog.html', 'basCrnErrorLog管理', null , '2', null , '1'); |
| | | |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog#view', '查询', '', '3', '0', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog#btn-add', '新增', '', '3', '1', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog#btn-edit', '编辑', '', '3', '2', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog#btn-delete', '删除', '', '3', '3', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basCrnErrorLog#btn-export', '导出', '', '3', '4', '1'); |
| | | |
| | | -- sqlserver |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog/basCrnErrorLog.html', N'basCrnErrorLog管理', null, '2', null, '1'); |
| | | |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog#view', N'查询', '', '3', '0', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog#btn-add', N'新增', '', '3', '1', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog#btn-edit', N'编辑', '', '3', '2', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog#btn-delete', N'删除', '', '3', '3', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basCrnErrorLog#btn-export', N'导出', '', '3', '4', '1'); |
| New file |
| | |
| | | -- save basRgvErrorLog record |
| | | -- mysql |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog/basRgvErrorLog.html', 'basRgvErrorLog管理', null , '2', null , '1'); |
| | | |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog#view', '查询', '', '3', '0', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog#btn-add', '新增', '', '3', '1', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog#btn-edit', '编辑', '', '3', '2', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog#btn-delete', '删除', '', '3', '3', '1'); |
| | | insert into `sys_resource` ( `code`, `name`, `resource_id`, `level`, `sort`, `status`) values ( 'basRgvErrorLog#btn-export', '导出', '', '3', '4', '1'); |
| | | |
| | | -- sqlserver |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog/basRgvErrorLog.html', N'basRgvErrorLog管理', null, '2', null, '1'); |
| | | |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog#view', N'查询', '', '3', '0', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog#btn-add', N'新增', '', '3', '1', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog#btn-edit', N'编辑', '', '3', '2', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog#btn-delete', N'删除', '', '3', '3', '1'); |
| | | insert [dbo].[sys_resource] ( [code], [name], [resource_id], [level], [sort], [status]) values ( N'basRgvErrorLog#btn-export', N'导出', '', '3', '4', '1'); |
| New file |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.BasCrnErrorLog; |
| | | import com.zy.asrs.service.BasCrnErrorLogService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | public class BasCrnErrorLogController extends BaseController { |
| | | |
| | | @Autowired |
| | | private BasCrnErrorLogService basCrnErrorLogService; |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(basCrnErrorLogService.selectById(String.valueOf(id))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<BasCrnErrorLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(BasCrnErrorLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(basCrnErrorLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/add/auth") |
| | | @ManagerAuth |
| | | public R add(BasCrnErrorLog basCrnErrorLog) { |
| | | basCrnErrorLogService.insert(basCrnErrorLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasCrnErrorLog basCrnErrorLog){ |
| | | if (Cools.isEmpty(basCrnErrorLog) || null==basCrnErrorLog.getId()){ |
| | | return R.error(); |
| | | } |
| | | basCrnErrorLogService.updateById(basCrnErrorLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | basCrnErrorLogService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | EntityWrapper<BasCrnErrorLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basCrnErrorLog")); |
| | | convert(map, wrapper); |
| | | List<BasCrnErrorLog> list = basCrnErrorLogService.selectList(wrapper); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLogQuery/auth") |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | EntityWrapper<BasCrnErrorLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("crn_no", condition); |
| | | Page<BasCrnErrorLog> page = basCrnErrorLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasCrnErrorLog basCrnErrorLog : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basCrnErrorLog.getId()); |
| | | map.put("value", basCrnErrorLog.getId()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basCrnErrorLog/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasCrnErrorLog> wrapper = new EntityWrapper<BasCrnErrorLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basCrnErrorLogService.selectOne(wrapper)){ |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasCrnErrorLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.controller; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.baomidou.mybatisplus.mapper.Wrapper; |
| | | import com.baomidou.mybatisplus.plugins.Page; |
| | | import com.core.common.DateUtils; |
| | | import com.zy.asrs.entity.BasRgvErrorLog; |
| | | import com.zy.asrs.service.BasRgvErrorLogService; |
| | | import com.core.annotations.ManagerAuth; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | | import com.core.common.R; |
| | | import com.zy.common.web.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | |
| | | @RestController |
| | | public class BasRgvErrorLogController extends BaseController { |
| | | |
| | | @Autowired |
| | | private BasRgvErrorLogService basRgvErrorLogService; |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/{id}/auth") |
| | | @ManagerAuth |
| | | public R get(@PathVariable("id") String id) { |
| | | return R.ok(basRgvErrorLogService.selectById(String.valueOf(id))); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/list/auth") |
| | | @ManagerAuth |
| | | public R list(@RequestParam(defaultValue = "1")Integer curr, |
| | | @RequestParam(defaultValue = "10")Integer limit, |
| | | @RequestParam(required = false)String orderByField, |
| | | @RequestParam(required = false)String orderByType, |
| | | @RequestParam(required = false)String condition, |
| | | @RequestParam Map<String, Object> param){ |
| | | EntityWrapper<BasRgvErrorLog> wrapper = new EntityWrapper<>(); |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(BasRgvErrorLog.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(basRgvErrorLogService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ |
| | | for (Map.Entry<String, Object> entry : map.entrySet()){ |
| | | String val = String.valueOf(entry.getValue()); |
| | | if (val.contains(RANGE_TIME_LINK)){ |
| | | String[] dates = val.split(RANGE_TIME_LINK); |
| | | wrapper.ge(entry.getKey(), DateUtils.convert(dates[0])); |
| | | wrapper.le(entry.getKey(), DateUtils.convert(dates[1])); |
| | | } else { |
| | | wrapper.like(entry.getKey(), val); |
| | | } |
| | | } |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/add/auth") |
| | | @ManagerAuth |
| | | public R add(BasRgvErrorLog basRgvErrorLog) { |
| | | basRgvErrorLogService.insert(basRgvErrorLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/update/auth") |
| | | @ManagerAuth |
| | | public R update(BasRgvErrorLog basRgvErrorLog){ |
| | | if (Cools.isEmpty(basRgvErrorLog) || null==basRgvErrorLog.getId()){ |
| | | return R.error(); |
| | | } |
| | | basRgvErrorLogService.updateById(basRgvErrorLog); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/delete/auth") |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | basRgvErrorLogService.deleteById(id); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/export/auth") |
| | | @ManagerAuth |
| | | public R export(@RequestBody JSONObject param){ |
| | | EntityWrapper<BasRgvErrorLog> wrapper = new EntityWrapper<>(); |
| | | List<String> fields = JSONObject.parseArray(param.getJSONArray("fields").toJSONString(), String.class); |
| | | Map<String, Object> map = excludeTrash(param.getJSONObject("basRgvErrorLog")); |
| | | convert(map, wrapper); |
| | | List<BasRgvErrorLog> list = basRgvErrorLogService.selectList(wrapper); |
| | | return R.ok(exportSupport(list, fields)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLogQuery/auth") |
| | | @ManagerAuth |
| | | public R query(String condition) { |
| | | EntityWrapper<BasRgvErrorLog> wrapper = new EntityWrapper<>(); |
| | | wrapper.like("rgv_no", condition); |
| | | Page<BasRgvErrorLog> page = basRgvErrorLogService.selectPage(new Page<>(0, 10), wrapper); |
| | | List<Map<String, Object>> result = new ArrayList<>(); |
| | | for (BasRgvErrorLog basRgvErrorLog : page.getRecords()){ |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("id", basRgvErrorLog.getId()); |
| | | map.put("value", basRgvErrorLog.getId()); |
| | | result.add(map); |
| | | } |
| | | return R.ok(result); |
| | | } |
| | | |
| | | @RequestMapping(value = "/basRgvErrorLog/check/column/auth") |
| | | @ManagerAuth |
| | | public R query(@RequestBody JSONObject param) { |
| | | Wrapper<BasRgvErrorLog> wrapper = new EntityWrapper<BasRgvErrorLog>().eq(humpToLine(String.valueOf(param.get("key"))), param.get("val")); |
| | | if (null != basRgvErrorLogService.selectOne(wrapper)){ |
| | | return R.parse(BaseRes.REPEAT).add(getComment(BasRgvErrorLog.class, String.valueOf(param.get("key")))); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("asr_bas_crn_error_log") |
| | | public class BasCrnErrorLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | | /** |
| | | * 行走变频器故障 |
| | | */ |
| | | @ApiModelProperty(value= "行走变频器故障") |
| | | @TableField("ib_drive_fault") |
| | | private String ibDriveFault; |
| | | |
| | | /** |
| | | * 提共变频器故障 |
| | | */ |
| | | @ApiModelProperty(value= "提共变频器故障") |
| | | @TableField("ib_supply_fault") |
| | | private String ibSupplyFault; |
| | | |
| | | /** |
| | | * 货叉变频器故障 |
| | | */ |
| | | @ApiModelProperty(value= "货叉变频器故障") |
| | | @TableField("ib_fork_drive_fault") |
| | | private String ibForkDriveFault; |
| | | |
| | | /** |
| | | * 行走断路器故障 |
| | | */ |
| | | @ApiModelProperty(value= "行走断路器故障") |
| | | @TableField("ib_drive_circuit_fault") |
| | | private String ibDriveCircuitFault; |
| | | |
| | | /** |
| | | * 提升断路器故障 |
| | | */ |
| | | @ApiModelProperty(value= "提升断路器故障") |
| | | @TableField("ib_lift_circuit_fault") |
| | | private String ibLiftCircuitFault; |
| | | |
| | | /** |
| | | * 货叉断路器故障 |
| | | */ |
| | | @ApiModelProperty(value= "货叉断路器故障") |
| | | @TableField("ib_fork_circuit_fault") |
| | | private String ibForkCircuitFault; |
| | | |
| | | /** |
| | | * 前进限位 |
| | | */ |
| | | @ApiModelProperty(value= "前进限位") |
| | | @TableField("ib_forward_limit") |
| | | private String ibForwardLimit; |
| | | |
| | | /** |
| | | * 后退限位 |
| | | */ |
| | | @ApiModelProperty(value= "后退限位") |
| | | @TableField("ib_reverse_limit") |
| | | private String ibReverseLimit; |
| | | |
| | | /** |
| | | * 行走原点 |
| | | */ |
| | | @ApiModelProperty(value= "行走原点") |
| | | @TableField("ib_drive_start") |
| | | private String ibDriveStart; |
| | | |
| | | /** |
| | | * 前进强制低速 |
| | | */ |
| | | @ApiModelProperty(value= "前进强制低速") |
| | | @TableField("ib_forward_brake_speed") |
| | | private String ibForwardBrakeSpeed; |
| | | |
| | | /** |
| | | * 后退强制低速 |
| | | */ |
| | | @ApiModelProperty(value= "后退强制低速") |
| | | @TableField("ib_reverse_brake_speed") |
| | | private String ibReverseBrakeSpeed; |
| | | |
| | | /** |
| | | * 上升限位 |
| | | */ |
| | | @ApiModelProperty(value= "上升限位") |
| | | @TableField("ib_up_limit") |
| | | private String ibUpLimit; |
| | | |
| | | /** |
| | | * 下限限位 |
| | | */ |
| | | @ApiModelProperty(value= "下限限位") |
| | | @TableField("ib_down_limit") |
| | | private String ibDownLimit; |
| | | |
| | | /** |
| | | * 提升原点 |
| | | */ |
| | | @ApiModelProperty(value= "提升原点") |
| | | @TableField("ib_up_origin") |
| | | private String ibUpOrigin; |
| | | |
| | | /** |
| | | * 上升强制低速 |
| | | */ |
| | | @ApiModelProperty(value= "上升强制低速") |
| | | @TableField("ib_up_brake_speed") |
| | | private String ibUpBrakeSpeed; |
| | | |
| | | /** |
| | | * 下降强制低速 |
| | | */ |
| | | @ApiModelProperty(value= "下降强制低速") |
| | | @TableField("ib_down_brake_speed") |
| | | private String ibDownBrakeSpeed; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(value= "创建时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 载货台探货 |
| | | */ |
| | | @ApiModelProperty(value= "载货台探货") |
| | | @TableField("ib_platform_signal") |
| | | private String ibPlatformSignal; |
| | | |
| | | /** |
| | | * 货叉中位信号 |
| | | */ |
| | | @ApiModelProperty(value= "货叉中位信号") |
| | | @TableField("ib_fork_mid_signal") |
| | | private String ibForkMidSignal; |
| | | |
| | | /** |
| | | * 货叉左极限 |
| | | */ |
| | | @ApiModelProperty(value= "货叉左极限") |
| | | @TableField("ib_fork_left_limit") |
| | | private String ibForkLeftLimit; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 货叉右极限 |
| | | */ |
| | | @ApiModelProperty(value= "货叉右极限") |
| | | @TableField("ib_fork_right_limit") |
| | | private String ibForkRightLimit; |
| | | |
| | | /** |
| | | * 前超限 |
| | | */ |
| | | @ApiModelProperty(value= "前超限") |
| | | @TableField("ib_front_over_limit") |
| | | private String ibFrontOverLimit; |
| | | |
| | | /** |
| | | * 后超限 |
| | | */ |
| | | @ApiModelProperty(value= "后超限") |
| | | @TableField("ib_rear_over_limit") |
| | | private String ibRearOverLimit; |
| | | |
| | | /** |
| | | * 左超限 |
| | | */ |
| | | @ApiModelProperty(value= "左超限") |
| | | @TableField("ib_left_over_limit") |
| | | private String ibLeftOverLimit; |
| | | |
| | | /** |
| | | * 右超限 |
| | | */ |
| | | @ApiModelProperty(value= "右超限") |
| | | @TableField("ib_right_over_limit") |
| | | private String ibRightOverLimit; |
| | | |
| | | /** |
| | | * 高超限1 |
| | | */ |
| | | @ApiModelProperty(value= "高超限1") |
| | | @TableField("ib_high_over_limit_1") |
| | | private String ibHighOverLimit1; |
| | | |
| | | /** |
| | | * 高超限2 |
| | | */ |
| | | @ApiModelProperty(value= "高超限2") |
| | | @TableField("ib_high_over_limit_2") |
| | | private String ibHighOverLimit2; |
| | | |
| | | /** |
| | | * 高超限3 |
| | | */ |
| | | @ApiModelProperty(value= "高超限3") |
| | | @TableField("ib_high_over_limit_3") |
| | | private String ibHighOverLimit3; |
| | | |
| | | /** |
| | | * 一伸左侧探货1 |
| | | */ |
| | | @ApiModelProperty(value= "一伸左侧探货1") |
| | | @TableField("ib_one_extend_left_load_1") |
| | | private String ibOneExtendLeftLoad1; |
| | | |
| | | /** |
| | | * 一伸左侧探货2 |
| | | */ |
| | | @ApiModelProperty(value= "一伸左侧探货2") |
| | | @TableField("ib_one_extend_left_load_2") |
| | | private String ibOneExtendLeftLoad2; |
| | | |
| | | /** |
| | | * 一伸右侧探货1 |
| | | */ |
| | | @ApiModelProperty(value= "一伸右侧探货1") |
| | | @TableField("ib_one_extend_right_load_1") |
| | | private String ibOneExtendRightLoad1; |
| | | |
| | | /** |
| | | * 一伸右侧探货2 |
| | | */ |
| | | @ApiModelProperty(value= "一伸右侧探货2") |
| | | @TableField("ib_one_extend_right_load_2") |
| | | private String ibOneExtendRightLoad2; |
| | | |
| | | /** |
| | | * 二伸左侧探货1 |
| | | */ |
| | | @ApiModelProperty(value= "二伸左侧探货1") |
| | | @TableField("ib_two_extend_left_load_1") |
| | | private String ibTwoExtendLeftLoad1; |
| | | |
| | | /** |
| | | * 二伸左侧探货2 |
| | | */ |
| | | @ApiModelProperty(value= "二伸左侧探货2") |
| | | @TableField("ib_two_extend_left_load_2") |
| | | private String ibTwoExtendLeftLoad2; |
| | | |
| | | /** |
| | | * 二伸右侧探货1 |
| | | */ |
| | | @ApiModelProperty(value= "二伸右侧探货1") |
| | | @TableField("ib_two_extend_right_load_1") |
| | | private String ibTwoExtendRightLoad1; |
| | | |
| | | /** |
| | | * 二伸右侧探货2 |
| | | */ |
| | | @ApiModelProperty(value= "二伸右侧探货2") |
| | | @TableField("ib_two_extend_right_load_2") |
| | | private String ibTwoExtendRightLoad2; |
| | | |
| | | /** |
| | | * 超速信号1 |
| | | */ |
| | | @ApiModelProperty(value= "超速信号1") |
| | | @TableField("ib_speed_signal_1") |
| | | private String ibSpeedSignal1; |
| | | |
| | | /** |
| | | * 超速信号2 |
| | | */ |
| | | @ApiModelProperty(value= "超速信号2") |
| | | @TableField("ib_speed_signal_2") |
| | | private String ibSpeedSignal2; |
| | | |
| | | /** |
| | | * 超重信号1 |
| | | */ |
| | | @ApiModelProperty(value= "超重信号1") |
| | | @TableField("ib_overweight_signal_1") |
| | | private String ibOverweightSignal1; |
| | | |
| | | /** |
| | | * 超重信号2 |
| | | */ |
| | | @ApiModelProperty(value= "超重信号2") |
| | | @TableField("ib_overweight_signal_2") |
| | | private String ibOverweightSignal2; |
| | | |
| | | /** |
| | | * 松绳信号1 |
| | | */ |
| | | @ApiModelProperty(value= "松绳信号1") |
| | | @TableField("ib_rope_release_signal_1") |
| | | private String ibRopeReleaseSignal1; |
| | | |
| | | /** |
| | | * 松绳信号2 |
| | | */ |
| | | @ApiModelProperty(value= "松绳信号2") |
| | | @TableField("ib_rope_release_signal_2") |
| | | private String ibRopeReleaseSignal2; |
| | | |
| | | /** |
| | | * 安全钳 |
| | | */ |
| | | @ApiModelProperty(value= "安全钳") |
| | | @TableField("ib_safety_clamp") |
| | | private String ibSafetyClamp; |
| | | |
| | | /** |
| | | * 张紧器 |
| | | */ |
| | | @ApiModelProperty(value= "张紧器") |
| | | @TableField("ib_tightener") |
| | | private String ibTightener; |
| | | |
| | | /** |
| | | * 限速器 |
| | | */ |
| | | @ApiModelProperty(value= "限速器") |
| | | @TableField("ib_speed_limiter") |
| | | private String ibSpeedLimiter; |
| | | |
| | | /** |
| | | * 安全门打开 |
| | | */ |
| | | @ApiModelProperty(value= "安全门打开") |
| | | @TableField("ib_safety_door_open") |
| | | private String ibSafetyDoorOpen; |
| | | |
| | | public BasCrnErrorLog() {} |
| | | |
| | | public BasCrnErrorLog(Integer crnNo,String ibDriveFault,String ibSupplyFault,String ibForkDriveFault,String ibDriveCircuitFault,String ibLiftCircuitFault,String ibForkCircuitFault,String ibForwardLimit,String ibReverseLimit,String ibDriveStart,String ibForwardBrakeSpeed,String ibReverseBrakeSpeed,String ibUpLimit,String ibDownLimit,String ibUpOrigin,String ibUpBrakeSpeed,String ibDownBrakeSpeed,Date createTime,String ibPlatformSignal,String ibForkMidSignal,String ibForkLeftLimit,String ibForkRightLimit,String ibFrontOverLimit,String ibRearOverLimit,String ibLeftOverLimit,String ibRightOverLimit,String ibHighOverLimit1,String ibHighOverLimit2,String ibHighOverLimit3,String ibOneExtendLeftLoad1,String ibOneExtendLeftLoad2,String ibOneExtendRightLoad1,String ibOneExtendRightLoad2,String ibTwoExtendLeftLoad1,String ibTwoExtendLeftLoad2,String ibTwoExtendRightLoad1,String ibTwoExtendRightLoad2,String ibSpeedSignal1,String ibSpeedSignal2,String ibOverweightSignal1,String ibOverweightSignal2,String ibRopeReleaseSignal1,String ibRopeReleaseSignal2,String ibSafetyClamp,String ibTightener,String ibSpeedLimiter,String ibSafetyDoorOpen) { |
| | | this.crnNo = crnNo; |
| | | this.ibDriveFault = ibDriveFault; |
| | | this.ibSupplyFault = ibSupplyFault; |
| | | this.ibForkDriveFault = ibForkDriveFault; |
| | | this.ibDriveCircuitFault = ibDriveCircuitFault; |
| | | this.ibLiftCircuitFault = ibLiftCircuitFault; |
| | | this.ibForkCircuitFault = ibForkCircuitFault; |
| | | this.ibForwardLimit = ibForwardLimit; |
| | | this.ibReverseLimit = ibReverseLimit; |
| | | this.ibDriveStart = ibDriveStart; |
| | | this.ibForwardBrakeSpeed = ibForwardBrakeSpeed; |
| | | this.ibReverseBrakeSpeed = ibReverseBrakeSpeed; |
| | | this.ibUpLimit = ibUpLimit; |
| | | this.ibDownLimit = ibDownLimit; |
| | | this.ibUpOrigin = ibUpOrigin; |
| | | this.ibUpBrakeSpeed = ibUpBrakeSpeed; |
| | | this.ibDownBrakeSpeed = ibDownBrakeSpeed; |
| | | this.createTime = createTime; |
| | | this.ibPlatformSignal = ibPlatformSignal; |
| | | this.ibForkMidSignal = ibForkMidSignal; |
| | | this.ibForkLeftLimit = ibForkLeftLimit; |
| | | this.ibForkRightLimit = ibForkRightLimit; |
| | | this.ibFrontOverLimit = ibFrontOverLimit; |
| | | this.ibRearOverLimit = ibRearOverLimit; |
| | | this.ibLeftOverLimit = ibLeftOverLimit; |
| | | this.ibRightOverLimit = ibRightOverLimit; |
| | | this.ibHighOverLimit1 = ibHighOverLimit1; |
| | | this.ibHighOverLimit2 = ibHighOverLimit2; |
| | | this.ibHighOverLimit3 = ibHighOverLimit3; |
| | | this.ibOneExtendLeftLoad1 = ibOneExtendLeftLoad1; |
| | | this.ibOneExtendLeftLoad2 = ibOneExtendLeftLoad2; |
| | | this.ibOneExtendRightLoad1 = ibOneExtendRightLoad1; |
| | | this.ibOneExtendRightLoad2 = ibOneExtendRightLoad2; |
| | | this.ibTwoExtendLeftLoad1 = ibTwoExtendLeftLoad1; |
| | | this.ibTwoExtendLeftLoad2 = ibTwoExtendLeftLoad2; |
| | | this.ibTwoExtendRightLoad1 = ibTwoExtendRightLoad1; |
| | | this.ibTwoExtendRightLoad2 = ibTwoExtendRightLoad2; |
| | | this.ibSpeedSignal1 = ibSpeedSignal1; |
| | | this.ibSpeedSignal2 = ibSpeedSignal2; |
| | | this.ibOverweightSignal1 = ibOverweightSignal1; |
| | | this.ibOverweightSignal2 = ibOverweightSignal2; |
| | | this.ibRopeReleaseSignal1 = ibRopeReleaseSignal1; |
| | | this.ibRopeReleaseSignal2 = ibRopeReleaseSignal2; |
| | | this.ibSafetyClamp = ibSafetyClamp; |
| | | this.ibTightener = ibTightener; |
| | | this.ibSpeedLimiter = ibSpeedLimiter; |
| | | this.ibSafetyDoorOpen = ibSafetyDoorOpen; |
| | | } |
| | | |
| | | // BasCrnErrorLog basCrnErrorLog = new BasCrnErrorLog( |
| | | // null, // 编号 |
| | | // null, // 行走变频器故障 |
| | | // null, // 提共变频器故障 |
| | | // null, // 货叉变频器故障 |
| | | // null, // 行走断路器故障 |
| | | // null, // 提升断路器故障 |
| | | // null, // 货叉断路器故障 |
| | | // null, // 前进限位 |
| | | // null, // 后退限位 |
| | | // null, // 行走原点 |
| | | // null, // 前进强制低速 |
| | | // null, // 后退强制低速 |
| | | // null, // 上升限位 |
| | | // null, // 下限限位 |
| | | // null, // 提升原点 |
| | | // null, // 上升强制低速 |
| | | // null, // 下降强制低速 |
| | | // null, // 创建时间 |
| | | // null, // 载货台探货 |
| | | // null, // 货叉中位信号 |
| | | // null, // 货叉左极限 |
| | | // null, // 货叉右极限 |
| | | // null, // 前超限 |
| | | // null, // 后超限 |
| | | // null, // 左超限 |
| | | // null, // 右超限 |
| | | // null, // 高超限1 |
| | | // null, // 高超限2 |
| | | // null, // 高超限3 |
| | | // null, // 一伸左侧探货1 |
| | | // null, // 一伸左侧探货2 |
| | | // null, // 一伸右侧探货1 |
| | | // null, // 一伸右侧探货2 |
| | | // null, // 二伸左侧探货1 |
| | | // null, // 二伸左侧探货2 |
| | | // null, // 二伸右侧探货1 |
| | | // null, // 二伸右侧探货2 |
| | | // null, // 超速信号1 |
| | | // null, // 超速信号2 |
| | | // null, // 超重信号1 |
| | | // null, // 超重信号2 |
| | | // null, // 松绳信号1 |
| | | // null, // 松绳信号2 |
| | | // null, // 安全钳 |
| | | // null, // 张紧器 |
| | | // null, // 限速器 |
| | | // null // 安全门打开 |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | public class BasDevpErrorLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 输送编号 |
| | | */ |
| | |
| | | @TableField("out_enable") |
| | | private String outEnable; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | /** |
| | | * 数据错误 |
| | | */ |
| | | @ApiModelProperty(value= "数据错误") |
| | | @TableField("data_error") |
| | | private String dataError; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 直线光电 |
| | | */ |
| | | @ApiModelProperty(value= "直线光电") |
| | | @TableField("sensorG_arrive") |
| | | private String sensorGArrive; |
| | | |
| | | /** |
| | | * 减速光电 |
| | | */ |
| | | @ApiModelProperty(value= "减速光电") |
| | | @TableField("sensorG_dec") |
| | | private String sensorGDec; |
| | | |
| | | /** |
| | | * 直线凸出 |
| | | */ |
| | | @ApiModelProperty(value= "直线凸出") |
| | | @TableField("sensorG_arrive2") |
| | | private String sensorGArrive2; |
| | | |
| | | /** |
| | | * 限位保护光电 |
| | | */ |
| | | @ApiModelProperty(value= "限位保护光电") |
| | | @TableField("sensor_limit") |
| | | private String sensorLimit; |
| | | |
| | | /** |
| | | * 急停 |
| | | */ |
| | | @ApiModelProperty(value= "急停") |
| | | private String emergency; |
| | | |
| | | /** |
| | | * 光电离开1 |
| | | */ |
| | | @ApiModelProperty(value= "光电离开1") |
| | | @TableField("sensorG_leave") |
| | | private String sensorGLeave; |
| | | |
| | | /** |
| | | * 光电离开2 |
| | | */ |
| | | @ApiModelProperty(value= "光电离开2") |
| | | @TableField("sensorG_leave2") |
| | | private String sensorGLeave2; |
| | | |
| | | /** |
| | | * 顶升上升 |
| | | */ |
| | | @ApiModelProperty(value= "顶升上升") |
| | | @TableField("sensorC_up") |
| | | private String sensorCUp; |
| | | |
| | | /** |
| | | * 顶升下降 |
| | | */ |
| | | @ApiModelProperty(value= "顶升下降") |
| | | @TableField("sensorC_down") |
| | | private String sensorCDown; |
| | | |
| | | /** |
| | | * 顶升热继 |
| | | */ |
| | | @ApiModelProperty(value= "顶升热继") |
| | | @TableField("lift_motor_fr") |
| | | private String liftMotorFr; |
| | | |
| | | /** |
| | | * 直线热继 |
| | | */ |
| | | @ApiModelProperty(value= "直线热继") |
| | | @TableField("line_motor_fr") |
| | | private String lineMotorFr; |
| | | |
| | | /** |
| | | * 移栽热继 |
| | | */ |
| | | @ApiModelProperty(value= "移栽热继") |
| | | @TableField("tran_motor_fr") |
| | | private String tranMotorFr; |
| | | |
| | | /** |
| | | * 备用1 |
| | | */ |
| | | @ApiModelProperty(value= "备用1") |
| | | private String rst1; |
| | | |
| | | /** |
| | | * 备用2 |
| | | */ |
| | | @ApiModelProperty(value= "备用2") |
| | | private String rst2; |
| | | |
| | | /** |
| | | * 备用3 |
| | | */ |
| | | @ApiModelProperty(value= "备用3") |
| | | private String rst3; |
| | | |
| | | /** |
| | | * 备用4 |
| | | */ |
| | | @ApiModelProperty(value= "备用4") |
| | | private String rst4; |
| | | |
| | | /** |
| | | * 直行方向到位 |
| | | */ |
| | | @ApiModelProperty(value= "直行方向到位") |
| | | @TableField("sensor_arrive_d") |
| | | private String sensorArriveD; |
| | | |
| | | /** |
| | | * 直行方向减速 |
| | | */ |
| | | @ApiModelProperty(value= "直行方向减速") |
| | | @TableField("sensor_dec_d") |
| | | private String sensorDecD; |
| | | |
| | | /** |
| | | * 左移方向到位 |
| | | */ |
| | | @ApiModelProperty(value= "左移方向到位") |
| | | @TableField("sensor_arrive_l") |
| | | private String sensorArriveL; |
| | | |
| | | /** |
| | | * 左移方向减速 |
| | | */ |
| | | @ApiModelProperty(value= "左移方向减速") |
| | | @TableField("sensor_dec_l") |
| | | private String sensorDecL; |
| | | |
| | | /** |
| | | * 右移方向到位 |
| | | */ |
| | | @ApiModelProperty(value= "右移方向到位") |
| | | @TableField("sensor_arrive_r") |
| | | private String sensorArriveR; |
| | | |
| | | /** |
| | | * 右移方向减速 |
| | | */ |
| | | @ApiModelProperty(value= "右移方向减速") |
| | | @TableField("sensor_dec_r") |
| | | private String sensorDecR; |
| | | |
| | | public BasDevpErrorLog() {} |
| | | |
| | | public BasDevpErrorLog(Integer devNo,String passTimeOut,String objectNoIdError,String idNoObjectError,String lmfrError,String liftError,String dlfrError,String dmfrError,String vfdError,String srvError,String res1,String res2,String res3,String communicationTimeOut,String parameterIncompleteError,String dataNotClear,String setParameterError,Date createTime,String inEnable,String outEnable,String dataError) { |
| | | public BasDevpErrorLog(Integer devNo,String passTimeOut,String objectNoIdError,String idNoObjectError,String lmfrError,String liftError,String dlfrError,String dmfrError,String vfdError,String srvError,String res1,String res2,String res3,String communicationTimeOut,String parameterIncompleteError,String dataNotClear,String setParameterError,Date createTime,String inEnable,String outEnable,String dataError,String sensorGArrive,String sensorGDec,String sensorGArrive2,String sensorLimit,String emergency,String sensorGLeave,String sensorGLeave2,String sensorCUp,String sensorCDown,String liftMotorFr,String lineMotorFr,String tranMotorFr,String rst1,String rst2,String rst3,String rst4,String sensorArriveD,String sensorDecD,String sensorArriveL,String sensorDecL,String sensorArriveR,String sensorDecR) { |
| | | this.devNo = devNo; |
| | | this.passTimeOut = passTimeOut; |
| | | this.objectNoIdError = objectNoIdError; |
| | |
| | | this.inEnable = inEnable; |
| | | this.outEnable = outEnable; |
| | | this.dataError = dataError; |
| | | this.sensorGArrive = sensorGArrive; |
| | | this.sensorGDec = sensorGDec; |
| | | this.sensorGArrive2 = sensorGArrive2; |
| | | this.sensorLimit = sensorLimit; |
| | | this.emergency = emergency; |
| | | this.sensorGLeave = sensorGLeave; |
| | | this.sensorGLeave2 = sensorGLeave2; |
| | | this.sensorCUp = sensorCUp; |
| | | this.sensorCDown = sensorCDown; |
| | | this.liftMotorFr = liftMotorFr; |
| | | this.lineMotorFr = lineMotorFr; |
| | | this.tranMotorFr = tranMotorFr; |
| | | this.rst1 = rst1; |
| | | this.rst2 = rst2; |
| | | this.rst3 = rst3; |
| | | this.rst4 = rst4; |
| | | this.sensorArriveD = sensorArriveD; |
| | | this.sensorDecD = sensorDecD; |
| | | this.sensorArriveL = sensorArriveL; |
| | | this.sensorDecL = sensorDecL; |
| | | this.sensorArriveR = sensorArriveR; |
| | | this.sensorDecR = sensorDecR; |
| | | } |
| | | |
| | | // BasDevpErrorLog basDevpErrorLog = new BasDevpErrorLog( |
| | |
| | | // null, // 创建时间 |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // null, // 数据错误 |
| | | // null, // 直线光电 |
| | | // null, // 减速光电 |
| | | // null, // 直线凸出 |
| | | // null, // 限位保护光电 |
| | | // null, // 急停 |
| | | // null, // 光电离开1 |
| | | // null, // 光电离开2 |
| | | // null, // 顶升上升 |
| | | // null, // 顶升下降 |
| | | // null, // 顶升热继 |
| | | // null, // 直线热继 |
| | | // null, // 移栽热继 |
| | | // null, // 备用1 |
| | | // null, // 备用2 |
| | | // null, // 备用3 |
| | | // null, // 备用4 |
| | | // null, // 直行方向到位 |
| | | // null, // 直行方向减速 |
| | | // null, // 左移方向到位 |
| | | // null, // 左移方向减速 |
| | | // null, // 右移方向到位 |
| | | // null // 右移方向减速 |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| New file |
| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import java.io.Serializable; |
| | | |
| | | @Data |
| | | @TableName("asr_bas_rgv_error_log") |
| | | public class BasRgvErrorLog implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 编号 |
| | | */ |
| | | @ApiModelProperty(value= "编号") |
| | | @TableField("rgv_no") |
| | | private Integer rgvNo; |
| | | |
| | | /** |
| | | * 急停触发 |
| | | */ |
| | | @ApiModelProperty(value= "急停触发") |
| | | @TableField("emergency_stop") |
| | | private String emergencyStop; |
| | | |
| | | /** |
| | | * 1号位有物无资料 |
| | | */ |
| | | @ApiModelProperty(value= "1号位有物无资料") |
| | | @TableField("slot_1_empty_no_data") |
| | | private String slot1EmptyNoData; |
| | | |
| | | /** |
| | | * 2号位有物无资料 |
| | | */ |
| | | @ApiModelProperty(value= "2号位有物无资料") |
| | | @TableField("slot_2_empty_no_data") |
| | | private String slot2EmptyNoData; |
| | | |
| | | /** |
| | | * 命令错误走链条冲突 |
| | | */ |
| | | @ApiModelProperty(value= "命令错误走链条冲突") |
| | | @TableField("command_error_chain_conflict") |
| | | private String commandErrorChainConflict; |
| | | |
| | | /** |
| | | * 目标位下发错误 |
| | | */ |
| | | @ApiModelProperty(value= "目标位下发错误") |
| | | @TableField("target_position_issue") |
| | | private String targetPositionIssue; |
| | | |
| | | /** |
| | | * 走行变频器异常 |
| | | */ |
| | | @ApiModelProperty(value= "走行变频器异常") |
| | | @TableField("travel_inverter_error") |
| | | private String travelInverterError; |
| | | |
| | | /** |
| | | * 1号光电异常 |
| | | */ |
| | | @ApiModelProperty(value= "1号光电异常") |
| | | @TableField("photoelectric_1_error") |
| | | private String photoelectric1Error; |
| | | |
| | | /** |
| | | * 2号光电异常 |
| | | */ |
| | | @ApiModelProperty(value= "2号光电异常") |
| | | @TableField("photoelectric_2_error") |
| | | private String photoelectric2Error; |
| | | |
| | | /** |
| | | * 与输线时接超时 |
| | | */ |
| | | @ApiModelProperty(value= "与输线时接超时") |
| | | @TableField("timeout_connection_with_line") |
| | | private String timeoutConnectionWithLine; |
| | | |
| | | /** |
| | | * 左侧滚筒运行超时 |
| | | */ |
| | | @ApiModelProperty(value= "左侧滚筒运行超时") |
| | | @TableField("left_roller_timeout") |
| | | private String leftRollerTimeout; |
| | | |
| | | /** |
| | | * 右侧滚筒运行超时 |
| | | */ |
| | | @ApiModelProperty(value= "右侧滚筒运行超时") |
| | | @TableField("right_roller_timeout") |
| | | private String rightRollerTimeout; |
| | | |
| | | /** |
| | | * rgv运行超时 |
| | | */ |
| | | @ApiModelProperty(value= "rgv运行超时") |
| | | @TableField("rgv_run_timeout") |
| | | private String rgvRunTimeout; |
| | | |
| | | /** |
| | | * 1号工位链条变频器异常 |
| | | */ |
| | | @ApiModelProperty(value= "1号工位链条变频器异常") |
| | | @TableField("position_1_chain_inverter_error") |
| | | private String position1ChainInverterError; |
| | | |
| | | /** |
| | | * 2号工位链条变频器异常 |
| | | */ |
| | | @ApiModelProperty(value= "2号工位链条变频器异常") |
| | | @TableField("position_2_chain_inverter_error") |
| | | private String position2ChainInverterError; |
| | | |
| | | /** |
| | | * 前后极限位 |
| | | */ |
| | | @ApiModelProperty(value= "前后极限位") |
| | | @TableField("front_rear_limit") |
| | | private String frontRearLimit; |
| | | |
| | | /** |
| | | * 急停按钮 |
| | | */ |
| | | @ApiModelProperty(value= "急停按钮") |
| | | @TableField("emergency_button") |
| | | private String emergencyButton; |
| | | |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @ApiModelProperty(value= "创建时间") |
| | | @TableField("create_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 急停按钮 |
| | | */ |
| | | @ApiModelProperty(value= "急停按钮") |
| | | @TableField("forward_button") |
| | | private String forwardButton; |
| | | |
| | | /** |
| | | * 后退按钮 |
| | | */ |
| | | @ApiModelProperty(value= "后退按钮") |
| | | @TableField("reverse_button") |
| | | private String reverseButton; |
| | | |
| | | /** |
| | | * 本地/远程 |
| | | */ |
| | | @ApiModelProperty(value= "本地/远程") |
| | | @TableField("local_remote") |
| | | private String localRemote; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | | /** |
| | | * 复位 |
| | | */ |
| | | @ApiModelProperty(value= "复位") |
| | | private String reset; |
| | | |
| | | /** |
| | | * 走行抱闸开关钮 |
| | | */ |
| | | @ApiModelProperty(value= "走行抱闸开关钮") |
| | | @TableField("travel_brake_switch") |
| | | private String travelBrakeSwitch; |
| | | |
| | | /** |
| | | * 走行强制减速光电 |
| | | */ |
| | | @ApiModelProperty(value= "走行强制减速光电") |
| | | @TableField("travel_speed_limit_photoelectric") |
| | | private String travelSpeedLimitPhotoelectric; |
| | | |
| | | /** |
| | | * 左超限 1 |
| | | */ |
| | | @ApiModelProperty(value= "左超限 1") |
| | | @TableField("left_overlimit_1") |
| | | private String leftOverlimit1; |
| | | |
| | | /** |
| | | * 右超限 1 |
| | | */ |
| | | @ApiModelProperty(value= "右超限 1") |
| | | @TableField("right_overlimit_1") |
| | | private String rightOverlimit1; |
| | | |
| | | /** |
| | | * 左到位 1 |
| | | */ |
| | | @ApiModelProperty(value= "左到位 1") |
| | | @TableField("left_at_position_1") |
| | | private String leftAtPosition1; |
| | | |
| | | /** |
| | | * 右到位 1 |
| | | */ |
| | | @ApiModelProperty(value= "右到位 1") |
| | | @TableField("right_at_position_1") |
| | | private String rightAtPosition1; |
| | | |
| | | /** |
| | | * 链条前进 1 |
| | | */ |
| | | @ApiModelProperty(value= "链条前进 1") |
| | | @TableField("chain_forward_1") |
| | | private String chainForward1; |
| | | |
| | | /** |
| | | * 链条后退 1 |
| | | */ |
| | | @ApiModelProperty(value= "链条后退 1") |
| | | @TableField("chain_reverse_1") |
| | | private String chainReverse1; |
| | | |
| | | /** |
| | | * 变频器报警 |
| | | */ |
| | | @ApiModelProperty(value= "变频器报警") |
| | | @TableField("inverter_alarm") |
| | | private String inverterAlarm; |
| | | |
| | | /** |
| | | * 左超限 2 |
| | | */ |
| | | @ApiModelProperty(value= "左超限 2") |
| | | @TableField("left_overlimit_2") |
| | | private String leftOverlimit2; |
| | | |
| | | /** |
| | | * 右超限 2 |
| | | */ |
| | | @ApiModelProperty(value= "右超限 2") |
| | | @TableField("right_overlimit_2") |
| | | private String rightOverlimit2; |
| | | |
| | | /** |
| | | * 左到位 2 |
| | | */ |
| | | @ApiModelProperty(value= "左到位 2") |
| | | @TableField("left_at_position_2") |
| | | private String leftAtPosition2; |
| | | |
| | | /** |
| | | * 右到位 2 |
| | | */ |
| | | @ApiModelProperty(value= "右到位 2") |
| | | @TableField("right_at_position_2") |
| | | private String rightAtPosition2; |
| | | |
| | | /** |
| | | * 货物减速 |
| | | */ |
| | | @ApiModelProperty(value= "货物减速") |
| | | @TableField("cargo_speed_reduction") |
| | | private String cargoSpeedReduction; |
| | | |
| | | /** |
| | | * 输送变频器报警 2 |
| | | */ |
| | | @ApiModelProperty(value= "输送变频器报警 2") |
| | | @TableField("conveyor_inverter_alarm_2") |
| | | private String conveyorInverterAlarm2; |
| | | |
| | | /** |
| | | * 左输送 2 |
| | | */ |
| | | @ApiModelProperty(value= "左输送 2") |
| | | @TableField("left_conveyor_2") |
| | | private String leftConveyor2; |
| | | |
| | | /** |
| | | * 右输送 2 |
| | | */ |
| | | @ApiModelProperty(value= "右输送 2") |
| | | @TableField("right_conveyor_2") |
| | | private String rightConveyor2; |
| | | |
| | | public BasRgvErrorLog() {} |
| | | |
| | | public BasRgvErrorLog(Integer rgvNo,String emergencyStop,String slot1EmptyNoData,String slot2EmptyNoData,String commandErrorChainConflict,String targetPositionIssue,String travelInverterError,String photoelectric1Error,String photoelectric2Error,String timeoutConnectionWithLine,String leftRollerTimeout,String rightRollerTimeout,String rgvRunTimeout,String position1ChainInverterError,String position2ChainInverterError,String frontRearLimit,String emergencyButton,Date createTime,String forwardButton,String reverseButton,String localRemote,String reset,String travelBrakeSwitch,String travelSpeedLimitPhotoelectric,String leftOverlimit1,String rightOverlimit1,String leftAtPosition1,String rightAtPosition1,String chainForward1,String chainReverse1,String inverterAlarm,String leftOverlimit2,String rightOverlimit2,String leftAtPosition2,String rightAtPosition2,String cargoSpeedReduction,String conveyorInverterAlarm2,String leftConveyor2,String rightConveyor2) { |
| | | this.rgvNo = rgvNo; |
| | | this.emergencyStop = emergencyStop; |
| | | this.slot1EmptyNoData = slot1EmptyNoData; |
| | | this.slot2EmptyNoData = slot2EmptyNoData; |
| | | this.commandErrorChainConflict = commandErrorChainConflict; |
| | | this.targetPositionIssue = targetPositionIssue; |
| | | this.travelInverterError = travelInverterError; |
| | | this.photoelectric1Error = photoelectric1Error; |
| | | this.photoelectric2Error = photoelectric2Error; |
| | | this.timeoutConnectionWithLine = timeoutConnectionWithLine; |
| | | this.leftRollerTimeout = leftRollerTimeout; |
| | | this.rightRollerTimeout = rightRollerTimeout; |
| | | this.rgvRunTimeout = rgvRunTimeout; |
| | | this.position1ChainInverterError = position1ChainInverterError; |
| | | this.position2ChainInverterError = position2ChainInverterError; |
| | | this.frontRearLimit = frontRearLimit; |
| | | this.emergencyButton = emergencyButton; |
| | | this.createTime = createTime; |
| | | this.forwardButton = forwardButton; |
| | | this.reverseButton = reverseButton; |
| | | this.localRemote = localRemote; |
| | | this.reset = reset; |
| | | this.travelBrakeSwitch = travelBrakeSwitch; |
| | | this.travelSpeedLimitPhotoelectric = travelSpeedLimitPhotoelectric; |
| | | this.leftOverlimit1 = leftOverlimit1; |
| | | this.rightOverlimit1 = rightOverlimit1; |
| | | this.leftAtPosition1 = leftAtPosition1; |
| | | this.rightAtPosition1 = rightAtPosition1; |
| | | this.chainForward1 = chainForward1; |
| | | this.chainReverse1 = chainReverse1; |
| | | this.inverterAlarm = inverterAlarm; |
| | | this.leftOverlimit2 = leftOverlimit2; |
| | | this.rightOverlimit2 = rightOverlimit2; |
| | | this.leftAtPosition2 = leftAtPosition2; |
| | | this.rightAtPosition2 = rightAtPosition2; |
| | | this.cargoSpeedReduction = cargoSpeedReduction; |
| | | this.conveyorInverterAlarm2 = conveyorInverterAlarm2; |
| | | this.leftConveyor2 = leftConveyor2; |
| | | this.rightConveyor2 = rightConveyor2; |
| | | } |
| | | |
| | | // BasRgvErrorLog basRgvErrorLog = new BasRgvErrorLog( |
| | | // null, // 编号 |
| | | // null, // 急停触发 |
| | | // null, // 1号位有物无资料 |
| | | // null, // 2号位有物无资料 |
| | | // null, // 命令错误走链条冲突 |
| | | // null, // 目标位下发错误 |
| | | // null, // 走行变频器异常 |
| | | // null, // 1号光电异常 |
| | | // null, // 2号光电异常 |
| | | // null, // 与输线时接超时 |
| | | // null, // 左侧滚筒运行超时 |
| | | // null, // 右侧滚筒运行超时 |
| | | // null, // rgv运行超时 |
| | | // null, // 1号工位链条变频器异常 |
| | | // null, // 2号工位链条变频器异常 |
| | | // null, // 前后极限位 |
| | | // null, // 急停按钮 |
| | | // null, // 创建时间 |
| | | // null, // 急停按钮 |
| | | // null, // 后退按钮 |
| | | // null, // 本地/远程 |
| | | // null, // 复位 |
| | | // null, // 走行抱闸开关钮 |
| | | // null, // 走行强制减速光电 |
| | | // null, // 左超限 1 |
| | | // null, // 右超限 1 |
| | | // null, // 左到位 1 |
| | | // null, // 右到位 1 |
| | | // null, // 链条前进 1 |
| | | // null, // 链条后退 1 |
| | | // null, // 变频器报警 |
| | | // null, // 左超限 2 |
| | | // null, // 右超限 2 |
| | | // null, // 左到位 2 |
| | | // null, // 右到位 2 |
| | | // null, // 货物减速 |
| | | // null, // 输送变频器报警 2 |
| | | // null, // 左输送 2 |
| | | // null // 右输送 2 |
| | | // ); |
| | | |
| | | public String getCreateTime$(){ |
| | | if (Cools.isEmpty(this.createTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); |
| | | } |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasCrnErrorLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface BasCrnErrorLogMapper extends BaseMapper<BasCrnErrorLog> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.mapper; |
| | | |
| | | import com.zy.asrs.entity.BasRgvErrorLog; |
| | | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | | @Mapper |
| | | @Repository |
| | | public interface BasRgvErrorLogMapper extends BaseMapper<BasRgvErrorLog> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasCrnErrorLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | public interface BasCrnErrorLogService extends IService<BasCrnErrorLog> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service; |
| | | |
| | | import com.zy.asrs.entity.BasRgvErrorLog; |
| | | import com.baomidou.mybatisplus.service.IService; |
| | | |
| | | public interface BasRgvErrorLogService extends IService<BasRgvErrorLog> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.BasCrnErrorLogMapper; |
| | | import com.zy.asrs.entity.BasCrnErrorLog; |
| | | import com.zy.asrs.service.BasCrnErrorLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("basCrnErrorLogService") |
| | | public class BasCrnErrorLogServiceImpl extends ServiceImpl<BasCrnErrorLogMapper, BasCrnErrorLog> implements BasCrnErrorLogService { |
| | | |
| | | } |
| New file |
| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.zy.asrs.mapper.BasRgvErrorLogMapper; |
| | | import com.zy.asrs.entity.BasRgvErrorLog; |
| | | import com.zy.asrs.service.BasRgvErrorLogService; |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service("basRgvErrorLogService") |
| | | public class BasRgvErrorLogServiceImpl extends ServiceImpl<BasRgvErrorLogMapper, BasRgvErrorLog> implements BasRgvErrorLogService { |
| | | |
| | | } |
| | |
| | | generator.url="10.10.10.235:1433;databasename=jshdasrs"; |
| | | generator.username="sa"; |
| | | generator.password="sa@123"; |
| | | generator.table="asr_bas_devp_error_log"; |
| | | generator.table="asr_bas_rgv_error_log"; |
| | | generator.packagePath="com.zy.asrs"; |
| | | generator.build(); |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.mapper.BasCrnErrorLogMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasCrnErrorLog"> |
| | | <result column="crn_no" property="crnNo" /> |
| | | <result column="ib_drive_fault" property="ibDriveFault" /> |
| | | <result column="ib_supply_fault" property="ibSupplyFault" /> |
| | | <result column="ib_fork_drive_fault" property="ibForkDriveFault" /> |
| | | <result column="ib_drive_circuit_fault" property="ibDriveCircuitFault" /> |
| | | <result column="ib_lift_circuit_fault" property="ibLiftCircuitFault" /> |
| | | <result column="ib_fork_circuit_fault" property="ibForkCircuitFault" /> |
| | | <result column="ib_forward_limit" property="ibForwardLimit" /> |
| | | <result column="ib_reverse_limit" property="ibReverseLimit" /> |
| | | <result column="ib_drive_start" property="ibDriveStart" /> |
| | | <result column="ib_forward_brake_speed" property="ibForwardBrakeSpeed" /> |
| | | <result column="ib_reverse_brake_speed" property="ibReverseBrakeSpeed" /> |
| | | <result column="ib_up_limit" property="ibUpLimit" /> |
| | | <result column="ib_down_limit" property="ibDownLimit" /> |
| | | <result column="ib_up_origin" property="ibUpOrigin" /> |
| | | <result column="ib_up_brake_speed" property="ibUpBrakeSpeed" /> |
| | | <result column="ib_down_brake_speed" property="ibDownBrakeSpeed" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="ib_platform_signal" property="ibPlatformSignal" /> |
| | | <result column="ib_fork_mid_signal" property="ibForkMidSignal" /> |
| | | <result column="ib_fork_left_limit" property="ibForkLeftLimit" /> |
| | | <result column="id" property="id" /> |
| | | <result column="ib_fork_right_limit" property="ibForkRightLimit" /> |
| | | <result column="ib_front_over_limit" property="ibFrontOverLimit" /> |
| | | <result column="ib_rear_over_limit" property="ibRearOverLimit" /> |
| | | <result column="ib_left_over_limit" property="ibLeftOverLimit" /> |
| | | <result column="ib_right_over_limit" property="ibRightOverLimit" /> |
| | | <result column="ib_high_over_limit_1" property="ibHighOverLimit1" /> |
| | | <result column="ib_high_over_limit_2" property="ibHighOverLimit2" /> |
| | | <result column="ib_high_over_limit_3" property="ibHighOverLimit3" /> |
| | | <result column="ib_one_extend_left_load_1" property="ibOneExtendLeftLoad1" /> |
| | | <result column="ib_one_extend_left_load_2" property="ibOneExtendLeftLoad2" /> |
| | | <result column="ib_one_extend_right_load_1" property="ibOneExtendRightLoad1" /> |
| | | <result column="ib_one_extend_right_load_2" property="ibOneExtendRightLoad2" /> |
| | | <result column="ib_two_extend_left_load_1" property="ibTwoExtendLeftLoad1" /> |
| | | <result column="ib_two_extend_left_load_2" property="ibTwoExtendLeftLoad2" /> |
| | | <result column="ib_two_extend_right_load_1" property="ibTwoExtendRightLoad1" /> |
| | | <result column="ib_two_extend_right_load_2" property="ibTwoExtendRightLoad2" /> |
| | | <result column="ib_speed_signal_1" property="ibSpeedSignal1" /> |
| | | <result column="ib_speed_signal_2" property="ibSpeedSignal2" /> |
| | | <result column="ib_overweight_signal_1" property="ibOverweightSignal1" /> |
| | | <result column="ib_overweight_signal_2" property="ibOverweightSignal2" /> |
| | | <result column="ib_rope_release_signal_1" property="ibRopeReleaseSignal1" /> |
| | | <result column="ib_rope_release_signal_2" property="ibRopeReleaseSignal2" /> |
| | | <result column="ib_safety_clamp" property="ibSafetyClamp" /> |
| | | <result column="ib_tightener" property="ibTightener" /> |
| | | <result column="ib_speed_limiter" property="ibSpeedLimiter" /> |
| | | <result column="ib_safety_door_open" property="ibSafetyDoorOpen" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
| | |
| | | <result column="out_enable" property="outEnable" /> |
| | | <result column="data_error" property="dataError" /> |
| | | <result column="id" property="id" /> |
| | | <result column="sensorG_arrive" property="sensorGArrive" /> |
| | | <result column="sensorG_dec" property="sensorGDec" /> |
| | | <result column="sensorG_arrive2" property="sensorGArrive2" /> |
| | | <result column="sensor_limit" property="sensorLimit" /> |
| | | <result column="emergency" property="emergency" /> |
| | | <result column="sensorG_leave" property="sensorGLeave" /> |
| | | <result column="sensorG_leave2" property="sensorGLeave2" /> |
| | | <result column="sensorC_up" property="sensorCUp" /> |
| | | <result column="sensorC_down" property="sensorCDown" /> |
| | | <result column="lift_motor_fr" property="liftMotorFr" /> |
| | | <result column="line_motor_fr" property="lineMotorFr" /> |
| | | <result column="tran_motor_fr" property="tranMotorFr" /> |
| | | <result column="rst1" property="rst1" /> |
| | | <result column="rst2" property="rst2" /> |
| | | <result column="rst3" property="rst3" /> |
| | | <result column="rst4" property="rst4" /> |
| | | <result column="sensor_arrive_d" property="sensorArriveD" /> |
| | | <result column="sensor_dec_d" property="sensorDecD" /> |
| | | <result column="sensor_arrive_l" property="sensorArriveL" /> |
| | | <result column="sensor_dec_l" property="sensorDecL" /> |
| | | <result column="sensor_arrive_r" property="sensorArriveR" /> |
| | | <result column="sensor_dec_r" property="sensorDecR" /> |
| | | |
| | | </resultMap> |
| | | |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.zy.asrs.mapper.BasRgvErrorLogMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.zy.asrs.entity.BasRgvErrorLog"> |
| | | <result column="rgv_no" property="rgvNo" /> |
| | | <result column="emergency_stop" property="emergencyStop" /> |
| | | <result column="slot_1_empty_no_data" property="slot1EmptyNoData" /> |
| | | <result column="slot_2_empty_no_data" property="slot2EmptyNoData" /> |
| | | <result column="command_error_chain_conflict" property="commandErrorChainConflict" /> |
| | | <result column="target_position_issue" property="targetPositionIssue" /> |
| | | <result column="travel_inverter_error" property="travelInverterError" /> |
| | | <result column="photoelectric_1_error" property="photoelectric1Error" /> |
| | | <result column="photoelectric_2_error" property="photoelectric2Error" /> |
| | | <result column="timeout_connection_with_line" property="timeoutConnectionWithLine" /> |
| | | <result column="left_roller_timeout" property="leftRollerTimeout" /> |
| | | <result column="right_roller_timeout" property="rightRollerTimeout" /> |
| | | <result column="rgv_run_timeout" property="rgvRunTimeout" /> |
| | | <result column="position_1_chain_inverter_error" property="position1ChainInverterError" /> |
| | | <result column="position_2_chain_inverter_error" property="position2ChainInverterError" /> |
| | | <result column="front_rear_limit" property="frontRearLimit" /> |
| | | <result column="emergency_button" property="emergencyButton" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="forward_button" property="forwardButton" /> |
| | | <result column="reverse_button" property="reverseButton" /> |
| | | <result column="local_remote" property="localRemote" /> |
| | | <result column="id" property="id" /> |
| | | <result column="reset" property="reset" /> |
| | | <result column="travel_brake_switch" property="travelBrakeSwitch" /> |
| | | <result column="travel_speed_limit_photoelectric" property="travelSpeedLimitPhotoelectric" /> |
| | | <result column="left_overlimit_1" property="leftOverlimit1" /> |
| | | <result column="right_overlimit_1" property="rightOverlimit1" /> |
| | | <result column="left_at_position_1" property="leftAtPosition1" /> |
| | | <result column="right_at_position_1" property="rightAtPosition1" /> |
| | | <result column="chain_forward_1" property="chainForward1" /> |
| | | <result column="chain_reverse_1" property="chainReverse1" /> |
| | | <result column="inverter_alarm" property="inverterAlarm" /> |
| | | <result column="left_overlimit_2" property="leftOverlimit2" /> |
| | | <result column="right_overlimit_2" property="rightOverlimit2" /> |
| | | <result column="left_at_position_2" property="leftAtPosition2" /> |
| | | <result column="right_at_position_2" property="rightAtPosition2" /> |
| | | <result column="cargo_speed_reduction" property="cargoSpeedReduction" /> |
| | | <result column="conveyor_inverter_alarm_2" property="conveyorInverterAlarm2" /> |
| | | <result column="left_conveyor_2" property="leftConveyor2" /> |
| | | <result column="right_conveyor_2" property="rightConveyor2" /> |
| | | |
| | | </resultMap> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | var pageCurr; |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).use(['table','laydate', 'form', 'admin'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | | elem: '#basCrnErrorLog', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/basCrnErrorLog/list/auth', |
| | | page: true, |
| | | limit: 15, |
| | | limits: [15, 30, 50, 100, 200, 500], |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'crnNo', align: 'center',title: '编号'} |
| | | ,{field: 'ibDriveFault', align: 'center',title: '行走变频器故障'} |
| | | ,{field: 'ibSupplyFault', align: 'center',title: '提共变频器故障'} |
| | | ,{field: 'ibForkDriveFault', align: 'center',title: '货叉变频器故障'} |
| | | ,{field: 'ibDriveCircuitFault', align: 'center',title: '行走断路器故障'} |
| | | ,{field: 'ibLiftCircuitFault', align: 'center',title: '提升断路器故障'} |
| | | ,{field: 'ibForkCircuitFault', align: 'center',title: '货叉断路器故障'} |
| | | ,{field: 'ibForwardLimit', align: 'center',title: '前进限位',hide:true} |
| | | ,{field: 'ibReverseLimit', align: 'center',title: '后退限位',hide:true} |
| | | ,{field: 'ibDriveStart', align: 'center',title: '行走原点',hide:true} |
| | | ,{field: 'ibForwardBrakeSpeed', align: 'center',title: '前进强制低速',hide:true} |
| | | ,{field: 'ibReverseBrakeSpeed', align: 'center',title: '后退强制低速',hide:true} |
| | | ,{field: 'ibUpLimit', align: 'center',title: '上升限位',hide:true} |
| | | ,{field: 'ibDownLimit', align: 'center',title: '下限限位',hide:true} |
| | | ,{field: 'ibUpOrigin', align: 'center',title: '提升原点',hide:true} |
| | | ,{field: 'ibUpBrakeSpeed', align: 'center',title: '上升强制低速',hide:true} |
| | | ,{field: 'ibDownBrakeSpeed', align: 'center',title: '下降强制低速',hide:true} |
| | | ,{field: 'ibPlatformSignal', align: 'center',title: '载货台探货'} |
| | | ,{field: 'ibForkMidSignal', align: 'center',title: '货叉中位信号'} |
| | | ,{field: 'ibForkLeftLimit', align: 'center',title: '货叉左极限'} |
| | | // ,{field: 'id', align: 'center',title: ''} |
| | | ,{field: 'ibForkRightLimit', align: 'center',title: '货叉右极限'} |
| | | ,{field: 'ibFrontOverLimit', align: 'center',title: '前超限'} |
| | | ,{field: 'ibRearOverLimit', align: 'center',title: '后超限'} |
| | | ,{field: 'ibLeftOverLimit', align: 'center',title: '左超限'} |
| | | ,{field: 'ibRightOverLimit', align: 'center',title: '右超限'} |
| | | ,{field: 'ibHighOverLimit1', align: 'center',title: '高超限1'} |
| | | ,{field: 'ibHighOverLimit2', align: 'center',title: '高超限2'} |
| | | ,{field: 'ibHighOverLimit3', align: 'center',title: '高超限3'} |
| | | ,{field: 'ibOneExtendLeftLoad1', align: 'center',title: '一伸左侧探货1',hide:true} |
| | | ,{field: 'ibOneExtendLeftLoad2', align: 'center',title: '一伸左侧探货2',hide:true} |
| | | ,{field: 'ibOneExtendRightLoad1', align: 'center',title: '一伸右侧探货1',hide:true} |
| | | ,{field: 'ibOneExtendRightLoad2', align: 'center',title: '一伸右侧探货2',hide:true} |
| | | ,{field: 'ibTwoExtendLeftLoad1', align: 'center',title: '二伸左侧探货1',hide:true} |
| | | ,{field: 'ibTwoExtendLeftLoad2', align: 'center',title: '二伸左侧探货2',hide:true} |
| | | ,{field: 'ibTwoExtendRightLoad1', align: 'center',title: '二伸右侧探货1',hide:true} |
| | | ,{field: 'ibTwoExtendRightLoad2', align: 'center',title: '二伸右侧探货2',hide:true} |
| | | ,{field: 'ibSpeedSignal1', align: 'center',title: '超速信号1',hide:true} |
| | | ,{field: 'ibSpeedSignal2', align: 'center',title: '超速信号2',hide:true} |
| | | ,{field: 'ibOverweightSignal1', align: 'center',title: '超重信号1',hide:true} |
| | | ,{field: 'ibOverweightSignal2', align: 'center',title: '超重信号2',hide:true} |
| | | ,{field: 'ibRopeReleaseSignal1', align: 'center',title: '松绳信号1',hide:true} |
| | | ,{field: 'ibRopeReleaseSignal2', align: 'center',title: '松绳信号2',hide:true} |
| | | ,{field: 'ibSafetyClamp', align: 'center',title: '安全钳',hide:true} |
| | | ,{field: 'ibTightener', align: 'center',title: '张紧器',hide:true} |
| | | ,{field: 'ibSpeedLimiter', align: 'center',title: '限速器',hide:true} |
| | | ,{field: 'ibSafetyDoorOpen', align: 'center',title: '安全门打开',hide:true} |
| | | ,{field: 'createTime$', align: 'center',title: '创建时间'} |
| | | |
| | | |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | | 'count': res.data.total, |
| | | 'data': res.data.records |
| | | } |
| | | }, |
| | | response: { |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | | } |
| | | }); |
| | | |
| | | // 监听排序事件 |
| | | table.on('sort(basCrnErrorLog)', function (obj) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | searchData['orderByField'] = obj.field; |
| | | searchData['orderByType'] = obj.type; |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: 1} |
| | | }); |
| | | }); |
| | | |
| | | // 监听头工具栏事件 |
| | | table.on('toolbar(basCrnErrorLog)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id).data; |
| | | switch(obj.event) { |
| | | case 'addData': |
| | | showEditModel(); |
| | | break; |
| | | case 'deleteData': |
| | | if (checkStatus.length === 0) { |
| | | layer.msg('请选择要删除的数据', {icon: 2}); |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | | return d.id; |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | | var fields=[]; |
| | | obj.config.cols[0].map(function (col) { |
| | | if (col.type === 'normal' && col.hide === false && col.toolbar == null) { |
| | | titles.push(col.title); |
| | | fields.push(col.field); |
| | | } |
| | | }); |
| | | var exportData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | exportData[this.name] = this.value; |
| | | }); |
| | | var param = { |
| | | 'basCrnErrorLog': exportData, |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: baseUrl+"/basCrnErrorLog/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.closeAll(); |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | // 监听行工具事件 |
| | | table.on('tool(basCrnErrorLog)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | | case 'edit': |
| | | showEditModel(data); |
| | | break; |
| | | case "del": |
| | | del([data.id]); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |
| | | form.val('detail', mData); |
| | | form.on('submit(editSubmit)', function (data) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/basCrnErrorLog/"+(mData?'update':'add')+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | layui.form.render('select'); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /* 删除 */ |
| | | function del(ids) { |
| | | layer.confirm('确定要删除选中数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/basCrnErrorLog/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: ids}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | // 搜索 |
| | | form.on('submit(search)', function (data) { |
| | | pageCurr = 1; |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 重置 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | | function layDateRender(data) { |
| | | setTimeout(function () { |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'datetime' |
| | | ,range: true |
| | | }); |
| | | layDate.render({ |
| | | elem: '#createTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['createTime\\$']:null |
| | | }); |
| | | |
| | | }, 300); |
| | | } |
| | | layDateRender(); |
| | | |
| | | }); |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |
| | | }); |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: pageCurr} |
| | | }); |
| | | } |
| | |
| | | ,{field: 'dmfrError', align: 'center',title: '顶升横移电机热继报警'} |
| | | ,{field: 'vfdError', align: 'center',title: '变频故障'} |
| | | ,{field: 'srvError', align: 'center',title: '伺服故障'} |
| | | ,{field: 'res1', align: 'center',title: '预留1',hide: true} |
| | | ,{field: 'res2', align: 'center',title: '预留2',hide: true} |
| | | ,{field: 'res3', align: 'center',title: '预留3',hide: true} |
| | | ,{field: 'res1', align: 'center',title: '预留1',hide:true} |
| | | ,{field: 'res2', align: 'center',title: '预留2',hide:true} |
| | | ,{field: 'res3', align: 'center',title: '预留3',hide:true} |
| | | ,{field: 'communicationTimeOut', align: 'center',title: '与上位机通讯超时'} |
| | | ,{field: 'parameterIncompleteError', align: 'center',title: '信息参数不全'} |
| | | ,{field: 'dataNotClear', align: 'center',title: '信息数据未清除'} |
| | | ,{field: 'setParameterError', align: 'center',title: '参数设置报警'} |
| | | ,{field: 'inEnable', align: 'center',title: '',hide: true} |
| | | ,{field: 'outEnable', align: 'center',title: '',hide: true} |
| | | ,{field: 'dataError', align: 'center',title: '数据错误'} |
| | | ,{field: 'createTime$', align: 'center',title: '创建时间'} |
| | | // ,{field: 'inEnable', align: 'center',title: '',hide:true} |
| | | // ,{field: 'outEnable', align: 'center',title: '',hide:true} |
| | | ,{field: 'dataError', align: 'center',title: '数据错误'} |
| | | // ,{field: 'id', align: 'center',title: '',hide:true} |
| | | ,{field: 'sensorGArrive', align: 'center',title: '直线光电',hide:true} |
| | | ,{field: 'sensorGDec', align: 'center',title: '减速光电',hide:true} |
| | | ,{field: 'sensorGArrive2', align: 'center',title: '直线凸出',hide:true} |
| | | ,{field: 'sensorLimit', align: 'center',title: '限位保护光电',hide:true} |
| | | ,{field: 'emergency', align: 'center',title: '急停',hide:true} |
| | | ,{field: 'sensorGLeave', align: 'center',title: '光电离开1',hide:true} |
| | | ,{field: 'sensorGLeave2', align: 'center',title: '光电离开2',hide:true} |
| | | ,{field: 'sensorCUp', align: 'center',title: '顶升上升',hide:true} |
| | | ,{field: 'sensorCDown', align: 'center',title: '顶升下降',hide:true} |
| | | ,{field: 'liftMotorFr', align: 'center',title: '顶升热继',hide:true} |
| | | ,{field: 'lineMotorFr', align: 'center',title: '直线热继',hide:true} |
| | | ,{field: 'tranMotorFr', align: 'center',title: '移栽热继',hide:true} |
| | | ,{field: 'rst1', align: 'center',title: '备用1',hide:true} |
| | | ,{field: 'rst2', align: 'center',title: '备用2',hide:true} |
| | | ,{field: 'rst3', align: 'center',title: '备用3',hide:true} |
| | | ,{field: 'rst4', align: 'center',title: '备用4',hide:true} |
| | | ,{field: 'sensorArriveD', align: 'center',title: '直行方向到位',hide:true} |
| | | ,{field: 'sensorDecD', align: 'center',title: '直行方向减速',hide:true} |
| | | ,{field: 'sensorArriveL', align: 'center',title: '左移方向到位',hide:true} |
| | | ,{field: 'sensorDecL', align: 'center',title: '左移方向减速',hide:true} |
| | | ,{field: 'sensorArriveR', align: 'center',title: '右移方向到位',hide:true} |
| | | ,{field: 'sensorDecR', align: 'center',title: '右移方向减速',hide:true} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120,hide: true} |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | ,{field: 'rightErr', align: 'center',title: '右超限'} |
| | | ,{field: 'barcodeErr', align: 'center',title: '扫码失败'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| New file |
| | |
| | | var pageCurr; |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).use(['table','laydate', 'form', 'admin'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | var admin = layui.admin; |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | | elem: '#basRgvErrorLog', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/basRgvErrorLog/list/auth', |
| | | page: true, |
| | | limit: 15, |
| | | limits: [15, 30, 50, 100, 200, 500], |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'rgvNo', align: 'center',title: '编号'} |
| | | ,{field: 'emergencyStop', align: 'center',title: '急停触发'} |
| | | ,{field: 'slot1EmptyNoData', align: 'center',title: '1号位有物无资料'} |
| | | ,{field: 'slot2EmptyNoData', align: 'center',title: '2号位有物无资料'} |
| | | ,{field: 'commandErrorChainConflict', align: 'center',title: '命令错误走链条冲突'} |
| | | ,{field: 'targetPositionIssue', align: 'center',title: '目标位下发错误'} |
| | | ,{field: 'travelInverterError', align: 'center',title: '走行变频器异常'} |
| | | ,{field: 'photoelectric1Error', align: 'center',title: '1号光电异常'} |
| | | ,{field: 'photoelectric2Error', align: 'center',title: '2号光电异常'} |
| | | ,{field: 'timeoutConnectionWithLine', align: 'center',title: '与输线时接超时'} |
| | | ,{field: 'leftRollerTimeout', align: 'center',title: '左侧滚筒运行超时'} |
| | | ,{field: 'rightRollerTimeout', align: 'center',title: '右侧滚筒运行超时'} |
| | | ,{field: 'rgvRunTimeout', align: 'center',title: 'rgv运行超时'} |
| | | ,{field: 'position1ChainInverterError', align: 'center',title: '1号工位链条变频器异常'} |
| | | ,{field: 'position2ChainInverterError', align: 'center',title: '2号工位链条变频器异常'} |
| | | ,{field: 'frontRearLimit', align: 'center',title: '前后极限位'} |
| | | ,{field: 'emergencyButton', align: 'center',title: '急停按钮',hide:true} |
| | | ,{field: 'forwardButton', align: 'center',title: '急停按钮',hide:true} |
| | | ,{field: 'reverseButton', align: 'center',title: '后退按钮',hide:true} |
| | | ,{field: 'localRemote', align: 'center',title: '本地/远程',hide:true} |
| | | // ,{field: 'id', align: 'center',title: ''} |
| | | ,{field: 'reset', align: 'center',title: '复位',hide:true} |
| | | ,{field: 'travelBrakeSwitch', align: 'center',title: '走行抱闸开关钮',hide:true} |
| | | ,{field: 'travelSpeedLimitPhotoelectric', align: 'center',title: '走行强制减速光电'} |
| | | ,{field: 'leftOverlimit1', align: 'center',title: '左超限 1'} |
| | | ,{field: 'rightOverlimit1', align: 'center',title: '右超限 1'} |
| | | ,{field: 'leftAtPosition1', align: 'center',title: '左到位 1',hide:true} |
| | | ,{field: 'rightAtPosition1', align: 'center',title: '右到位 1',hide:true} |
| | | ,{field: 'chainForward1', align: 'center',title: '链条前进 1',hide:true} |
| | | ,{field: 'chainReverse1', align: 'center',title: '链条后退 1',hide:true} |
| | | ,{field: 'inverterAlarm', align: 'center',title: '变频器报警'} |
| | | ,{field: 'leftOverlimit2', align: 'center',title: '左超限 2'} |
| | | ,{field: 'rightOverlimit2', align: 'center',title: '右超限 2'} |
| | | ,{field: 'leftAtPosition2', align: 'center',title: '左到位 2',hide:true} |
| | | ,{field: 'rightAtPosition2', align: 'center',title: '右到位 2',hide:true} |
| | | ,{field: 'cargoSpeedReduction', align: 'center',title: '货物减速',hide:true} |
| | | ,{field: 'conveyorInverterAlarm2', align: 'center',title: '输送变频器报警 2',hide:true} |
| | | ,{field: 'leftConveyor2', align: 'center',title: '左输送 2',hide:true} |
| | | ,{field: 'rightConveyor2', align: 'center',title: '右输送 2',hide:true} |
| | | ,{field: 'createTime$', align: 'center',title: '创建时间'} |
| | | |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | | pageSize: 'limit' |
| | | }, |
| | | parseData: function (res) { |
| | | return { |
| | | 'code': res.code, |
| | | 'msg': res.msg, |
| | | 'count': res.data.total, |
| | | 'data': res.data.records |
| | | } |
| | | }, |
| | | response: { |
| | | statusCode: 200 |
| | | }, |
| | | done: function(res, curr, count) { |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | pageCurr=curr; |
| | | limit(); |
| | | } |
| | | }); |
| | | |
| | | // 监听排序事件 |
| | | table.on('sort(basRgvErrorLog)', function (obj) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | searchData['orderByField'] = obj.field; |
| | | searchData['orderByType'] = obj.type; |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: 1} |
| | | }); |
| | | }); |
| | | |
| | | // 监听头工具栏事件 |
| | | table.on('toolbar(basRgvErrorLog)', function (obj) { |
| | | var checkStatus = table.checkStatus(obj.config.id).data; |
| | | switch(obj.event) { |
| | | case 'addData': |
| | | showEditModel(); |
| | | break; |
| | | case 'deleteData': |
| | | if (checkStatus.length === 0) { |
| | | layer.msg('请选择要删除的数据', {icon: 2}); |
| | | return; |
| | | } |
| | | del(checkStatus.map(function (d) { |
| | | return d.id; |
| | | })); |
| | | break; |
| | | case 'exportData': |
| | | admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |
| | | var fields=[]; |
| | | obj.config.cols[0].map(function (col) { |
| | | if (col.type === 'normal' && col.hide === false && col.toolbar == null) { |
| | | titles.push(col.title); |
| | | fields.push(col.field); |
| | | } |
| | | }); |
| | | var exportData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | exportData[this.name] = this.value; |
| | | }); |
| | | var param = { |
| | | 'basRgvErrorLog': exportData, |
| | | 'fields': fields |
| | | }; |
| | | $.ajax({ |
| | | url: baseUrl+"/basRgvErrorLog/export/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(param), |
| | | dataType:'json', |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.closeAll(); |
| | | if (res.code === 200) { |
| | | table.exportFile(titles,res.data,'xls'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | // 监听行工具事件 |
| | | table.on('tool(basRgvErrorLog)', function(obj){ |
| | | var data = obj.data; |
| | | switch (obj.event) { |
| | | case 'edit': |
| | | showEditModel(data); |
| | | break; |
| | | case "del": |
| | | del([data.id]); |
| | | break; |
| | | } |
| | | }); |
| | | |
| | | /* 弹窗 - 新增、修改 */ |
| | | function showEditModel(mData) { |
| | | admin.open({ |
| | | type: 1, |
| | | area: '600px', |
| | | title: (mData ? '修改' : '添加') + '订单状态', |
| | | content: $('#editDialog').html(), |
| | | success: function (layero, dIndex) { |
| | | layDateRender(mData); |
| | | form.val('detail', mData); |
| | | form.on('submit(editSubmit)', function (data) { |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/basRgvErrorLog/"+(mData?'update':'add')+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: data.field, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.close(dIndex); |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | return false; |
| | | }); |
| | | $(layero).children('.layui-layer-content').css('overflow', 'visible'); |
| | | layui.form.render('select'); |
| | | } |
| | | }); |
| | | } |
| | | |
| | | /* 删除 */ |
| | | function del(ids) { |
| | | layer.confirm('确定要删除选中数据吗?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/basRgvErrorLog/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {ids: ids}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | |
| | | // 搜索 |
| | | form.on('submit(search)', function (data) { |
| | | pageCurr = 1; |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 重置 |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | tableReload(false); |
| | | }); |
| | | |
| | | // 时间选择器 |
| | | function layDateRender(data) { |
| | | setTimeout(function () { |
| | | layDate.render({ |
| | | elem: '.layui-laydate-range' |
| | | ,type: 'datetime' |
| | | ,range: true |
| | | }); |
| | | layDate.render({ |
| | | elem: '#createTime\\$', |
| | | type: 'datetime', |
| | | value: data!==undefined?data['createTime\\$']:null |
| | | }); |
| | | |
| | | }, 300); |
| | | } |
| | | layDateRender(); |
| | | |
| | | }); |
| | | |
| | | // 关闭动作 |
| | | $(document).on('click','#data-detail-close', function () { |
| | | parent.layer.closeAll(); |
| | | }); |
| | | |
| | | function tableReload(child) { |
| | | var searchData = {}; |
| | | $.each($('#search-box [name]').serializeArray(), function() { |
| | | searchData[this.name] = this.value; |
| | | }); |
| | | tableIns.reload({ |
| | | where: searchData, |
| | | page: {curr: pageCurr} |
| | | }); |
| | | } |
| | |
| | | ,{field: 'memo', align: 'center',title: '备注'} |
| | | // ,{field: 'id', align: 'center',title: ''} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | // ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title></title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | </head> |
| | | <body> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar" id="search-box"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline">  |
| | | <button class="layui-btn icon-btn" lay-filter="search" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | | </button> |
| | | <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> |
| | | <i class="layui-icon"></i>重置 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="basCrnErrorLog" lay-filter="basCrnErrorLog"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button> |
| | | </div> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/basCrnErrorLog/basCrnErrorLog.js" charset="utf-8"></script> |
| | | </body> |
| | | <!-- 表单弹窗 --> |
| | | <script type="text/html" id="editDialog"> |
| | | <form id="detail" lay-filter="detail" class="layui-form admin-form model-form"> |
| | | <input name="id" type="hidden"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">编号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="crnNo" placeholder="请输入编号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">行走变频器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibDriveFault" placeholder="请输入行走变频器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">提共变频器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSupplyFault" placeholder="请输入提共变频器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货叉变频器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForkDriveFault" placeholder="请输入货叉变频器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">行走断路器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibDriveCircuitFault" placeholder="请输入行走断路器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">提升断路器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibLiftCircuitFault" placeholder="请输入提升断路器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货叉断路器故障: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForkCircuitFault" placeholder="请输入货叉断路器故障"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">前进限位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForwardLimit" placeholder="请输入前进限位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">后退限位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibReverseLimit" placeholder="请输入后退限位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">行走原点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibDriveStart" placeholder="请输入行走原点"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">前进强制低速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForwardBrakeSpeed" placeholder="请输入前进强制低速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">后退强制低速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibReverseBrakeSpeed" placeholder="请输入后退强制低速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">上升限位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibUpLimit" placeholder="请输入上升限位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">下限限位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibDownLimit" placeholder="请输入下限限位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">提升原点: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibUpOrigin" placeholder="请输入提升原点"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">上升强制低速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibUpBrakeSpeed" placeholder="请输入上升强制低速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">下降强制低速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibDownBrakeSpeed" placeholder="请输入下降强制低速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">创建时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="createTime" id="createTime$" placeholder="请输入创建时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">载货台探货: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibPlatformSignal" placeholder="请输入载货台探货"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货叉中位信号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForkMidSignal" placeholder="请输入货叉中位信号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货叉左极限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForkLeftLimit" placeholder="请输入货叉左极限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货叉右极限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibForkRightLimit" placeholder="请输入货叉右极限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">前超限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibFrontOverLimit" placeholder="请输入前超限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">后超限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibRearOverLimit" placeholder="请输入后超限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左超限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibLeftOverLimit" placeholder="请输入左超限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右超限: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibRightOverLimit" placeholder="请输入右超限"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">高超限1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibHighOverLimit1" placeholder="请输入高超限1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">高超限2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibHighOverLimit2" placeholder="请输入高超限2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">高超限3: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibHighOverLimit3" placeholder="请输入高超限3"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">一伸左侧探货1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOneExtendLeftLoad1" placeholder="请输入一伸左侧探货1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">一伸左侧探货2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOneExtendLeftLoad2" placeholder="请输入一伸左侧探货2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">一伸右侧探货1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOneExtendRightLoad1" placeholder="请输入一伸右侧探货1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">一伸右侧探货2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOneExtendRightLoad2" placeholder="请输入一伸右侧探货2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">二伸左侧探货1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibTwoExtendLeftLoad1" placeholder="请输入二伸左侧探货1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">二伸左侧探货2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibTwoExtendLeftLoad2" placeholder="请输入二伸左侧探货2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">二伸右侧探货1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibTwoExtendRightLoad1" placeholder="请输入二伸右侧探货1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">二伸右侧探货2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibTwoExtendRightLoad2" placeholder="请输入二伸右侧探货2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">超速信号1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSpeedSignal1" placeholder="请输入超速信号1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">超速信号2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSpeedSignal2" placeholder="请输入超速信号2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">超重信号1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOverweightSignal1" placeholder="请输入超重信号1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">超重信号2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibOverweightSignal2" placeholder="请输入超重信号2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">松绳信号1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibRopeReleaseSignal1" placeholder="请输入松绳信号1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">松绳信号2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibRopeReleaseSignal2" placeholder="请输入松绳信号2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">安全钳: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSafetyClamp" placeholder="请输入安全钳"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">张紧器: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibTightener" placeholder="请输入张紧器"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">限速器: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSpeedLimiter" placeholder="请输入限速器"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">安全门打开: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="ibSafetyDoorOpen" placeholder="请输入安全门打开"> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <hr class="layui-bg-gray"> |
| | | <div class="layui-form-item text-right"> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | </div> |
| | | </form> |
| | | </script> |
| | | </html> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">: </label> |
| | | <label class="layui-form-label">数据错误: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="dataError" placeholder="请输入"> |
| | | <input class="layui-input" name="dataError" placeholder="请输入数据错误"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">直线光电: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorGArrive" placeholder="请输入直线光电"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">减速光电: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorGDec" placeholder="请输入减速光电"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">直线凸出: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorGArrive2" placeholder="请输入直线凸出"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">限位保护光电: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorLimit" placeholder="请输入限位保护光电"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">急停: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="emergency" placeholder="请输入急停"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">光电离开1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorGLeave" placeholder="请输入光电离开1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">光电离开2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorGLeave2" placeholder="请输入光电离开2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">顶升上升: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorCUp" placeholder="请输入顶升上升"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">顶升下降: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorCDown" placeholder="请输入顶升下降"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">顶升热继: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="liftMotorFr" placeholder="请输入顶升热继"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">直线热继: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="lineMotorFr" placeholder="请输入直线热继"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">移栽热继: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="tranMotorFr" placeholder="请输入移栽热继"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">备用1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rst1" placeholder="请输入备用1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">备用2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rst2" placeholder="请输入备用2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">备用3: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rst3" placeholder="请输入备用3"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">备用4: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rst4" placeholder="请输入备用4"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">直行方向到位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorArriveD" placeholder="请输入直行方向到位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">直行方向减速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorDecD" placeholder="请输入直行方向减速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左移方向到位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorArriveL" placeholder="请输入左移方向到位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左移方向减速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorDecL" placeholder="请输入左移方向减速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右移方向到位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorArriveR" placeholder="请输入右移方向到位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右移方向减速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="sensorDecR" placeholder="请输入右移方向减速"> |
| | | </div> |
| | | </div> |
| | | |
| New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title></title> |
| | | <meta name="renderer" content="webkit"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/admin.css?v=318" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/cool.css" media="all"> |
| | | </head> |
| | | <body> |
| | | |
| | | <div class="layui-fluid"> |
| | | <div class="layui-card"> |
| | | <div class="layui-card-body"> |
| | | <div class="layui-form toolbar" id="search-box"> |
| | | <div class="layui-form-item"> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="id" placeholder="编号" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline" style="width: 300px"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input layui-laydate-range" name="create_time" type="text" placeholder="起始时间 - 终止时间" autocomplete="off" style="width: 300px"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input class="layui-input" type="text" name="condition" placeholder="请输入" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-inline">  |
| | | <button class="layui-btn icon-btn" lay-filter="search" lay-submit> |
| | | <i class="layui-icon"></i>搜索 |
| | | </button> |
| | | <button class="layui-btn icon-btn" lay-filter="reset" lay-submit> |
| | | <i class="layui-icon"></i>重置 |
| | | </button> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="basRgvErrorLog" lay-filter="basRgvErrorLog"></table> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <button class="layui-btn layui-btn-primary layui-btn-sm" id="btn-export" lay-event="exportData" style="float: right">导出</button> |
| | | </div> |
| | | </script> |
| | | |
| | | <script type="text/html" id="operate"> |
| | | <a class="layui-btn layui-btn-primary layui-btn-xs btn-edit" lay-event="edit">修改</a> |
| | | <a class="layui-btn layui-btn-danger layui-btn-xs btn-edit" lay-event="del">删除</a> |
| | | </script> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/cool.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/basRgvErrorLog/basRgvErrorLog.js" charset="utf-8"></script> |
| | | </body> |
| | | <!-- 表单弹窗 --> |
| | | <script type="text/html" id="editDialog"> |
| | | <form id="detail" lay-filter="detail" class="layui-form admin-form model-form"> |
| | | <input name="id" type="hidden"> |
| | | <div class="layui-row"> |
| | | <div class="layui-col-md12"> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">编号: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rgvNo" placeholder="请输入编号"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">急停触发: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="emergencyStop" placeholder="请输入急停触发"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">1号位有物无资料: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="slot1EmptyNoData" placeholder="请输入1号位有物无资料"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">2号位有物无资料: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="slot2EmptyNoData" placeholder="请输入2号位有物无资料"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">命令错误走链条冲突: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="commandErrorChainConflict" placeholder="请输入命令错误走链条冲突"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">目标位下发错误: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="targetPositionIssue" placeholder="请输入目标位下发错误"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">走行变频器异常: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="travelInverterError" placeholder="请输入走行变频器异常"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">1号光电异常: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="photoelectric1Error" placeholder="请输入1号光电异常"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">2号光电异常: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="photoelectric2Error" placeholder="请输入2号光电异常"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">与输线时接超时: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="timeoutConnectionWithLine" placeholder="请输入与输线时接超时"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左侧滚筒运行超时: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftRollerTimeout" placeholder="请输入左侧滚筒运行超时"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右侧滚筒运行超时: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightRollerTimeout" placeholder="请输入右侧滚筒运行超时"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">rgv运行超时: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rgvRunTimeout" placeholder="请输入rgv运行超时"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">1号工位链条变频器异常: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="position1ChainInverterError" placeholder="请输入1号工位链条变频器异常"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">2号工位链条变频器异常: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="position2ChainInverterError" placeholder="请输入2号工位链条变频器异常"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">前后极限位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="frontRearLimit" placeholder="请输入前后极限位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">急停按钮: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="emergencyButton" placeholder="请输入急停按钮"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">创建时间: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="createTime" id="createTime$" placeholder="请输入创建时间"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">急停按钮: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="forwardButton" placeholder="请输入急停按钮"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">后退按钮: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="reverseButton" placeholder="请输入后退按钮"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">本地/远程: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="localRemote" placeholder="请输入本地/远程"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">复位: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="reset" placeholder="请输入复位"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">走行抱闸开关钮: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="travelBrakeSwitch" placeholder="请输入走行抱闸开关钮"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">走行强制减速光电: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="travelSpeedLimitPhotoelectric" placeholder="请输入走行强制减速光电"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左超限 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftOverlimit1" placeholder="请输入左超限 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右超限 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightOverlimit1" placeholder="请输入右超限 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左到位 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftAtPosition1" placeholder="请输入左到位 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右到位 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightAtPosition1" placeholder="请输入右到位 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">链条前进 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="chainForward1" placeholder="请输入链条前进 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">链条后退 1: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="chainReverse1" placeholder="请输入链条后退 1"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">变频器报警: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="inverterAlarm" placeholder="请输入变频器报警"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左超限 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftOverlimit2" placeholder="请输入左超限 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右超限 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightOverlimit2" placeholder="请输入右超限 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左到位 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftAtPosition2" placeholder="请输入左到位 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右到位 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightAtPosition2" placeholder="请输入右到位 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">货物减速: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="cargoSpeedReduction" placeholder="请输入货物减速"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">输送变频器报警 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="conveyorInverterAlarm2" placeholder="请输入输送变频器报警 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">左输送 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="leftConveyor2" placeholder="请输入左输送 2"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">右输送 2: </label> |
| | | <div class="layui-input-block"> |
| | | <input class="layui-input" name="rightConveyor2" placeholder="请输入右输送 2"> |
| | | </div> |
| | | </div> |
| | | |
| | | </div> |
| | | </div> |
| | | <hr class="layui-bg-gray"> |
| | | <div class="layui-form-item text-right"> |
| | | <button class="layui-btn" lay-filter="editSubmit" lay-submit="">保存</button> |
| | | <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> |
| | | </div> |
| | | </form> |
| | | </script> |
| | | </html> |
| | | |