项目初始化
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.DeviceCar.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.DeviceCar.domain.DeviceCar;
|
||||
import com.ruoyi.device.DeviceCar.service.IDeviceCarService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 设备信息Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-12
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/DeviceCar")
|
||||
public class DeviceCarController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceCarService deviceCarService;
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceCar deviceCar)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceCar> list = deviceCarService.selectDeviceCarList(deviceCar);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备信息列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:export')")
|
||||
@Log(title = "设备信息", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceCar deviceCar)
|
||||
{
|
||||
List<DeviceCar> list = deviceCarService.selectDeviceCarList(deviceCar);
|
||||
ExcelUtil<DeviceCar> util = new ExcelUtil<DeviceCar>(DeviceCar.class);
|
||||
util.exportExcel(response, list, "设备信息数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备信息详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceCarService.selectDeviceCarById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:add')")
|
||||
@Log(title = "设备信息", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceCar deviceCar)
|
||||
{
|
||||
return toAjax(deviceCarService.insertDeviceCar(deviceCar));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:edit')")
|
||||
@Log(title = "设备信息", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DeviceCar deviceCar)
|
||||
{
|
||||
return toAjax(deviceCarService.updateDeviceCar(deviceCar));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:DeviceCar:remove')")
|
||||
@Log(title = "设备信息", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceCarService.deleteDeviceCarByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
package com.ruoyi.device.DeviceCar.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 设备信息对象 device_car
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-12
|
||||
*/
|
||||
public class DeviceCar extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 设备唯一编码 */
|
||||
@Excel(name = "设备唯一编码")
|
||||
private String deviceCode ;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String name ;
|
||||
|
||||
/** 1-AGV 2-CTU*/
|
||||
@Excel(name = "1-AGV 2-CTU")
|
||||
private String type;
|
||||
|
||||
/** 设备IP */
|
||||
@Excel(name = "设备IP")
|
||||
private String ipAddress;
|
||||
|
||||
/** 关联缓冲区 */
|
||||
@Excel(name = "关联缓冲区")
|
||||
private String bufferAreaId ;
|
||||
|
||||
/** 0-F 1-T */
|
||||
@Excel(name = "0-F 1-T")
|
||||
private String isActive;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private String status;
|
||||
|
||||
/** 备用字段 */
|
||||
@Excel(name = "备用字段")
|
||||
private String spare1;
|
||||
|
||||
/** 备用字段 */
|
||||
@Excel(name = "备用字段")
|
||||
private String spare2;
|
||||
|
||||
/** 备用字段 */
|
||||
@Excel(name = "备用字段")
|
||||
private String spare3;
|
||||
|
||||
/** 备用字段 */
|
||||
@Excel(name = "备用字段")
|
||||
private String spare4;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private String taskNo;
|
||||
|
||||
/** 执行阶段 */
|
||||
@Excel(name = "执行阶段")
|
||||
private String zxjd;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setDeviceCode (String deviceCode )
|
||||
{
|
||||
this.deviceCode = deviceCode ;
|
||||
}
|
||||
|
||||
public String getDeviceCode ()
|
||||
{
|
||||
return deviceCode ;
|
||||
}
|
||||
|
||||
public void setName (String name )
|
||||
{
|
||||
this.name = name ;
|
||||
}
|
||||
|
||||
public String getName ()
|
||||
{
|
||||
return name ;
|
||||
}
|
||||
|
||||
public void setType(String type)
|
||||
{
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setIpAddress(String ipAddress)
|
||||
{
|
||||
this.ipAddress = ipAddress;
|
||||
}
|
||||
|
||||
public String getIpAddress()
|
||||
{
|
||||
return ipAddress;
|
||||
}
|
||||
|
||||
public void setBufferAreaId (String bufferAreaId )
|
||||
{
|
||||
this.bufferAreaId = bufferAreaId ;
|
||||
}
|
||||
|
||||
public String getBufferAreaId ()
|
||||
{
|
||||
return bufferAreaId ;
|
||||
}
|
||||
|
||||
public void setIsActive(String isActive)
|
||||
{
|
||||
this.isActive = isActive;
|
||||
}
|
||||
|
||||
public String getIsActive()
|
||||
{
|
||||
return isActive;
|
||||
}
|
||||
|
||||
public void setStatus(String status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setSpare1(String spare1)
|
||||
{
|
||||
this.spare1 = spare1;
|
||||
}
|
||||
|
||||
public String getSpare1()
|
||||
{
|
||||
return spare1;
|
||||
}
|
||||
|
||||
public void setSpare2(String spare2)
|
||||
{
|
||||
this.spare2 = spare2;
|
||||
}
|
||||
|
||||
public String getSpare2()
|
||||
{
|
||||
return spare2;
|
||||
}
|
||||
|
||||
public void setSpare3(String spare3)
|
||||
{
|
||||
this.spare3 = spare3;
|
||||
}
|
||||
|
||||
public String getSpare3()
|
||||
{
|
||||
return spare3;
|
||||
}
|
||||
|
||||
public void setSpare4(String spare4)
|
||||
{
|
||||
this.spare4 = spare4;
|
||||
}
|
||||
|
||||
public String getSpare4()
|
||||
{
|
||||
return spare4;
|
||||
}
|
||||
|
||||
public void setTaskNo(String taskNo)
|
||||
{
|
||||
this.taskNo = taskNo;
|
||||
}
|
||||
|
||||
public String getTaskNo()
|
||||
{
|
||||
return taskNo;
|
||||
}
|
||||
|
||||
public void setZxjd(String zxjd)
|
||||
{
|
||||
this.zxjd = zxjd;
|
||||
}
|
||||
|
||||
public String getZxjd()
|
||||
{
|
||||
return zxjd;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("deviceCode ", getDeviceCode ())
|
||||
.append("name ", getName ())
|
||||
.append("type", getType())
|
||||
.append("ipAddress", getIpAddress())
|
||||
.append("bufferAreaId ", getBufferAreaId ())
|
||||
.append("isActive", getIsActive())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("status", getStatus())
|
||||
.append("spare1", getSpare1())
|
||||
.append("spare2", getSpare2())
|
||||
.append("spare3", getSpare3())
|
||||
.append("spare4", getSpare4())
|
||||
.append("taskNo", getTaskNo())
|
||||
.append("zxjd", getZxjd())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.DeviceCar.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.DeviceCar.domain.DeviceCar;
|
||||
|
||||
/**
|
||||
* 设备信息Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-12
|
||||
*/
|
||||
public interface DeviceCarMapper
|
||||
{
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
public DeviceCar selectDeviceCarById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 设备信息集合
|
||||
*/
|
||||
public List<DeviceCar> selectDeviceCarList(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceCar(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceCar(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 删除设备信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCarById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCarByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.DeviceCar.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.DeviceCar.domain.DeviceCar;
|
||||
|
||||
/**
|
||||
* 设备信息Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-12
|
||||
*/
|
||||
public interface IDeviceCarService
|
||||
{
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
public DeviceCar selectDeviceCarById(Long id);
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 设备信息集合
|
||||
*/
|
||||
public List<DeviceCar> selectDeviceCarList(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceCar(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceCar(DeviceCar deviceCar);
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param ids 需要删除的设备信息主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCarByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除设备信息信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCarById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.device.DeviceCar.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.DeviceCar.mapper.DeviceCarMapper;
|
||||
import com.ruoyi.device.DeviceCar.domain.DeviceCar;
|
||||
import com.ruoyi.device.DeviceCar.service.IDeviceCarService;
|
||||
|
||||
/**
|
||||
* 设备信息Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-06-12
|
||||
*/
|
||||
@Service
|
||||
public class DeviceCarServiceImpl implements IDeviceCarService
|
||||
{
|
||||
@Autowired
|
||||
private DeviceCarMapper deviceCarMapper;
|
||||
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Override
|
||||
public DeviceCar selectDeviceCarById(Long id)
|
||||
{
|
||||
return deviceCarMapper.selectDeviceCarById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询设备信息列表
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 设备信息
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceCar> selectDeviceCarList(DeviceCar deviceCar)
|
||||
{
|
||||
return deviceCarMapper.selectDeviceCarList(deviceCar);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceCar(DeviceCar deviceCar)
|
||||
{
|
||||
deviceCar.setCreateTime(DateUtils.getNowDate());
|
||||
return deviceCarMapper.insertDeviceCar(deviceCar);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改设备信息
|
||||
*
|
||||
* @param deviceCar 设备信息
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceCar(DeviceCar deviceCar)
|
||||
{
|
||||
return deviceCarMapper.updateDeviceCar(deviceCar);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除设备信息
|
||||
*
|
||||
* @param ids 需要删除的设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceCarByIds(Long[] ids)
|
||||
{
|
||||
return deviceCarMapper.deleteDeviceCarByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除设备信息信息
|
||||
*
|
||||
* @param id 设备信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceCarById(Long id)
|
||||
{
|
||||
return deviceCarMapper.deleteDeviceCarById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.cdz.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.cdz.domain.DeviceCdz;
|
||||
import com.ruoyi.device.cdz.service.IDeviceCdzService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 充电桩设备Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/cdz")
|
||||
public class DeviceCdzController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceCdzService deviceCdzService;
|
||||
|
||||
/**
|
||||
* 查询充电桩设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceCdz deviceCdz)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceCdz> list = deviceCdzService.selectDeviceCdzList(deviceCdz);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出充电桩设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:export')")
|
||||
@Log(title = "充电桩设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceCdz deviceCdz)
|
||||
{
|
||||
List<DeviceCdz> list = deviceCdzService.selectDeviceCdzList(deviceCdz);
|
||||
ExcelUtil<DeviceCdz> util = new ExcelUtil<DeviceCdz>(DeviceCdz.class);
|
||||
util.exportExcel(response, list, "充电桩设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取充电桩设备详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceCdzService.selectDeviceCdzById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增充电桩设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:add')")
|
||||
@Log(title = "充电桩设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceCdz deviceCdz)
|
||||
{
|
||||
return toAjax(deviceCdzService.insertDeviceCdz(deviceCdz));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改充电桩设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:edit')")
|
||||
@Log(title = "充电桩设备", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DeviceCdz deviceCdz)
|
||||
{
|
||||
return toAjax(deviceCdzService.updateDeviceCdz(deviceCdz));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除充电桩设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:cdz:remove')")
|
||||
@Log(title = "充电桩设备", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceCdzService.deleteDeviceCdzByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.ruoyi.device.cdz.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 充电桩设备对象 device_cdz
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class DeviceCdz extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Integer id;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String name;
|
||||
|
||||
/** ip */
|
||||
@Excel(name = "ip")
|
||||
private String ip;
|
||||
|
||||
/** 端口 */
|
||||
@Excel(name = "端口")
|
||||
private String port;
|
||||
|
||||
/** plc读取地址 */
|
||||
@Excel(name = "plc读取地址")
|
||||
private String plcDbReadAddress;
|
||||
|
||||
/** plc写入地址 */
|
||||
@Excel(name = "plc写入地址")
|
||||
private String plcDbWriteAddress;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private Integer rwh;
|
||||
|
||||
/** 充电桩状态 */
|
||||
@Excel(name = "充电桩状态")
|
||||
private Integer status;
|
||||
|
||||
/** 心跳信号 */
|
||||
@Excel(name = "心跳信号")
|
||||
private Integer xtxh;
|
||||
|
||||
/** 层数 */
|
||||
@Excel(name = "层数")
|
||||
private Integer szcs;
|
||||
|
||||
/** 充电模式 */
|
||||
@Excel(name = "充电模式")
|
||||
private Integer model;
|
||||
|
||||
/** 站点 */
|
||||
@Excel(name = "站点")
|
||||
private String siteId;
|
||||
|
||||
/** 备用1 */
|
||||
@Excel(name = "备用1")
|
||||
private String spare1;
|
||||
|
||||
/** 备用2 */
|
||||
@Excel(name = "备用2")
|
||||
private String spare2;
|
||||
|
||||
/** 备用3 */
|
||||
@Excel(name = "备用3")
|
||||
private String spare3;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.ruoyi.device.cdz.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.cdz.domain.DeviceCdz;
|
||||
|
||||
/**
|
||||
* 充电桩设备Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface DeviceCdzMapper
|
||||
{
|
||||
/**
|
||||
* 查询充电桩设备
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 充电桩设备
|
||||
*/
|
||||
public DeviceCdz selectDeviceCdzById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电桩设备列表
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 充电桩设备集合
|
||||
*/
|
||||
public List<DeviceCdz> selectDeviceCdzList(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 新增充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceCdz(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 修改充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceCdz(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 删除充电桩设备
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCdzById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCdzByIds(Long[] ids);
|
||||
/**
|
||||
* 查询没有SRGV的充电桩设备
|
||||
* @return
|
||||
*/
|
||||
List<DeviceCdz> selectDeviceCdzListNoSRgvId();
|
||||
/**
|
||||
* 获取有SRGV的充电桩设备
|
||||
* @return
|
||||
*/
|
||||
List<DeviceCdz> selectDeviceCdzHasSRgvList();
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.ruoyi.device.cdz.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.cdz.domain.DeviceCdz;
|
||||
|
||||
/**
|
||||
* 充电桩设备Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
public interface IDeviceCdzService
|
||||
{
|
||||
/**
|
||||
* 查询充电桩设备
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 充电桩设备
|
||||
*/
|
||||
public DeviceCdz selectDeviceCdzById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电桩设备列表
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 充电桩设备集合
|
||||
*/
|
||||
public List<DeviceCdz> selectDeviceCdzList(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 新增充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceCdz(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 修改充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceCdz(DeviceCdz deviceCdz);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩设备
|
||||
*
|
||||
* @param ids 需要删除的充电桩设备主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCdzByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除充电桩设备信息
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceCdzById(Long id);
|
||||
/**
|
||||
* 查询没有SRgvId的充电桩设备列表
|
||||
* @return
|
||||
*/
|
||||
List<DeviceCdz> selectDeviceCdzListNoSRgvId();
|
||||
/**
|
||||
* 查询有SRgvId的充电桩设备列表
|
||||
* @return
|
||||
*/
|
||||
List<DeviceCdz> selectDeviceCdzHasSRgvList();
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
package com.ruoyi.device.cdz.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.cdz.mapper.DeviceCdzMapper;
|
||||
import com.ruoyi.device.cdz.domain.DeviceCdz;
|
||||
import com.ruoyi.device.cdz.service.IDeviceCdzService;
|
||||
|
||||
/**
|
||||
* 充电桩设备Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-27
|
||||
*/
|
||||
@Service
|
||||
public class DeviceCdzServiceImpl implements IDeviceCdzService
|
||||
{
|
||||
@Autowired
|
||||
private DeviceCdzMapper deviceCdzMapper;
|
||||
|
||||
/**
|
||||
* 查询充电桩设备
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 充电桩设备
|
||||
*/
|
||||
@Override
|
||||
public DeviceCdz selectDeviceCdzById(Long id)
|
||||
{
|
||||
return deviceCdzMapper.selectDeviceCdzById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询充电桩设备列表
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 充电桩设备
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceCdz> selectDeviceCdzList(DeviceCdz deviceCdz)
|
||||
{
|
||||
return deviceCdzMapper.selectDeviceCdzList(deviceCdz);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceCdz(DeviceCdz deviceCdz)
|
||||
{
|
||||
return deviceCdzMapper.insertDeviceCdz(deviceCdz);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改充电桩设备
|
||||
*
|
||||
* @param deviceCdz 充电桩设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceCdz(DeviceCdz deviceCdz)
|
||||
{
|
||||
return deviceCdzMapper.updateDeviceCdz(deviceCdz);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除充电桩设备
|
||||
*
|
||||
* @param ids 需要删除的充电桩设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceCdzByIds(Long[] ids)
|
||||
{
|
||||
return deviceCdzMapper.deleteDeviceCdzByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除充电桩设备信息
|
||||
*
|
||||
* @param id 充电桩设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceCdzById(Long id)
|
||||
{
|
||||
return deviceCdzMapper.deleteDeviceCdzById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DeviceCdz> selectDeviceCdzListNoSRgvId() {
|
||||
return deviceCdzMapper.selectDeviceCdzListNoSRgvId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DeviceCdz> selectDeviceCdzHasSRgvList() {
|
||||
return deviceCdzMapper.selectDeviceCdzHasSRgvList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.ddj.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.ddj.domain.MsgDdj;
|
||||
import com.ruoyi.device.ddj.service.IMsgDdjService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 堆垛机状态表Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-22
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/ddj")
|
||||
public class MsgDdjController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IMsgDdjService msgDdjService;
|
||||
|
||||
/**
|
||||
* 查询堆垛机状态表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(MsgDdj msgDdj)
|
||||
{
|
||||
startPage();
|
||||
List<MsgDdj> list = msgDdjService.selectMsgDdjList(msgDdj);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出堆垛机状态表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:export')")
|
||||
@Log(title = "堆垛机状态表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, MsgDdj msgDdj)
|
||||
{
|
||||
List<MsgDdj> list = msgDdjService.selectMsgDdjList(msgDdj);
|
||||
ExcelUtil<MsgDdj> util = new ExcelUtil<MsgDdj>(MsgDdj.class);
|
||||
util.exportExcel(response, list, "堆垛机状态表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取堆垛机状态表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(msgDdjService.selectMsgDdjById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增堆垛机状态表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:add')")
|
||||
@Log(title = "堆垛机状态表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody MsgDdj msgDdj)
|
||||
{
|
||||
return toAjax(msgDdjService.insertMsgDdj(msgDdj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改堆垛机状态表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:edit')")
|
||||
@Log(title = "堆垛机状态表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody MsgDdj msgDdj)
|
||||
{
|
||||
return toAjax(msgDdjService.updateMsgDdj(msgDdj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除堆垛机状态表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ddj:remove')")
|
||||
@Log(title = "堆垛机状态表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(msgDdjService.deleteMsgDdjByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,111 @@
|
||||
package com.ruoyi.device.ddj.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.ToString;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 堆垛机状态表对象 msg_ddj
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-22
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class MsgDdj extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Integer id;
|
||||
|
||||
/** 堆垛机名称 */
|
||||
@Excel(name = "堆垛机名称")
|
||||
private String name;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private Long rwh;
|
||||
|
||||
/** 阶段标志 */
|
||||
@Excel(name = "阶段标志")
|
||||
private Integer jdbz;
|
||||
|
||||
/** 状态 */
|
||||
@Excel(name = "状态")
|
||||
private Integer sbzt;
|
||||
|
||||
/** 操作方式 */
|
||||
@Excel(name = "操作方式")
|
||||
private Integer czfs;
|
||||
|
||||
/** 允许下发 */
|
||||
@Excel(name = "允许下发")
|
||||
private Integer yxxf;
|
||||
|
||||
/** 原排 */
|
||||
@Excel(name = "原排")
|
||||
private Integer yph;
|
||||
|
||||
/** 原列 */
|
||||
@Excel(name = "原列")
|
||||
private Integer ylh;
|
||||
|
||||
/** 原层 */
|
||||
@Excel(name = "原层")
|
||||
private Integer ych;
|
||||
|
||||
/** 目标排 */
|
||||
@Excel(name = "目标排")
|
||||
private Integer mbph;
|
||||
|
||||
/** 目标列 */
|
||||
@Excel(name = "目标列")
|
||||
private Integer mblh;
|
||||
|
||||
/** 目标层 */
|
||||
@Excel(name = "目标层")
|
||||
private Integer mbch;
|
||||
|
||||
/** 心跳信号 */
|
||||
@Excel(name = "心跳信号")
|
||||
private Integer xtxh;
|
||||
|
||||
/** 当前巷道 */
|
||||
@Excel(name = "当前巷道")
|
||||
private Integer dqxd;
|
||||
|
||||
/** 货叉状态 */
|
||||
@Excel(name = "货叉状态")
|
||||
private Integer hczt;
|
||||
|
||||
/** 备用字段1 */
|
||||
@Excel(name = "备用字段1")
|
||||
private Integer spare1;
|
||||
|
||||
/** 备用字段2 */
|
||||
@Excel(name = "备用字段2")
|
||||
private Integer spare2;
|
||||
|
||||
/** 备用字段3 */
|
||||
@Excel(name = "备用字段3")
|
||||
private Integer spare3;
|
||||
|
||||
private String trayCode;
|
||||
|
||||
private String plcDbReadAddress;
|
||||
|
||||
private String ip;
|
||||
|
||||
private String port;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.device.ddj.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.ddj.domain.MsgDdj;
|
||||
|
||||
/**
|
||||
* 堆垛机状态表Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-22
|
||||
*/
|
||||
public interface MsgDdjMapper
|
||||
{
|
||||
/**
|
||||
* 查询堆垛机状态表
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 堆垛机状态表
|
||||
*/
|
||||
public MsgDdj selectMsgDdjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询堆垛机状态表列表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 堆垛机状态表集合
|
||||
*/
|
||||
public List<MsgDdj> selectMsgDdjList(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 新增堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMsgDdj(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 修改堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMsgDdj(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 删除堆垛机状态表
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMsgDdjById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除堆垛机状态表
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMsgDdjByIds(Long[] ids);
|
||||
|
||||
MsgDdj selectSendData(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.ddj.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.ddj.domain.MsgDdj;
|
||||
|
||||
/**
|
||||
* 堆垛机状态表Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-22
|
||||
*/
|
||||
public interface IMsgDdjService
|
||||
{
|
||||
/**
|
||||
* 查询堆垛机状态表
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 堆垛机状态表
|
||||
*/
|
||||
public MsgDdj selectMsgDdjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询堆垛机状态表列表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 堆垛机状态表集合
|
||||
*/
|
||||
public List<MsgDdj> selectMsgDdjList(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 新增堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMsgDdj(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 修改堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMsgDdj(MsgDdj msgDdj);
|
||||
|
||||
/**
|
||||
* 批量删除堆垛机状态表
|
||||
*
|
||||
* @param ids 需要删除的堆垛机状态表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMsgDdjByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除堆垛机状态表信息
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMsgDdjById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.device.ddj.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.ddj.mapper.MsgDdjMapper;
|
||||
import com.ruoyi.device.ddj.domain.MsgDdj;
|
||||
import com.ruoyi.device.ddj.service.IMsgDdjService;
|
||||
|
||||
/**
|
||||
* 堆垛机状态表Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-22
|
||||
*/
|
||||
@Service
|
||||
public class MsgDdjServiceImpl implements IMsgDdjService
|
||||
{
|
||||
@Autowired
|
||||
private MsgDdjMapper msgDdjMapper;
|
||||
|
||||
/**
|
||||
* 查询堆垛机状态表
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 堆垛机状态表
|
||||
*/
|
||||
@Override
|
||||
public MsgDdj selectMsgDdjById(Long id)
|
||||
{
|
||||
return msgDdjMapper.selectMsgDdjById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询堆垛机状态表列表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 堆垛机状态表
|
||||
*/
|
||||
@Override
|
||||
public List<MsgDdj> selectMsgDdjList(MsgDdj msgDdj)
|
||||
{
|
||||
return msgDdjMapper.selectMsgDdjList(msgDdj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertMsgDdj(MsgDdj msgDdj)
|
||||
{
|
||||
return msgDdjMapper.insertMsgDdj(msgDdj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改堆垛机状态表
|
||||
*
|
||||
* @param msgDdj 堆垛机状态表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateMsgDdj(MsgDdj msgDdj)
|
||||
{
|
||||
return msgDdjMapper.updateMsgDdj(msgDdj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除堆垛机状态表
|
||||
*
|
||||
* @param ids 需要删除的堆垛机状态表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMsgDdjByIds(Long[] ids)
|
||||
{
|
||||
return msgDdjMapper.deleteMsgDdjByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除堆垛机状态表信息
|
||||
*
|
||||
* @param id 堆垛机状态表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteMsgDdjById(Long id)
|
||||
{
|
||||
return msgDdjMapper.deleteMsgDdjById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.srgv.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.srgv.domain.DeviceSrgv;
|
||||
import com.ruoyi.device.srgv.service.IDeviceSrgvService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 四向小车设备表Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-21
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/srgv")
|
||||
public class DeviceSrgvController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceSrgvService deviceSrgvService;
|
||||
|
||||
/**
|
||||
* 查询四向小车设备表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceSrgv deviceSrgv)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceSrgv> list = deviceSrgvService.selectDeviceSrgvList(deviceSrgv);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出四向小车设备表列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:export')")
|
||||
@Log(title = "四向小车设备表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceSrgv deviceSrgv)
|
||||
{
|
||||
List<DeviceSrgv> list = deviceSrgvService.selectDeviceSrgvList(deviceSrgv);
|
||||
ExcelUtil<DeviceSrgv> util = new ExcelUtil<DeviceSrgv>(DeviceSrgv.class);
|
||||
util.exportExcel(response, list, "四向小车设备表数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取四向小车设备表详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:query')")
|
||||
@GetMapping(value = "/{guid}")
|
||||
public AjaxResult getInfo(@PathVariable("guid") String guid)
|
||||
{
|
||||
return success(deviceSrgvService.selectDeviceSrgvByGuid(guid));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增四向小车设备表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:add')")
|
||||
@Log(title = "四向小车设备表", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceSrgv deviceSrgv)
|
||||
{
|
||||
return toAjax(deviceSrgvService.insertDeviceSrgv(deviceSrgv));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改四向小车设备表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:edit')")
|
||||
@Log(title = "四向小车设备表", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DeviceSrgv deviceSrgv)
|
||||
{
|
||||
return toAjax(deviceSrgvService.updateDeviceSrgv(deviceSrgv));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除四向小车设备表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:srgv:remove')")
|
||||
@Log(title = "四向小车设备表", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{guids}")
|
||||
public AjaxResult remove(@PathVariable String[] guids)
|
||||
{
|
||||
return toAjax(deviceSrgvService.deleteDeviceSrgvByGuids(guids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
package com.ruoyi.device.srgv.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.ToString;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 四向小车设备表对象 device_srgv
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-21
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class DeviceSrgv extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 唯一id */
|
||||
private String guid;
|
||||
|
||||
/** 设备id */
|
||||
@Excel(name = "设备id")
|
||||
private Integer deviceId;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/** ip */
|
||||
@Excel(name = "ip")
|
||||
private String ip;
|
||||
|
||||
/** 端口 */
|
||||
@Excel(name = "端口")
|
||||
private Integer port;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 设置层 */
|
||||
@Excel(name = "设置层")
|
||||
private Integer setFloor;
|
||||
|
||||
/** 上次充电时间 */
|
||||
@Excel(name = "上次充电时间")
|
||||
private String powerTime;
|
||||
|
||||
/** 最后任务时间 */
|
||||
@Excel(name = "最后任务时间")
|
||||
private String lastTime;
|
||||
|
||||
/** 0 初始化 1正常 */
|
||||
@Excel(name = "0 初始化 1正常")
|
||||
private String agvStatus;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private Integer taskNo;
|
||||
|
||||
/** 原位置 */
|
||||
@Excel(name = "原位置")
|
||||
private String srcSite;
|
||||
|
||||
/** 目标位置 */
|
||||
@Excel(name = "目标位置")
|
||||
private String tarSite;
|
||||
|
||||
/** 当前位置 */
|
||||
@Excel(name = "当前位置")
|
||||
private String currSite;
|
||||
|
||||
/** 任务类型 */
|
||||
@Excel(name = "任务类型")
|
||||
private Integer taskType;
|
||||
|
||||
/** 电量 */
|
||||
@Excel(name = "电量")
|
||||
private Integer battery;
|
||||
|
||||
/** 工作模式 */
|
||||
@Excel(name = "工作模式")
|
||||
private Integer workMode;
|
||||
|
||||
/** 报警 */
|
||||
@Excel(name = "报警")
|
||||
private Integer alarm;
|
||||
|
||||
/** 车状态 */
|
||||
@Excel(name = "车状态")
|
||||
private Integer status;
|
||||
|
||||
/** 完成下发标志 */
|
||||
@Excel(name = "完成下发标志")
|
||||
private Integer finish;
|
||||
|
||||
/** 充电标志 */
|
||||
@Excel(name = "充电标志")
|
||||
private Integer chargeFlag;
|
||||
|
||||
/** 执行阶段 */
|
||||
@Excel(name = "执行阶段")
|
||||
private Integer workPhase;
|
||||
|
||||
/** 异常信息 */
|
||||
@Excel(name = "异常信息")
|
||||
private Integer errMsg;
|
||||
|
||||
/** 输送机请求 */
|
||||
@Excel(name = "输送机请求")
|
||||
private Integer ssjRequest;
|
||||
|
||||
/** 换层标志 */
|
||||
@Excel(name = "换层标志")
|
||||
private Integer changeLayer;
|
||||
|
||||
/** 载货标志 */
|
||||
@Excel(name = "载货标志")
|
||||
private Integer cargoFlag;
|
||||
|
||||
/** 手动充电 */
|
||||
@Excel(name = "手动充电")
|
||||
private Integer manualCharge;
|
||||
|
||||
/** 路径 */
|
||||
@Excel(name = "路径")
|
||||
private String path;
|
||||
|
||||
/** 允许下发 */
|
||||
@Excel(name = "允许下发")
|
||||
private Integer allowSend;
|
||||
|
||||
/** 当前层数 */
|
||||
@Excel(name = "当前层数")
|
||||
private Integer currFloor;
|
||||
|
||||
/** 离线站点 */
|
||||
@Excel(name = "离线站点")
|
||||
private String offlineSite;
|
||||
|
||||
/** 车辆锁 */
|
||||
@Excel(name = "车辆锁")
|
||||
private Integer locked;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String spare1;
|
||||
|
||||
/** */
|
||||
@Excel(name = "请求进入提升机 0-否 1-是")
|
||||
private String spare2;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String spare3;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String spare4;
|
||||
|
||||
/** */
|
||||
@Excel(name = "")
|
||||
private String spare5;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.srgv.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.srgv.domain.DeviceSrgv;
|
||||
|
||||
/**
|
||||
* 四向小车设备表Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-21
|
||||
*/
|
||||
public interface DeviceSrgvMapper
|
||||
{
|
||||
/**
|
||||
* 查询四向小车设备表
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 四向小车设备表
|
||||
*/
|
||||
public DeviceSrgv selectDeviceSrgvByGuid(String guid);
|
||||
|
||||
/**
|
||||
* 查询四向小车设备表列表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 四向小车设备表集合
|
||||
*/
|
||||
public List<DeviceSrgv> selectDeviceSrgvList(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 新增四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceSrgv(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 修改四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceSrgv(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 删除四向小车设备表
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSrgvByGuid(String guid);
|
||||
|
||||
/**
|
||||
* 批量删除四向小车设备表
|
||||
*
|
||||
* @param guids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSrgvByGuids(String[] guids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.srgv.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.srgv.domain.DeviceSrgv;
|
||||
|
||||
/**
|
||||
* 四向小车设备表Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-21
|
||||
*/
|
||||
public interface IDeviceSrgvService
|
||||
{
|
||||
/**
|
||||
* 查询四向小车设备表
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 四向小车设备表
|
||||
*/
|
||||
public DeviceSrgv selectDeviceSrgvByGuid(String guid);
|
||||
|
||||
/**
|
||||
* 查询四向小车设备表列表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 四向小车设备表集合
|
||||
*/
|
||||
public List<DeviceSrgv> selectDeviceSrgvList(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 新增四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceSrgv(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 修改四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceSrgv(DeviceSrgv deviceSrgv);
|
||||
|
||||
/**
|
||||
* 批量删除四向小车设备表
|
||||
*
|
||||
* @param guids 需要删除的四向小车设备表主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSrgvByGuids(String[] guids);
|
||||
|
||||
/**
|
||||
* 删除四向小车设备表信息
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSrgvByGuid(String guid);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.device.srgv.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.srgv.mapper.DeviceSrgvMapper;
|
||||
import com.ruoyi.device.srgv.domain.DeviceSrgv;
|
||||
import com.ruoyi.device.srgv.service.IDeviceSrgvService;
|
||||
|
||||
/**
|
||||
* 四向小车设备表Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-21
|
||||
*/
|
||||
@Service
|
||||
public class DeviceSrgvServiceImpl implements IDeviceSrgvService
|
||||
{
|
||||
@Autowired
|
||||
private DeviceSrgvMapper deviceSrgvMapper;
|
||||
|
||||
/**
|
||||
* 查询四向小车设备表
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 四向小车设备表
|
||||
*/
|
||||
@Override
|
||||
public DeviceSrgv selectDeviceSrgvByGuid(String guid)
|
||||
{
|
||||
return deviceSrgvMapper.selectDeviceSrgvByGuid(guid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询四向小车设备表列表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 四向小车设备表
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceSrgv> selectDeviceSrgvList(DeviceSrgv deviceSrgv)
|
||||
{
|
||||
return deviceSrgvMapper.selectDeviceSrgvList(deviceSrgv);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceSrgv(DeviceSrgv deviceSrgv)
|
||||
{
|
||||
return deviceSrgvMapper.insertDeviceSrgv(deviceSrgv);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改四向小车设备表
|
||||
*
|
||||
* @param deviceSrgv 四向小车设备表
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceSrgv(DeviceSrgv deviceSrgv)
|
||||
{
|
||||
return deviceSrgvMapper.updateDeviceSrgv(deviceSrgv);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除四向小车设备表
|
||||
*
|
||||
* @param guids 需要删除的四向小车设备表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceSrgvByGuids(String[] guids)
|
||||
{
|
||||
return deviceSrgvMapper.deleteDeviceSrgvByGuids(guids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除四向小车设备表信息
|
||||
*
|
||||
* @param guid 四向小车设备表主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceSrgvByGuid(String guid)
|
||||
{
|
||||
return deviceSrgvMapper.deleteDeviceSrgvByGuid(guid);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.ssj.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.ssj.domain.DeviceSsj;
|
||||
import com.ruoyi.device.ssj.service.IDeviceSsjService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 输送机Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-04
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/ssj")
|
||||
public class DeviceSsjController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceSsjService deviceSsjService;
|
||||
|
||||
/**
|
||||
* 查询输送机列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceSsj deviceSsj)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceSsj> list = deviceSsjService.selectDeviceSsjList(deviceSsj);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出输送机列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:export')")
|
||||
@Log(title = "输送机", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceSsj deviceSsj)
|
||||
{
|
||||
List<DeviceSsj> list = deviceSsjService.selectDeviceSsjList(deviceSsj);
|
||||
ExcelUtil<DeviceSsj> util = new ExcelUtil<DeviceSsj>(DeviceSsj.class);
|
||||
util.exportExcel(response, list, "输送机数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取输送机详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceSsjService.selectDeviceSsjById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增输送机
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:add')")
|
||||
@Log(title = "输送机", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceSsj deviceSsj)
|
||||
{
|
||||
return toAjax(deviceSsjService.insertDeviceSsj(deviceSsj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改输送机
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:edit')")
|
||||
@Log(title = "输送机", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DeviceSsj deviceSsj)
|
||||
{
|
||||
return toAjax(deviceSsjService.updateDeviceSsj(deviceSsj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除输送机
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:ssj:remove')")
|
||||
@Log(title = "输送机", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceSsjService.deleteDeviceSsjByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.ruoyi.device.ssj.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 输送机对象 device_ssj
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-04
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class DeviceSsj extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long id;
|
||||
|
||||
/** 设备唯一编码 */
|
||||
@Excel(name = "设备唯一编码")
|
||||
private String deviceCode ;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String name ;
|
||||
|
||||
/** 类型 */
|
||||
@Excel(name = "类型")
|
||||
private String type;
|
||||
|
||||
/** 设备IP */
|
||||
@Excel(name = "设备IP")
|
||||
private String ipAddress;
|
||||
|
||||
/** PLC读取地址 */
|
||||
@Excel(name = "PLC读取地址")
|
||||
private String plcDbReadAddress;
|
||||
|
||||
/** 0-F 1-T */
|
||||
@Excel(name = "0-F 1-T")
|
||||
private String isActive;
|
||||
|
||||
/** PLC写入地址 */
|
||||
@Excel(name = "PLC写入地址")
|
||||
private String plcDbWriteAddress;
|
||||
|
||||
/** 入库请求 */
|
||||
@Excel(name = "入库请求")
|
||||
private int rkqq;
|
||||
|
||||
/** 空闲 */
|
||||
@Excel(name = "空闲")
|
||||
private int kx;
|
||||
|
||||
/** 到位 */
|
||||
@Excel(name = "到位")
|
||||
private int dw;
|
||||
|
||||
/** 条码 */
|
||||
@Excel(name = "条码")
|
||||
private String trayCode;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private int taskNo;
|
||||
|
||||
@Excel(name = "异常")
|
||||
private int exception;
|
||||
|
||||
@Excel(name = "托盘尺寸")
|
||||
private int traySize;
|
||||
|
||||
@Excel(name="允许放货")
|
||||
private int allowPut;
|
||||
|
||||
@Excel(name="输送线模式 1-入库 2-出库")
|
||||
private int model;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.ruoyi.device.ssj.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.ssj.domain.DeviceSsj;
|
||||
|
||||
/**
|
||||
* 输送机Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-04
|
||||
*/
|
||||
public interface DeviceSsjMapper
|
||||
{
|
||||
/**
|
||||
* 查询输送机
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 输送机
|
||||
*/
|
||||
public DeviceSsj selectDeviceSsjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询输送机列表
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 输送机集合
|
||||
*/
|
||||
public List<DeviceSsj> selectDeviceSsjList(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 新增输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceSsj(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 修改输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceSsj(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 删除输送机
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSsjById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除输送机
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSsjByIds(Long[] ids);
|
||||
|
||||
DeviceSsj selectSendData(Integer id);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.ssj.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.ssj.domain.DeviceSsj;
|
||||
|
||||
/**
|
||||
* 输送机Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-04
|
||||
*/
|
||||
public interface IDeviceSsjService
|
||||
{
|
||||
/**
|
||||
* 查询输送机
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 输送机
|
||||
*/
|
||||
public DeviceSsj selectDeviceSsjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询输送机列表
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 输送机集合
|
||||
*/
|
||||
public List<DeviceSsj> selectDeviceSsjList(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 新增输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceSsj(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 修改输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceSsj(DeviceSsj deviceSsj);
|
||||
|
||||
/**
|
||||
* 批量删除输送机
|
||||
*
|
||||
* @param ids 需要删除的输送机主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSsjByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除输送机信息
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceSsjById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package com.ruoyi.device.ssj.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.ssj.mapper.DeviceSsjMapper;
|
||||
import com.ruoyi.device.ssj.domain.DeviceSsj;
|
||||
import com.ruoyi.device.ssj.service.IDeviceSsjService;
|
||||
|
||||
/**
|
||||
* 输送机Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-07-04
|
||||
*/
|
||||
@Service
|
||||
public class DeviceSsjServiceImpl implements IDeviceSsjService
|
||||
{
|
||||
@Autowired
|
||||
private DeviceSsjMapper deviceSsjMapper;
|
||||
|
||||
/**
|
||||
* 查询输送机
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 输送机
|
||||
*/
|
||||
@Override
|
||||
public DeviceSsj selectDeviceSsjById(Long id)
|
||||
{
|
||||
return deviceSsjMapper.selectDeviceSsjById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询输送机列表
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 输送机
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceSsj> selectDeviceSsjList(DeviceSsj deviceSsj)
|
||||
{
|
||||
return deviceSsjMapper.selectDeviceSsjList(deviceSsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceSsj(DeviceSsj deviceSsj)
|
||||
{
|
||||
deviceSsj.setCreateTime(DateUtils.getNowDate());
|
||||
return deviceSsjMapper.insertDeviceSsj(deviceSsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改输送机
|
||||
*
|
||||
* @param deviceSsj 输送机
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceSsj(DeviceSsj deviceSsj)
|
||||
{
|
||||
return deviceSsjMapper.updateDeviceSsj(deviceSsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除输送机
|
||||
*
|
||||
* @param ids 需要删除的输送机主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceSsjByIds(Long[] ids)
|
||||
{
|
||||
return deviceSsjMapper.deleteDeviceSsjByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除输送机信息
|
||||
*
|
||||
* @param id 输送机主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceSsjById(Long id)
|
||||
{
|
||||
return deviceSsjMapper.deleteDeviceSsjById(id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,104 @@
|
||||
package com.ruoyi.device.tsj.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.ruoyi.device.tsj.domain.DeviceTsj;
|
||||
import com.ruoyi.device.tsj.service.IDeviceTsjService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 提升机设备Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-19
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/device/tsj")
|
||||
public class DeviceTsjController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private IDeviceTsjService deviceTsjService;
|
||||
|
||||
/**
|
||||
* 查询提升机设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(DeviceTsj deviceTsj)
|
||||
{
|
||||
startPage();
|
||||
List<DeviceTsj> list = deviceTsjService.selectDeviceTsjList(deviceTsj);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出提升机设备列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:export')")
|
||||
@Log(title = "提升机设备", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, DeviceTsj deviceTsj)
|
||||
{
|
||||
List<DeviceTsj> list = deviceTsjService.selectDeviceTsjList(deviceTsj);
|
||||
ExcelUtil<DeviceTsj> util = new ExcelUtil<DeviceTsj>(DeviceTsj.class);
|
||||
util.exportExcel(response, list, "提升机设备数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取提升机设备详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
return success(deviceTsjService.selectDeviceTsjById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增提升机设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:add')")
|
||||
@Log(title = "提升机设备", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody DeviceTsj deviceTsj)
|
||||
{
|
||||
return toAjax(deviceTsjService.insertDeviceTsj(deviceTsj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改提升机设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:edit')")
|
||||
@Log(title = "提升机设备", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody DeviceTsj deviceTsj)
|
||||
{
|
||||
return toAjax(deviceTsjService.updateDeviceTsj(deviceTsj));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除提升机设备
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('device:tsj:remove')")
|
||||
@Log(title = "提升机设备", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
return toAjax(deviceTsjService.deleteDeviceTsjByIds(ids));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.ruoyi.device.tsj.domain;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.ToString;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
* 提升机设备对象 device_tsj
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-19
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ToString
|
||||
public class DeviceTsj extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** id */
|
||||
private Long id;
|
||||
|
||||
/** 设备名称 */
|
||||
@Excel(name = "设备名称")
|
||||
private String name;
|
||||
|
||||
/** ip */
|
||||
@Excel(name = "ip")
|
||||
private String ip;
|
||||
|
||||
/** 端口 */
|
||||
@Excel(name = "端口")
|
||||
private String port;
|
||||
|
||||
/** plc读取地址 */
|
||||
@Excel(name = "plc读取地址")
|
||||
private String plcDbReadAddress;
|
||||
|
||||
/** plc写入地址 */
|
||||
@Excel(name = "plc写入地址")
|
||||
private String plcDbWriteAddress;
|
||||
|
||||
/** 任务号 */
|
||||
@Excel(name = "任务号")
|
||||
private Long rwh;
|
||||
|
||||
/** 执行阶段 */
|
||||
@Excel(name = "执行阶段")
|
||||
private Integer jdbz;
|
||||
|
||||
/** 设备状态 */
|
||||
@Excel(name = "设备状态")
|
||||
private Integer sbzt;
|
||||
|
||||
/** 触发方式 */
|
||||
@Excel(name = "触发方式")
|
||||
private Integer czfs;
|
||||
|
||||
/** 允许下发 */
|
||||
@Excel(name = "允许下发")
|
||||
private Integer yxxf;
|
||||
|
||||
/** 原排 */
|
||||
@Excel(name = "原排")
|
||||
private Integer yph;
|
||||
|
||||
/** 原列 */
|
||||
@Excel(name = "原列")
|
||||
private Integer ylh;
|
||||
|
||||
/** 原层 */
|
||||
@Excel(name = "原层")
|
||||
private Integer ych;
|
||||
|
||||
/** 目标排 */
|
||||
@Excel(name = "目标排")
|
||||
private Integer mbph;
|
||||
|
||||
/** 目标列 */
|
||||
@Excel(name = "目标列")
|
||||
private Integer mblh;
|
||||
|
||||
/** 目标层 */
|
||||
@Excel(name = "目标层")
|
||||
private Integer mbch;
|
||||
|
||||
/** 心跳信号 */
|
||||
@Excel(name = "心跳信号")
|
||||
private Integer xtxh;
|
||||
|
||||
/** 当前层数 */
|
||||
@Excel(name = "当前层数")
|
||||
private Integer dqcs;
|
||||
|
||||
/** 载货状态 */
|
||||
@Excel(name = "载货状态")
|
||||
private Integer hczt;
|
||||
|
||||
/** 备用1 */
|
||||
@Excel(name = "备用1")
|
||||
private Integer spare1;
|
||||
|
||||
/** 备用2 */
|
||||
@Excel(name = "备用2")
|
||||
private Integer spare2;
|
||||
|
||||
/** 备用3 */
|
||||
@Excel(name = "备用3")
|
||||
private Integer spare3;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.tsj.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.tsj.domain.DeviceTsj;
|
||||
|
||||
/**
|
||||
* 提升机设备Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-19
|
||||
*/
|
||||
public interface DeviceTsjMapper
|
||||
{
|
||||
/**
|
||||
* 查询提升机设备
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 提升机设备
|
||||
*/
|
||||
public DeviceTsj selectDeviceTsjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询提升机设备列表
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 提升机设备集合
|
||||
*/
|
||||
public List<DeviceTsj> selectDeviceTsjList(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 新增提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceTsj(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 修改提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceTsj(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 删除提升机设备
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceTsjById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除提升机设备
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceTsjByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.ruoyi.device.tsj.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.device.tsj.domain.DeviceTsj;
|
||||
|
||||
/**
|
||||
* 提升机设备Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-19
|
||||
*/
|
||||
public interface IDeviceTsjService
|
||||
{
|
||||
/**
|
||||
* 查询提升机设备
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 提升机设备
|
||||
*/
|
||||
public DeviceTsj selectDeviceTsjById(Long id);
|
||||
|
||||
/**
|
||||
* 查询提升机设备列表
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 提升机设备集合
|
||||
*/
|
||||
public List<DeviceTsj> selectDeviceTsjList(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 新增提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertDeviceTsj(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 修改提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateDeviceTsj(DeviceTsj deviceTsj);
|
||||
|
||||
/**
|
||||
* 批量删除提升机设备
|
||||
*
|
||||
* @param ids 需要删除的提升机设备主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceTsjByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除提升机设备信息
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteDeviceTsjById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
package com.ruoyi.device.tsj.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.ruoyi.device.tsj.mapper.DeviceTsjMapper;
|
||||
import com.ruoyi.device.tsj.domain.DeviceTsj;
|
||||
import com.ruoyi.device.tsj.service.IDeviceTsjService;
|
||||
|
||||
/**
|
||||
* 提升机设备Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-11-19
|
||||
*/
|
||||
@Service
|
||||
public class DeviceTsjServiceImpl implements IDeviceTsjService
|
||||
{
|
||||
@Autowired
|
||||
private DeviceTsjMapper deviceTsjMapper;
|
||||
|
||||
/**
|
||||
* 查询提升机设备
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 提升机设备
|
||||
*/
|
||||
@Override
|
||||
public DeviceTsj selectDeviceTsjById(Long id)
|
||||
{
|
||||
return deviceTsjMapper.selectDeviceTsjById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询提升机设备列表
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 提升机设备
|
||||
*/
|
||||
@Override
|
||||
public List<DeviceTsj> selectDeviceTsjList(DeviceTsj deviceTsj)
|
||||
{
|
||||
return deviceTsjMapper.selectDeviceTsjList(deviceTsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertDeviceTsj(DeviceTsj deviceTsj)
|
||||
{
|
||||
return deviceTsjMapper.insertDeviceTsj(deviceTsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改提升机设备
|
||||
*
|
||||
* @param deviceTsj 提升机设备
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateDeviceTsj(DeviceTsj deviceTsj)
|
||||
{
|
||||
return deviceTsjMapper.updateDeviceTsj(deviceTsj);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除提升机设备
|
||||
*
|
||||
* @param ids 需要删除的提升机设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceTsjByIds(Long[] ids)
|
||||
{
|
||||
return deviceTsjMapper.deleteDeviceTsjByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除提升机设备信息
|
||||
*
|
||||
* @param id 提升机设备主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteDeviceTsjById(Long id)
|
||||
{
|
||||
return deviceTsjMapper.deleteDeviceTsjById(id);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user