feat(business): 新增炉火段工艺参数管理功能
- 添加 SetupFurTemp 实体类及对应数据库映射文件 - 实现炉火段工艺参数的增删改查接口 - 提供 RESTful 控制器支持前后端交互 - 支持导出工艺参数数据为 Excel 文件 - 增加权限校验确保操作安全性
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
package com.fizz.business.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.fizz.business.domain.SetupFurTemp;
|
||||
import com.fizz.business.service.ISetupFurTempService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/business/fur")
|
||||
public class SetupFurTempController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISetupFurTempService setupFurTempService;
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
startPage();
|
||||
List<SetupFurTemp> list = setupFurTempService.selectSetupFurTempList(setupFurTemp);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出炉火段工艺参数列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:export')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SetupFurTemp setupFurTemp)
|
||||
{
|
||||
List<SetupFurTemp> list = setupFurTempService.selectSetupFurTempList(setupFurTemp);
|
||||
ExcelUtil<SetupFurTemp> util = new ExcelUtil<SetupFurTemp>(SetupFurTemp.class);
|
||||
util.exportExcel(response, list, "炉火段工艺参数数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取炉火段工艺参数详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:query')")
|
||||
@GetMapping(value = "/{steelGrade}")
|
||||
public AjaxResult getInfo(@PathVariable("steelGrade") String steelGrade)
|
||||
{
|
||||
return success(setupFurTempService.selectSetupFurTempBySteelGrade(steelGrade));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:add')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return toAjax(setupFurTempService.insertSetupFurTemp(setupFurTemp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:edit')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return toAjax(setupFurTempService.updateSetupFurTemp(setupFurTemp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:remove')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{steelGrades}")
|
||||
public AjaxResult remove(@PathVariable String[] steelGrades)
|
||||
{
|
||||
return toAjax(setupFurTempService.deleteSetupFurTempBySteelGrades(steelGrades));
|
||||
}
|
||||
}
|
||||
@@ -148,4 +148,19 @@ public class PdiSetups implements Serializable
|
||||
@TableField("TYPE")
|
||||
private Long type;
|
||||
|
||||
/** 预热段出口板温 */
|
||||
@Excel(name = "预热段出口板温")
|
||||
@TableField("PREHEATING_SECTION")
|
||||
private Float preheatingSection;
|
||||
|
||||
/** 加热段出口板温 */
|
||||
@Excel(name = "加热段出口板温")
|
||||
@TableField("HEATING_SECTION")
|
||||
private Float heatingSection;
|
||||
|
||||
/** 冷却段出口板温 */
|
||||
@Excel(name = "冷却段出口板温")
|
||||
@TableField("COOLING_SECTION")
|
||||
private Float coolingSection;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
package com.fizz.business.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;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数对象 setup_fur_temp
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public class SetupFurTemp extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String steelGrade;
|
||||
|
||||
/** 预热段出口板温 */
|
||||
@Excel(name = "预热段出口板温")
|
||||
private Long value1;
|
||||
|
||||
/** 加热段出口板温 */
|
||||
@Excel(name = "加热段出口板温")
|
||||
private Long value2;
|
||||
|
||||
/** 冷却段出口板温 */
|
||||
@Excel(name = "冷却段出口板温")
|
||||
private Long value3;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value4;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value5;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value6;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value7;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value8;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value9;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value10;
|
||||
|
||||
public void setSteelGrade(String steelGrade)
|
||||
{
|
||||
this.steelGrade = steelGrade;
|
||||
}
|
||||
|
||||
public String getSteelGrade()
|
||||
{
|
||||
return steelGrade;
|
||||
}
|
||||
public void setValue1(Long value1)
|
||||
{
|
||||
this.value1 = value1;
|
||||
}
|
||||
|
||||
public Long getValue1()
|
||||
{
|
||||
return value1;
|
||||
}
|
||||
public void setValue2(Long value2)
|
||||
{
|
||||
this.value2 = value2;
|
||||
}
|
||||
|
||||
public Long getValue2()
|
||||
{
|
||||
return value2;
|
||||
}
|
||||
public void setValue3(Long value3)
|
||||
{
|
||||
this.value3 = value3;
|
||||
}
|
||||
|
||||
public Long getValue3()
|
||||
{
|
||||
return value3;
|
||||
}
|
||||
public void setValue4(Long value4)
|
||||
{
|
||||
this.value4 = value4;
|
||||
}
|
||||
|
||||
public Long getValue4()
|
||||
{
|
||||
return value4;
|
||||
}
|
||||
public void setValue5(Long value5)
|
||||
{
|
||||
this.value5 = value5;
|
||||
}
|
||||
|
||||
public Long getValue5()
|
||||
{
|
||||
return value5;
|
||||
}
|
||||
public void setValue6(Long value6)
|
||||
{
|
||||
this.value6 = value6;
|
||||
}
|
||||
|
||||
public Long getValue6()
|
||||
{
|
||||
return value6;
|
||||
}
|
||||
public void setValue7(Long value7)
|
||||
{
|
||||
this.value7 = value7;
|
||||
}
|
||||
|
||||
public Long getValue7()
|
||||
{
|
||||
return value7;
|
||||
}
|
||||
public void setValue8(Long value8)
|
||||
{
|
||||
this.value8 = value8;
|
||||
}
|
||||
|
||||
public Long getValue8()
|
||||
{
|
||||
return value8;
|
||||
}
|
||||
public void setValue9(Long value9)
|
||||
{
|
||||
this.value9 = value9;
|
||||
}
|
||||
|
||||
public Long getValue9()
|
||||
{
|
||||
return value9;
|
||||
}
|
||||
public void setValue10(Long value10)
|
||||
{
|
||||
this.value10 = value10;
|
||||
}
|
||||
|
||||
public Long getValue10()
|
||||
{
|
||||
return value10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("steelGrade", getSteelGrade())
|
||||
.append("value1", getValue1())
|
||||
.append("value2", getValue2())
|
||||
.append("value3", getValue3())
|
||||
.append("value4", getValue4())
|
||||
.append("value5", getValue5())
|
||||
.append("value6", getValue6())
|
||||
.append("value7", getValue7())
|
||||
.append("value8", getValue8())
|
||||
.append("value9", getValue9())
|
||||
.append("value10", getValue10())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fizz.business.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public interface SetupFurTempMapper
|
||||
{
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数集合
|
||||
*/
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fizz.business.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public interface ISetupFurTempService
|
||||
{
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数集合
|
||||
*/
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的炉火段工艺参数主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades);
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数信息
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.fizz.business.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.fizz.business.mapper.SetupFurTempMapper;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
import com.fizz.business.service.ISetupFurTempService;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
@Service
|
||||
public class SetupFurTempServiceImpl implements ISetupFurTempService
|
||||
{
|
||||
@Autowired
|
||||
private SetupFurTempMapper setupFurTempMapper;
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
@Override
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade)
|
||||
{
|
||||
return setupFurTempMapper.selectSetupFurTempBySteelGrade(steelGrade);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
@Override
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return setupFurTempMapper.selectSetupFurTempList(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
setupFurTemp.setCreateTime(DateUtils.getNowDate());
|
||||
return setupFurTempMapper.insertSetupFurTemp(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
setupFurTemp.setUpdateTime(DateUtils.getNowDate());
|
||||
return setupFurTempMapper.updateSetupFurTemp(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades)
|
||||
{
|
||||
return setupFurTempMapper.deleteSetupFurTempBySteelGrades(steelGrades);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数信息
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade)
|
||||
{
|
||||
return setupFurTempMapper.deleteSetupFurTempBySteelGrade(steelGrade);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user