change - add传感器阵列
parent
b2087ae22c
commit
859af92917
@ -0,0 +1,118 @@
|
|||||||
|
package com.ruoyi.web.controller.system;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.TArraytemperaturedata;
|
||||||
|
import com.ruoyi.system.service.ITArraytemperaturedataService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 温度传感器阵列报Controller
|
||||||
|
*
|
||||||
|
* @author wenjy
|
||||||
|
* @date 2024-04-24
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/ArrayTemperatureData")
|
||||||
|
public class TArraytemperaturedataController extends BaseController {
|
||||||
|
private String prefix = "system/ArrayTemperatureData";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ITArraytemperaturedataService tArraytemperaturedataService;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String ArrayTemperatureData() {
|
||||||
|
return prefix + "/ArrayTemperatureData";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(TArraytemperaturedata tArraytemperaturedata) {
|
||||||
|
startPage();
|
||||||
|
List<TArraytemperaturedata> list = tArraytemperaturedataService.selectTArraytemperaturedataList(tArraytemperaturedata);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出温度传感器阵列报列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:export")
|
||||||
|
@Log(title = "温度传感器阵列报", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(TArraytemperaturedata tArraytemperaturedata) {
|
||||||
|
List<TArraytemperaturedata> list = tArraytemperaturedataService.selectTArraytemperaturedataList(tArraytemperaturedata);
|
||||||
|
ExcelUtil<TArraytemperaturedata> util = new ExcelUtil<TArraytemperaturedata>(TArraytemperaturedata.class);
|
||||||
|
return util.exportExcel(list, "ArrayTemperatureData");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add() {
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:add")
|
||||||
|
@Log(title = "温度传感器阵列报", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(TArraytemperaturedata tArraytemperaturedata) {
|
||||||
|
return toAjax(tArraytemperaturedataService.insertTArraytemperaturedata(tArraytemperaturedata));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@GetMapping("/edit/{objId}")
|
||||||
|
public String edit(@PathVariable("objId") Long objId, ModelMap mmap) {
|
||||||
|
TArraytemperaturedata tArraytemperaturedata = tArraytemperaturedataService.selectTArraytemperaturedataById(objId);
|
||||||
|
mmap.put("tArraytemperaturedata", tArraytemperaturedata);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:edit")
|
||||||
|
@Log(title = "温度传感器阵列报", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(TArraytemperaturedata tArraytemperaturedata) {
|
||||||
|
return toAjax(tArraytemperaturedataService.updateTArraytemperaturedata(tArraytemperaturedata));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:ArrayTemperatureData:remove")
|
||||||
|
@Log(title = "温度传感器阵列报", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids) {
|
||||||
|
return toAjax(tArraytemperaturedataService.deleteTArraytemperaturedataByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.TArraytemperaturedata;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 温度传感器阵列报Mapper接口
|
||||||
|
*
|
||||||
|
* @author wenjy
|
||||||
|
* @date 2024-04-24
|
||||||
|
*/
|
||||||
|
public interface TArraytemperaturedataMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 温度传感器阵列报
|
||||||
|
*/
|
||||||
|
public TArraytemperaturedata selectTArraytemperaturedataById(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报列表
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 温度传感器阵列报集合
|
||||||
|
*/
|
||||||
|
public List<TArraytemperaturedata> selectTArraytemperaturedataList(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTArraytemperaturedataById(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param objIds 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTArraytemperaturedataByIds(String[] objIds);
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.system.domain.TArraytemperaturedata;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 温度传感器阵列报Service接口
|
||||||
|
*
|
||||||
|
* @author wenjy
|
||||||
|
* @date 2024-04-24
|
||||||
|
*/
|
||||||
|
public interface ITArraytemperaturedataService {
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 温度传感器阵列报
|
||||||
|
*/
|
||||||
|
public TArraytemperaturedata selectTArraytemperaturedataById(Long objId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报列表
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 温度传感器阵列报集合
|
||||||
|
*/
|
||||||
|
public List<TArraytemperaturedata> selectTArraytemperaturedataList(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTArraytemperaturedataByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除温度传感器阵列报信息
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTArraytemperaturedataById(Long objId);
|
||||||
|
}
|
||||||
@ -0,0 +1,94 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.TArraytemperaturedataMapper;
|
||||||
|
import com.ruoyi.system.domain.TArraytemperaturedata;
|
||||||
|
import com.ruoyi.system.service.ITArraytemperaturedataService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 温度传感器阵列报Service业务层处理
|
||||||
|
*
|
||||||
|
* @author wenjy
|
||||||
|
* @date 2024-04-24
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TArraytemperaturedataServiceImpl implements ITArraytemperaturedataService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TArraytemperaturedataMapper tArraytemperaturedataMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TArraytemperaturedata selectTArraytemperaturedataById(Long objId)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.selectTArraytemperaturedataById(objId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询温度传感器阵列报列表
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 温度传感器阵列报
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TArraytemperaturedata> selectTArraytemperaturedataList(TArraytemperaturedata tArraytemperaturedata)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.selectTArraytemperaturedataList(tArraytemperaturedata);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.insertTArraytemperaturedata(tArraytemperaturedata);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改温度传感器阵列报
|
||||||
|
*
|
||||||
|
* @param tArraytemperaturedata 温度传感器阵列报
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTArraytemperaturedata(TArraytemperaturedata tArraytemperaturedata)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.updateTArraytemperaturedata(tArraytemperaturedata);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除温度传感器阵列报对象
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTArraytemperaturedataByIds(String ids)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.deleteTArraytemperaturedataByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除温度传感器阵列报信息
|
||||||
|
*
|
||||||
|
* @param objId 温度传感器阵列报ID
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTArraytemperaturedataById(Long objId)
|
||||||
|
{
|
||||||
|
return tArraytemperaturedataMapper.deleteTArraytemperaturedataById(objId);
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue