Merge remote-tracking branch 'origin/master'

# Conflicts:
#	.gitignore
This commit is contained in:
Penknife
2025-10-31 08:50:01 +08:00
121 changed files with 10974 additions and 36 deletions

View File

@@ -0,0 +1,93 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.service.IPdiSetupService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.PdiSetups;
import com.fizz.business.service.IPdiSetupService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 生产计划的参数详情Controller
*
* @author Joshi
* @date 2025-09-25
*/
@RestController
@RequestMapping("/business/setup")
public class PdiSetupController extends BaseController
{
@Autowired
private IPdiSetupService pdiSetupService;
/**
* 查询生产计划的参数详情列表
*/
@PostMapping("/list")
public TableDataInfo list(@RequestBody PdiSetups pdiSetup)
{
startPage();
List<PdiSetups> list = pdiSetupService.selectPdiSetupList(pdiSetup);
return getDataTable(list);
}
/**
* 导出生产计划的参数详情列表
*/
@Log(title = "生产计划的参数详情", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PdiSetups pdiSetup)
{
List<PdiSetups> list = pdiSetupService.selectPdiSetupList(pdiSetup);
ExcelUtil<PdiSetups> util = new ExcelUtil<PdiSetups>(PdiSetups.class);
util.exportExcel(response, list, "生产计划的参数详情数据");
}
/**
* 获取生产计划的参数详情详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(pdiSetupService.selectPdiSetupByid(id));
}
/**
* 新增生产计划的参数详情
*/
@Log(title = "生产计划的参数详情", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody PdiSetups pdiSetup)
{
return toAjax(pdiSetupService.insertPdiSetup(pdiSetup));
}
/**
* 修改生产计划的参数详情
*/
@Log(title = "生产计划的参数详情", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody PdiSetups pdiSetup)
{
return toAjax(pdiSetupService.updatePdiSetup(pdiSetup));
}
/**
* 删除生产计划的参数详情
*/
@Log(title = "生产计划的参数详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(pdiSetupService.deletePdiSetupByids(ids));
}
}

View File

@@ -45,4 +45,10 @@ public class ProStoppageController {
public R<List<ProStoppage>> list(@RequestBody ProStoppageForm form) {
return R.ok(proStoppageService.listAll(form));
}
//计算停机次数停机时长 作业率
@PostMapping("/calc")
@Operation(summary ="计算停机次数停机时长 作业率")
public R<List<Object>> calc(@RequestBody ProStoppageForm form) {
return R.ok(proStoppageService.calc(form));
}
}

View File

@@ -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));
}
}

View File

@@ -0,0 +1,95 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.form.TensionDeleteForm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.SetupTension;
import com.fizz.business.service.ISetupTensionService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 全线张力Controller
*
* @author ruoyi
* @date 2025-09-26
*/
@RestController
@RequestMapping("/business/tension")
public class SetupTensionController extends BaseController
{
@Autowired
private ISetupTensionService setupTensionService;
/**
* 查询全线张力列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTension setupTension)
{
startPage();
List<SetupTension> list = setupTensionService.selectSetupTensionList(setupTension);
return getDataTable(list);
}
/**
* 导出全线张力列表
*/
@Log(title = "全线张力", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SetupTension setupTension)
{
List<SetupTension> list = setupTensionService.selectSetupTensionList(setupTension);
ExcelUtil<SetupTension> util = new ExcelUtil<SetupTension>(SetupTension.class);
util.exportExcel(response, list, "全线张力数据");
}
/**
* 获取全线张力详细信息
*/
@GetMapping()
public AjaxResult getInfo(@RequestParam Long thick ,@RequestParam Long yieldStren)
{
return success(setupTensionService.selectSetupTensionByThick(thick, yieldStren));
}
/**
* 新增全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTension setupTension)
{
return toAjax(setupTensionService.insertSetupTension(setupTension));
}
/**
* 修改全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTension setupTension)
{
return toAjax(setupTensionService.updateSetupTension(setupTension));
}
/**
* 删除全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.DELETE)
@DeleteMapping("/tension") // 建议添加路径区分不同删除接口
public AjaxResult removeTension(@RequestBody TensionDeleteForm form) {
return toAjax(setupTensionService.deleteSetupTensionByThicks(
form.getThicks(),
form.getYieldStrens()
));
}
}

View File

@@ -0,0 +1,96 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.form.TlDeleteForm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.SetupTl;
import com.fizz.business.service.ISetupTlService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 拉矫机参数Controller
*
* @author ruoyi
* @date 2025-09-26
*/
@RestController
@RequestMapping("/business/tl")
public class SetupTlController extends BaseController
{
@Autowired
private ISetupTlService setupTlService;
/**
* 查询拉矫机参数列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTl setupTl)
{
startPage();
List<SetupTl> list = setupTlService.selectSetupTlList(setupTl);
return getDataTable(list);
}
/**
* 导出拉矫机参数列表
*/
@Log(title = "拉矫机参数", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SetupTl setupTl)
{
List<SetupTl> list = setupTlService.selectSetupTlList(setupTl);
ExcelUtil<SetupTl> util = new ExcelUtil<SetupTl>(SetupTl.class);
util.exportExcel(response, list, "拉矫机参数数据");
}
/**
* 获取拉矫机参数详细信息
*/
@GetMapping()
public AjaxResult getInfo(@RequestParam String steelGrade,
@RequestParam Long yieldStren,
@RequestParam Long thick)
{
return success(setupTlService.selectSetupTlBySteelGrade(steelGrade, yieldStren, thick));
}
/**
* 新增拉矫机参数
*/
@Log(title = "拉矫机参数", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTl setupTl)
{
return toAjax(setupTlService.insertSetupTl(setupTl));
}
/**
* 修改拉矫机参数
*/
@Log(title = "拉矫机参数", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTl setupTl)
{
return toAjax(setupTlService.updateSetupTl(setupTl));
}
// 拉矫机参数删除接口
@Log(title = "拉矫机参数", businessType = BusinessType.DELETE)
@DeleteMapping("/tl") // 不同路径区分
public AjaxResult removeTl(@RequestBody TlDeleteForm form) {
return toAjax(setupTlService.deleteSetupTlBySteelGrades(
form.getSteelGrades(),
form.getYieldStrens(),
form.getThicks()
));
}
}

View File

@@ -0,0 +1,96 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.form.TmBendforceDeleteForm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.SetupTmBendforce;
import com.fizz.business.service.ISetupTmBendforceService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 光整机弯辊力Controller
*
* @author Joshi
* @date 2025-09-26
*/
@RestController
@RequestMapping("/business/bendforce")
public class SetupTmBendforceController extends BaseController
{
@Autowired
private ISetupTmBendforceService setupTmBendforceService;
/**
* 查询光整机弯辊力列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTmBendforce setupTmBendforce)
{
startPage();
List<SetupTmBendforce> list = setupTmBendforceService.selectSetupTmBendforceList(setupTmBendforce);
return getDataTable(list);
}
/**
* 导出光整机弯辊力列表
*/
@Log(title = "光整机弯辊力", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SetupTmBendforce setupTmBendforce)
{
List<SetupTmBendforce> list = setupTmBendforceService.selectSetupTmBendforceList(setupTmBendforce);
ExcelUtil<SetupTmBendforce> util = new ExcelUtil<SetupTmBendforce>(SetupTmBendforce.class);
util.exportExcel(response, list, "光整机弯辊力数据");
}
/**
* 获取光整机弯辊力详细信息
*/
@GetMapping()
public AjaxResult getInfo(@RequestParam Long width,
@RequestParam Long rollForce)
{
return success(setupTmBendforceService.selectSetupTmBendforceByWidth(width,rollForce));
}
/**
* 新增光整机弯辊力
*/
@Log(title = "光整机弯辊力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTmBendforce setupTmBendforce)
{
return toAjax(setupTmBendforceService.insertSetupTmBendforce(setupTmBendforce));
}
/**
* 修改光整机弯辊力
*/
@Log(title = "光整机弯辊力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTmBendforce setupTmBendforce)
{
return toAjax(setupTmBendforceService.updateSetupTmBendforce(setupTmBendforce));
}
/**
* 删除光整机弯辊力
*/
@Log(title = "光整机弯辊力", businessType = BusinessType.DELETE)
@DeleteMapping("/tm/bendforce")
public AjaxResult removeTmBendforce(@RequestBody TmBendforceDeleteForm form) {
return toAjax(setupTmBendforceService.deleteSetupTmBendforceByWidths(
form.getWidths(),
form.getRollForces()
));
}
}

View File

@@ -0,0 +1,98 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.form.TmMeshDeleteForm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.SetupTmMesh;
import com.fizz.business.service.ISetupTmMeshService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 光整机插入量Controller
*
* @author Joshi
* @date 2025-09-26
*/
@RestController
@RequestMapping("/business/mesh")
public class SetupTmMeshController extends BaseController
{
@Autowired
private ISetupTmMeshService setupTmMeshService;
/**
* 查询光整机插入量列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTmMesh setupTmMesh)
{
startPage();
List<SetupTmMesh> list = setupTmMeshService.selectSetupTmMeshList(setupTmMesh);
return getDataTable(list);
}
/**
* 导出光整机插入量列表
*/
@Log(title = "光整机插入量", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SetupTmMesh setupTmMesh)
{
List<SetupTmMesh> list = setupTmMeshService.selectSetupTmMeshList(setupTmMesh);
ExcelUtil<SetupTmMesh> util = new ExcelUtil<SetupTmMesh>(SetupTmMesh.class);
util.exportExcel(response, list, "光整机插入量数据");
}
/**
* 获取光整机插入量详细信息
*/
@GetMapping()
public AjaxResult getInfo(@RequestParam String steelGrade,
@RequestParam Long yieldStren,
@RequestParam Long thick)
{
return success(setupTmMeshService.selectSetupTmMeshBySteelGrade(steelGrade, yieldStren, thick));
}
/**
* 新增光整机插入量
*/
@Log(title = "光整机插入量", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTmMesh setupTmMesh)
{
return toAjax(setupTmMeshService.insertSetupTmMesh(setupTmMesh));
}
/**
* 修改光整机插入量
*/
@Log(title = "光整机插入量", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTmMesh setupTmMesh)
{
return toAjax(setupTmMeshService.updateSetupTmMesh(setupTmMesh));
}
/**
* 删除光整机插入量
*/
@Log(title = "光整机插入量", businessType = BusinessType.DELETE)
@DeleteMapping("/tm/mesh")
public AjaxResult removeTmMesh(@RequestBody TmMeshDeleteForm form) {
return toAjax(setupTmMeshService.deleteSetupTmMeshBySteelGrades(
form.getSteelGrades(),
form.getYieldStrens(),
form.getThicks()
));
}
}

View File

@@ -0,0 +1,100 @@
package com.fizz.business.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import com.fizz.business.form.TmRollforceDeleteForm;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
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.SetupTmRollforce;
import com.fizz.business.service.ISetupTmRollforceService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 光整机轧制力Controller
*
* @author Joshi
* @date 2025-09-26
*/
@RestController
@RequestMapping("/business/rollforce")
public class SetupTmRollforceController extends BaseController
{
@Autowired
private ISetupTmRollforceService setupTmRollforceService;
/**
* 查询光整机轧制力列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTmRollforce setupTmRollforce)
{
startPage();
List<SetupTmRollforce> list = setupTmRollforceService.selectSetupTmRollforceList(setupTmRollforce);
return getDataTable(list);
}
/**
* 导出光整机轧制力列表
*/
@Log(title = "光整机轧制力", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SetupTmRollforce setupTmRollforce)
{
List<SetupTmRollforce> list = setupTmRollforceService.selectSetupTmRollforceList(setupTmRollforce);
ExcelUtil<SetupTmRollforce> util = new ExcelUtil<SetupTmRollforce>(SetupTmRollforce.class);
util.exportExcel(response, list, "光整机轧制力数据");
}
/**
* 获取光整机轧制力详细信息
*/
@GetMapping()
public AjaxResult getInfo(@RequestParam String steelGrade,
@RequestParam Long yieldStren,
@RequestParam Long thick,
@RequestParam Long elong)
{
return success(setupTmRollforceService.selectSetupTmRollforceBySteelGrade(steelGrade, yieldStren, thick, elong));
}
/**
* 新增光整机轧制力
*/
@Log(title = "光整机轧制力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTmRollforce setupTmRollforce)
{
return toAjax(setupTmRollforceService.insertSetupTmRollforce(setupTmRollforce));
}
/**
* 修改光整机轧制力
*/
@Log(title = "光整机轧制力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTmRollforce setupTmRollforce)
{
return toAjax(setupTmRollforceService.updateSetupTmRollforce(setupTmRollforce));
}
/**
* 删除光整机轧制力
*/
@Log(title = "光整机轧制力", businessType = BusinessType.DELETE)
@DeleteMapping("/tm/rollforce")
public AjaxResult removeTmRollforce(@RequestBody TmRollforceDeleteForm form) {
return toAjax(setupTmRollforceService.deleteSetupTmRollforceBySteelGrades(
form.getSteelGrades(),
form.getThicks(),
form.getYieldStrens(),
form.getElongs()
));
}
}

View File

@@ -58,7 +58,7 @@ public class SteelGradeInfoController {
queryWrapper.eq(StdAlloy::getGradeid, gradeid); // 只查询 gradeId 和 name 字段
// 查询 StdAlloy 数据
StdAlloy stdAlloyList = steelGradeInfoService.getById(queryWrapper);
StdAlloy stdAlloyList = steelGradeInfoService.getById(gradeid);
// 返回结果
return R.ok(stdAlloyList);

View File

@@ -0,0 +1,166 @@
package com.fizz.business.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
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 java.io.Serializable;
/**
* 生产计划的参数详情对象 pdi_setup
*
* @author Joshi
* @date 2025-09-25
*/
@Data
@TableName("pdi_setup")
public class PdiSetups implements Serializable
{
private static final long serialVersionUID = 1L;
/** 主键ID */
@TableId(value = "ID", type = IdType.AUTO)
private Long id;
/** 钢卷号 */
@Excel(name = "钢卷号")
@TableField("COILID")
private String coilid;
/** 计划号 */
@Excel(name = "计划号")
@TableField("PLANID")
private String planid;
/** 开卷机张力 */
@Excel(name = "开卷机张力")
@TableField("POR_TENSION")
private Long porTension;
/** 入口活套张力 */
@Excel(name = "入口活套张力")
@TableField("CEL_TENSION")
private Long celTension;
/** 清洗段张力 */
@Excel(name = "清洗段张力")
@TableField("CLEAN_TENSION")
private Long cleanTension;
/** 炉区张力 */
@Excel(name = "炉区张力")
@TableField("FUR_TENSION")
private Long furTension;
/** 冷却塔张力 */
@Excel(name = "冷却塔张力")
@TableField("TOWER_TENSION")
private Long towerTension;
/** 光整机不投张力 */
@Excel(name = "光整机不投张力")
@TableField("TM_NONE_TENSION")
private Long tmNoneTension;
/** 光整机入口张力 */
@Excel(name = "光整机入口张力")
@TableField("TM_ENTRY_TENSION")
private Long tmEntryTension;
/** 光整机出口张力 */
@Excel(name = "光整机出口张力")
@TableField("TM_EXIT_TENSION")
private Long tmExitTension;
/** 光整机轧制力 */
@Excel(name = "光整机轧制力")
@TableField("TM_ROLLFORCE")
private Long tmRollforce;
/** 光整机弯辊力 */
@Excel(name = "光整机弯辊力")
@TableField("TM_BENDFORCE")
private Long tmBendforce;
/** 光整机防皱辊插入量 */
@Excel(name = "光整机防皱辊插入量")
@TableField("TM_ACR_MESH")
private Long tmAcrMesh;
/** 光整机防颤辊插入量 */
@Excel(name = "光整机防颤辊插入量")
@TableField("TM_BR_MESH")
private Long tmBrMesh;
/** 拉矫机不投张力 */
@Excel(name = "拉矫机不投张力")
@TableField("TL_NONE_TENSION")
private Long tlNoneTension;
/** 拉矫机出口张力 */
@Excel(name = "拉矫机出口张力")
@TableField("TL_EXIT_TENSION")
private Long tlExitTension;
/** 拉矫机延伸率 */
@Excel(name = "拉矫机延伸率")
@TableField("TL_ELONG")
private Long tlElong;
/** 拉矫机矫直辊插入量1 */
@Excel(name = "拉矫机矫直辊插入量1")
@TableField("TL_LVL_MESH1")
private Long tlLvlMesh1;
/** 拉矫机矫直辊插入量2 */
@Excel(name = "拉矫机矫直辊插入量2")
@TableField("TL_LVL_MESH2")
private Long tlLvlMesh2;
/** 拉矫机防横弓插入量 */
@Excel(name = "拉矫机防横弓插入量")
@TableField("TL_ACB_MESH")
private Long tlAcbMesh;
/** 后处理张力 */
@Excel(name = "后处理张力")
@TableField("COAT_TENSION")
private Long coatTension;
/** 出口活套张力 */
@Excel(name = "出口活套张力")
@TableField("CXL_TENSION")
private Long cxlTension;
/** 卷取机张力 */
@Excel(name = "卷取机张力")
@TableField("TR_TENSION")
private Long trTension;
/** 类型,或可用于记录更改次数 */
@Excel(name = "类型,或可用于记录更改次数")
@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;
}

View File

@@ -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();
}
}

View File

@@ -0,0 +1,262 @@
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_tension
*
* @author ruoyi
* @date 2025-09-26
*/
public class SetupTension extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private Long thick;
/** 强度 */
private Long yieldStren;
/** 开卷机张力 */
@Excel(name = "开卷机张力")
private Long value1;
/** 入口活套 */
@Excel(name = "入口活套")
private Long value2;
/** 清洗段 */
@Excel(name = "清洗段")
private Long value3;
/** 炉区张力 */
@Excel(name = "炉区张力")
private Long value4;
/** 冷却塔 */
@Excel(name = "冷却塔")
private Long value5;
/** 光整机-不投 */
@Excel(name = "光整机-不投")
private Long value6;
/** 光整机入口 */
@Excel(name = "光整机入口")
private Long value7;
/** 光整机出口 */
@Excel(name = "光整机出口")
private Long value8;
/** 拉矫机-不投 */
@Excel(name = "拉矫机-不投")
private Long value9;
/** 拉矫机出口 */
@Excel(name = "拉矫机出口")
private Long value10;
/** 后处理 */
@Excel(name = "后处理")
private Long value11;
/** 出口活套 */
@Excel(name = "出口活套")
private Long value12;
/** 卷取机 */
@Excel(name = "卷取机")
private Long value13;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value14;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value15;
public void setThick(Long thick)
{
this.thick = thick;
}
public Long getThick()
{
return thick;
}
public void setYieldStren(Long yieldStren)
{
this.yieldStren = yieldStren;
}
public Long getYieldStren()
{
return yieldStren;
}
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;
}
public void setValue11(Long value11)
{
this.value11 = value11;
}
public Long getValue11()
{
return value11;
}
public void setValue12(Long value12)
{
this.value12 = value12;
}
public Long getValue12()
{
return value12;
}
public void setValue13(Long value13)
{
this.value13 = value13;
}
public Long getValue13()
{
return value13;
}
public void setValue14(Long value14)
{
this.value14 = value14;
}
public Long getValue14()
{
return value14;
}
public void setValue15(Long value15)
{
this.value15 = value15;
}
public Long getValue15()
{
return value15;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("thick", getThick())
.append("yieldStren", getYieldStren())
.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("value11", getValue11())
.append("value12", getValue12())
.append("value13", getValue13())
.append("value14", getValue14())
.append("value15", getValue15())
.append("createTime", getCreateTime())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@@ -0,0 +1,205 @@
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_tl
*
* @author ruoyi
* @date 2025-09-26
*/
public class SetupTl extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private String steelGrade;
/** $column.columnComment */
private Long yieldStren;
/** $column.columnComment */
private Long thick;
/** 延伸率 */
@Excel(name = "延伸率")
private Long value1;
/** 矫直辊插入量1 */
@Excel(name = "矫直辊插入量1")
private Long value2;
/** 矫直辊插入量2 */
@Excel(name = "矫直辊插入量2")
private Long value3;
/** 防横弓插入量 */
@Excel(name = "防横弓插入量")
private Long value4;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value5;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value6;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value7;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value8;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value9;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value10;
public void setSteelGrade(String steelGrade)
{
this.steelGrade = steelGrade;
}
public String getSteelGrade()
{
return steelGrade;
}
public void setYieldStren(Long yieldStren)
{
this.yieldStren = yieldStren;
}
public Long getYieldStren()
{
return yieldStren;
}
public void setThick(Long thick)
{
this.thick = thick;
}
public Long getThick()
{
return thick;
}
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("yieldStren", getYieldStren())
.append("thick", getThick())
.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();
}
}

View File

@@ -0,0 +1,108 @@
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_tm_bendforce
*
* @author Joshi
* @date 2025-09-26
*/
public class SetupTmBendforce extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 宽度 */
private Long width;
/** 轧制力 */
private Long rollForce;
/** 弯辊力 */
@Excel(name = "弯辊力")
private Long value1;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value2;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value3;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value4;
public void setWidth(Long width)
{
this.width = width;
}
public Long getWidth()
{
return width;
}
public void setRollForce(Long rollForce)
{
this.rollForce = rollForce;
}
public Long getRollForce()
{
return rollForce;
}
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;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("width", getWidth())
.append("rollForce", getRollForce())
.append("value1", getValue1())
.append("value2", getValue2())
.append("value3", getValue3())
.append("value4", getValue4())
.append("updateTime", getUpdateTime())
.append("createTime", getCreateTime())
.toString();
}
}

View File

@@ -0,0 +1,205 @@
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_tm_mesh
*
* @author Joshi
* @date 2025-09-26
*/
public class SetupTmMesh extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private String steelGrade;
/** $column.columnComment */
private Long yieldStren;
/** $column.columnComment */
private Long thick;
/** 防皱辊插入量 */
@Excel(name = "防皱辊插入量")
private Long value1;
/** 防颤辊插入量 */
@Excel(name = "防颤辊插入量")
private Long value2;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value3;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value4;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value5;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value6;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value7;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value8;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value9;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value10;
public void setSteelGrade(String steelGrade)
{
this.steelGrade = steelGrade;
}
public String getSteelGrade()
{
return steelGrade;
}
public void setYieldStren(Long yieldStren)
{
this.yieldStren = yieldStren;
}
public Long getYieldStren()
{
return yieldStren;
}
public void setThick(Long thick)
{
this.thick = thick;
}
public Long getThick()
{
return thick;
}
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("yieldStren", getYieldStren())
.append("thick", getThick())
.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();
}
}

View File

@@ -0,0 +1,218 @@
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_tm_rollforce
*
* @author Joshi
* @date 2025-09-26
*/
public class SetupTmRollforce extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** $column.columnComment */
private String steelGrade;
/** $column.columnComment */
private Long thick;
/** $column.columnComment */
private Long yieldStren;
/** 延伸率 */
private Long elong;
/** 轧制力 */
@Excel(name = "轧制力")
private Long value1;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value2;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value3;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value4;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value5;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value6;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value7;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value8;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value9;
/** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private Long value10;
public void setSteelGrade(String steelGrade)
{
this.steelGrade = steelGrade;
}
public String getSteelGrade()
{
return steelGrade;
}
public void setThick(Long thick)
{
this.thick = thick;
}
public Long getThick()
{
return thick;
}
public void setYieldStren(Long yieldStren)
{
this.yieldStren = yieldStren;
}
public Long getYieldStren()
{
return yieldStren;
}
public void setElong(Long elong)
{
this.elong = elong;
}
public Long getElong()
{
return elong;
}
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("thick", getThick())
.append("yieldStren", getYieldStren())
.append("elong", getElong())
.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();
}
}

View File

@@ -1,36 +1,83 @@
package com.fizz.business.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class StdAlloy {
private Integer gradeid; // GRADEID
private String name; // NAME
private Integer origin; // ORIGIN
private Float sigma0; // SIGMA0
private Float firstSigma0; // FIRST_SIGMA0
private Float initSigma; // INIT_SIGMA
private Float ro; // RO
private Integer classId; // CLASSID
private Float a; // A
private Float b; // B
private Float c; // C
private Float d; // D
private Float kc0; // KC0
private Float kc1; // KC1
private Float kc2; // KC2
private Float kc3; // KC3
private Float kc4; // KC4
private Float nu; // NU
private Float e; // E
private Float chal; // CHAL
private Float temp0; // TEMP0
private Float strength; // STRENGTH
private Integer weldCode; // WELD_CODE
private LocalDateTime insDate; // INSDATE
@TableId("GRADEID")
private Integer gradeid; // 对应数据库字段 GRADEID
@TableField("NAME")
private String name; // 对应数据库字段 NAME
@TableField("ORIGIN")
private Integer origin; // 对应数据库字段 ORIGIN
@TableField("SIGMA0")
private Float sigma0; // 对应数据库字段 SIGMA0
@TableField("FIRST_SIGMA0")
private Float firstSigma0; // 对应数据库字段 FIRST_SIGMA0
@TableField("INIT_SIGMA")
private Float initSigma; // 对应数据库字段 INIT_SIGMA
@TableField("RO")
private Float ro; // 对应数据库字段 RO
@TableField("CLASSID")
private Integer classId; // 对应数据库字段 CLASSID
@TableField("A")
private Float a; // 对应数据库字段 A
@TableField("B")
private Float b; // 对应数据库字段 B
@TableField("C")
private Float c; // 对应数据库字段 C
@TableField("D")
private Float d; // 对应数据库字段 D
@TableField("KC0")
private Float kc0; // 对应数据库字段 KC0
@TableField("KC1")
private Float kc1; // 对应数据库字段 KC1
@TableField("KC2")
private Float kc2; // 对应数据库字段 KC2
@TableField("KC3")
private Float kc3; // 对应数据库字段 KC3
@TableField("KC4")
private Float kc4; // 对应数据库字段 KC4
@TableField("NU")
private Float nu; // 对应数据库字段 NU
@TableField("E")
private Float e; // 对应数据库字段 E
@TableField("CHAL")
private Float chal; // 对应数据库字段 CHAL
@TableField("TEMP0")
private Float temp0; // 对应数据库字段 TEMP0
@TableField("STRENGTH")
private Float strength; // 对应数据库字段 STRENGTH
@TableField("WELD_CODE")
private Integer weldCode; // 对应数据库字段 WELD_CODE
@TableField("INSDATE")
private LocalDateTime insDate; // 对应数据库字段 INSDATE
}

View File

@@ -0,0 +1,12 @@
package com.fizz.business.form;
import lombok.Data;
/**
* 全线张力删除参数封装类
*/
@Data
public class TensionDeleteForm {
private Long[] thicks;
private Long[] yieldStrens;
}

View File

@@ -0,0 +1,13 @@
package com.fizz.business.form;
import lombok.Data;
/**
* 拉矫机参数删除参数封装类
*/
@Data
public class TlDeleteForm {
private String[] steelGrades;
private Long[] yieldStrens;
private Long[] thicks;
}

View File

@@ -0,0 +1,12 @@
package com.fizz.business.form;
import lombok.Data;
/**
* 光整机弯辊力删除参数封装类
*/
@Data
public class TmBendforceDeleteForm {
private Long[] widths;
private Long[] rollForces;
}

View File

@@ -0,0 +1,13 @@
package com.fizz.business.form;
import lombok.Data;
/**
* 光整机插入量删除参数封装类
*/
@Data
public class TmMeshDeleteForm {
private String[] steelGrades;
private Long[] yieldStrens;
private Long[] thicks;
}

View File

@@ -0,0 +1,14 @@
package com.fizz.business.form;
import lombok.Data;
/**
* 光整机轧制力删除参数封装类
*/
@Data
public class TmRollforceDeleteForm {
private String[] steelGrades;
private Long[] thicks;
private Long[] yieldStrens;
private Long[] elongs;
}

View File

@@ -0,0 +1,63 @@
package com.fizz.business.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fizz.business.domain.PdiSetups;
/**
* 生产计划的参数详情Mapper接口
*
* @author Joshi
* @date 2025-09-25
*/
public interface PdiSetupMapper extends BaseMapper<PdiSetups>
{
/**
* 查询生产计划的参数详情
*
* @param id 生产计划的参数详情主键
* @return 生产计划的参数详情
*/
public PdiSetups selectPdiSetupById(Long id);
/**
* 查询生产计划的参数详情列表
*
* @param pdiSetup 生产计划的参数详情
* @return 生产计划的参数详情集合
*/
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup);
/**
* 新增生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
public int insertPdiSetup(PdiSetups pdiSetup);
/**
* 修改生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
public int updatePdiSetup(PdiSetups pdiSetup);
/**
* 删除生产计划的参数详情
*
* @param id 生产计划的参数详情主键
* @return 结果
*/
public int deletePdiSetupById(Long id);
/**
* 批量删除生产计划的参数详情
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deletePdiSetupByIds(Long[] ids);
}

View File

@@ -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);
}

View File

@@ -0,0 +1,62 @@
package com.fizz.business.mapper;
import java.util.List;
import com.fizz.business.domain.SetupTension;
import org.apache.ibatis.annotations.Param;
/**
* 全线张力Mapper接口
*
* @author ruoyi
* @date 2025-09-26
*/
public interface SetupTensionMapper
{
/**
* 查询全线张力
*
* @param thick 全线张力主键
* @return 全线张力
*/
public SetupTension selectSetupTensionByThick(@Param("thick") Long thick,@Param("yieldStren") Long yieldStren);
/**
* 查询全线张力列表
*
* @param setupTension 全线张力
* @return 全线张力集合
*/
public List<SetupTension> selectSetupTensionList(SetupTension setupTension);
/**
* 新增全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
public int insertSetupTension(SetupTension setupTension);
/**
* 修改全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
public int updateSetupTension(SetupTension setupTension);
/**
* 删除全线张力
*
* @param thick 全线张力主键
* @return 结果
*/
public int deleteSetupTensionByThick(Long thick);
/**
* 批量删除全线张力
*
* @param thicks 需要删除的数据主键集合
* @return 结果
*/
public int deleteSetupTensionByThicks(@Param("thicks") Long[] thicks,@Param("yieldStrens") Long[] yieldStrens);
}

View File

@@ -0,0 +1,62 @@
package com.fizz.business.mapper;
import java.util.List;
import com.fizz.business.domain.SetupTl;
import org.apache.ibatis.annotations.Param;
/**
* 拉矫机参数Mapper接口
*
* @author ruoyi
* @date 2025-09-26
*/
public interface SetupTlMapper
{
/**
* 查询拉矫机参数
*
* @param steelGrade 拉矫机参数主键
* @return 拉矫机参数
*/
public SetupTl selectSetupTlBySteelGrade(@Param("steelGrade") String steelGrade,@Param("yieldStren") Long yieldStren,@Param("thick") Long thick);
/**
* 查询拉矫机参数列表
*
* @param setupTl 拉矫机参数
* @return 拉矫机参数集合
*/
public List<SetupTl> selectSetupTlList(SetupTl setupTl);
/**
* 新增拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
public int insertSetupTl(SetupTl setupTl);
/**
* 修改拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
public int updateSetupTl(SetupTl setupTl);
/**
* 删除拉矫机参数
*
* @param steelGrade 拉矫机参数主键
* @return 结果
*/
public int deleteSetupTlBySteelGrade(String steelGrade);
/**
* 批量删除拉矫机参数
*
* @param steelGrades 需要删除的数据主键集合
* @return 结果
*/
public int deleteSetupTlBySteelGrades(@Param("steelGrades") String[] steelGrades,@Param("yieldStrens") Long[] yieldStrens,@Param("thicks") Long[] thicks);
}

View File

@@ -0,0 +1,62 @@
package com.fizz.business.mapper;
import java.util.List;
import com.fizz.business.domain.SetupTmBendforce;
import org.apache.ibatis.annotations.Param;
/**
* 光整机弯辊力Mapper接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface SetupTmBendforceMapper
{
/**
* 查询光整机弯辊力
*
* @param width 光整机弯辊力主键
* @return 光整机弯辊力
*/
public SetupTmBendforce selectSetupTmBendforceByWidth(@Param("width") Long width,@Param("rollForce") Long rollForce);
/**
* 查询光整机弯辊力列表
*
* @param setupTmBendforce 光整机弯辊力
* @return 光整机弯辊力集合
*/
public List<SetupTmBendforce> selectSetupTmBendforceList(SetupTmBendforce setupTmBendforce);
/**
* 新增光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
public int insertSetupTmBendforce(SetupTmBendforce setupTmBendforce);
/**
* 修改光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
public int updateSetupTmBendforce(SetupTmBendforce setupTmBendforce);
/**
* 删除光整机弯辊力
*
* @param width 光整机弯辊力主键
* @return 结果
*/
public int deleteSetupTmBendforceByWidth(Long width);
/**
* 批量删除光整机弯辊力
*
* @param widths 需要删除的数据主键集合
* @return 结果
*/
public int deleteSetupTmBendforceByWidths(@Param("widths") Long[] widths,@Param("rollForces") Long[] rollForces);
}

View File

@@ -0,0 +1,64 @@
package com.fizz.business.mapper;
import java.util.List;
import com.fizz.business.domain.SetupTmMesh;
import org.apache.ibatis.annotations.Param;
/**
* 光整机插入量Mapper接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface SetupTmMeshMapper
{
/**
* 查询光整机插入量
*
* @param steelGrade 光整机插入量主键
* @return 光整机插入量
*/
public SetupTmMesh selectSetupTmMeshBySteelGrade(@Param("steelGrade") String steelGrade,@Param("yieldStren") Long yieldStren,@Param("thick") Long thick);
/**
* 查询光整机插入量列表
*
* @param setupTmMesh 光整机插入量
* @return 光整机插入量集合
*/
public List<SetupTmMesh> selectSetupTmMeshList(SetupTmMesh setupTmMesh);
/**
* 新增光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
public int insertSetupTmMesh(SetupTmMesh setupTmMesh);
/**
* 修改光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
public int updateSetupTmMesh(SetupTmMesh setupTmMesh);
/**
* 删除光整机插入量
*
* @param steelGrade 光整机插入量主键
* @return 结果
*/
public int deleteSetupTmMeshBySteelGrade(String steelGrade);
/**
* 批量删除光整机插入量
*
* @param steelGrades 需要删除的数据主键集合
* @return 结果
*/
public int deleteSetupTmMeshBySteelGrades(@Param("steelGrades") String[] steelGrades,
@Param("yieldStrens") Long[] yieldStrens,
@Param("thicks") Long[] thicks);
}

View File

@@ -0,0 +1,65 @@
package com.fizz.business.mapper;
import java.util.List;
import com.fizz.business.domain.SetupTmRollforce;
import org.apache.ibatis.annotations.Param;
/**
* 光整机轧制力Mapper接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface SetupTmRollforceMapper
{
/**
* 查询光整机轧制力
*
* @param steelGrade 光整机轧制力主键
* @return 光整机轧制力
*/
public SetupTmRollforce selectSetupTmRollforceBySteelGrade(@Param("steelGrade") String steelGrade,@Param("yieldStren") Long yieldStren,@Param("thick") Long thick,@Param("elong") Long elong);
/**
* 查询光整机轧制力列表
*
* @param setupTmRollforce 光整机轧制力
* @return 光整机轧制力集合
*/
public List<SetupTmRollforce> selectSetupTmRollforceList(SetupTmRollforce setupTmRollforce);
/**
* 新增光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
public int insertSetupTmRollforce(SetupTmRollforce setupTmRollforce);
/**
* 修改光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
public int updateSetupTmRollforce(SetupTmRollforce setupTmRollforce);
/**
* 删除光整机轧制力
*
* @param steelGrade 光整机轧制力主键
* @return 结果
*/
public int deleteSetupTmRollforceBySteelGrade(String steelGrade);
/**
* 批量删除光整机轧制力
*
* @param steelGrades 需要删除的数据主键集合
* @return 结果
*/
public int deleteSetupTmRollforceBySteelGrades(@Param("steelGrades") String[] steelGrades,
@Param("thicks") Long[] thicks,
@Param("yieldStrens") Long[] yieldStrens,
@Param("elongs") Long[] elongs);
}

View File

@@ -0,0 +1,65 @@
package com.fizz.business.service;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fizz.business.domain.PdiSetups;
import com.fizz.business.domain.ProStoppage;
import com.fizz.business.domain.msg.PdiSetup;
/**
* 生产计划的参数详情Service接口
*
* @author Joshi
* @date 2025-09-25
*/
public interface IPdiSetupService extends IService<PdiSetups>
{
/**
* 查询生产计划的参数详情
*
* @param id 生产计划的参数详情主键
* @return 生产计划的参数详情
*/
public PdiSetups selectPdiSetupByid(Long id);
/**
* 查询生产计划的参数详情列表
*
* @param pdiSetup 生产计划的参数详情
* @return 生产计划的参数详情集合
*/
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup);
/**
* 新增生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
public Boolean insertPdiSetup(PdiSetups pdiSetup);
/**
* 修改生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
public Boolean updatePdiSetup(PdiSetups pdiSetup);
/**
* 批量删除生产计划的参数详情
*
* @param ids 需要删除的生产计划的参数详情主键集合
* @return 结果
*/
public Boolean deletePdiSetupByids(Long[] ids);
/**
* 删除生产计划的参数详情信息
*
* @param id 生产计划的参数详情主键
* @return 结果
*/
public Boolean deletePdiSetupByid(Long id);
}

View File

@@ -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);
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTension;
/**
* 全线张力Service接口
*
* @author ruoyi
* @date 2025-09-26
*/
public interface ISetupTensionService
{
/**
* 查询全线张力
*
* @param thick 全线张力主键
* @return 全线张力
*/
public SetupTension selectSetupTensionByThick(Long thick,Long yieldStren);
/**
* 查询全线张力列表
*
* @param setupTension 全线张力
* @return 全线张力集合
*/
public List<SetupTension> selectSetupTensionList(SetupTension setupTension);
/**
* 新增全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
public int insertSetupTension(SetupTension setupTension);
/**
* 修改全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
public int updateSetupTension(SetupTension setupTension);
/**
* 批量删除全线张力
*
* @param thicks 需要删除的全线张力主键集合
* @return 结果
*/
public int deleteSetupTensionByThicks(Long[] thicks,Long[] yieldStrens );
/**
* 删除全线张力信息
*
* @param thick 全线张力主键
* @return 结果
*/
public int deleteSetupTensionByThick(Long thick);
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTl;
/**
* 拉矫机参数Service接口
*
* @author ruoyi
* @date 2025-09-26
*/
public interface ISetupTlService
{
/**
* 查询拉矫机参数
*
* @param steelGrade 拉矫机参数主键
* @return 拉矫机参数
*/
public SetupTl selectSetupTlBySteelGrade(String steelGrade,Long yieldStren,Long thick);
/**
* 查询拉矫机参数列表
*
* @param setupTl 拉矫机参数
* @return 拉矫机参数集合
*/
public List<SetupTl> selectSetupTlList(SetupTl setupTl);
/**
* 新增拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
public int insertSetupTl(SetupTl setupTl);
/**
* 修改拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
public int updateSetupTl(SetupTl setupTl);
/**
* 批量删除拉矫机参数
*
* @param steelGrades 需要删除的拉矫机参数主键集合
* @return 结果
*/
public int deleteSetupTlBySteelGrades(String[] steelGrades,Long[] yieldStrens,Long[] thicks);
/**
* 删除拉矫机参数信息
*
* @param steelGrade 拉矫机参数主键
* @return 结果
*/
public int deleteSetupTlBySteelGrade(String steelGrade);
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTmBendforce;
/**
* 光整机弯辊力Service接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface ISetupTmBendforceService
{
/**
* 查询光整机弯辊力
*
* @param width 光整机弯辊力主键
* @return 光整机弯辊力
*/
public SetupTmBendforce selectSetupTmBendforceByWidth(Long width,Long rollForce);
/**
* 查询光整机弯辊力列表
*
* @param setupTmBendforce 光整机弯辊力
* @return 光整机弯辊力集合
*/
public List<SetupTmBendforce> selectSetupTmBendforceList(SetupTmBendforce setupTmBendforce);
/**
* 新增光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
public int insertSetupTmBendforce(SetupTmBendforce setupTmBendforce);
/**
* 修改光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
public int updateSetupTmBendforce(SetupTmBendforce setupTmBendforce);
/**
* 批量删除光整机弯辊力
*
* @param widths 需要删除的光整机弯辊力主键集合
* @return 结果
*/
public int deleteSetupTmBendforceByWidths(Long[] widths,Long[] rollForces);
/**
* 删除光整机弯辊力信息
*
* @param width 光整机弯辊力主键
* @return 结果
*/
public int deleteSetupTmBendforceByWidth(Long width);
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTmMesh;
/**
* 光整机插入量Service接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface ISetupTmMeshService
{
/**
* 查询光整机插入量
*
* @param steelGrade 光整机插入量主键
* @return 光整机插入量
*/
public SetupTmMesh selectSetupTmMeshBySteelGrade(String steelGrade,Long yildStren,Long thick);
/**
* 查询光整机插入量列表
*
* @param setupTmMesh 光整机插入量
* @return 光整机插入量集合
*/
public List<SetupTmMesh> selectSetupTmMeshList(SetupTmMesh setupTmMesh);
/**
* 新增光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
public int insertSetupTmMesh(SetupTmMesh setupTmMesh);
/**
* 修改光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
public int updateSetupTmMesh(SetupTmMesh setupTmMesh);
/**
* 批量删除光整机插入量
*
* @param steelGrades 需要删除的光整机插入量主键集合
* @return 结果
*/
public int deleteSetupTmMeshBySteelGrades(String[] steelGrades,Long[] yildStrens,Long[] thicks);
/**
* 删除光整机插入量信息
*
* @param steelGrade 光整机插入量主键
* @return 结果
*/
public int deleteSetupTmMeshBySteelGrade(String steelGrade);
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTmRollforce;
/**
* 光整机轧制力Service接口
*
* @author Joshi
* @date 2025-09-26
*/
public interface ISetupTmRollforceService
{
/**
* 查询光整机轧制力
*
* @param steelGrade 光整机轧制力主键
* @return 光整机轧制力
*/
public SetupTmRollforce selectSetupTmRollforceBySteelGrade(String steelGrade,Long yieldStren,Long thick,Long elong);
/**
* 查询光整机轧制力列表
*
* @param setupTmRollforce 光整机轧制力
* @return 光整机轧制力集合
*/
public List<SetupTmRollforce> selectSetupTmRollforceList(SetupTmRollforce setupTmRollforce);
/**
* 新增光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
public int insertSetupTmRollforce(SetupTmRollforce setupTmRollforce);
/**
* 修改光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
public int updateSetupTmRollforce(SetupTmRollforce setupTmRollforce);
/**
* 批量删除光整机轧制力
*
* @param steelGrades 需要删除的光整机轧制力主键集合
* @return 结果
*/
public int deleteSetupTmRollforceBySteelGrades(String[] steelGrades,Long[] yieldStrens,Long[] thicks,Long[] elongs);
/**
* 删除光整机轧制力信息
*
* @param steelGrade 光整机轧制力主键
* @return 结果
*/
public int deleteSetupTmRollforceBySteelGrade(String steelGrade);
}

View File

@@ -16,4 +16,5 @@ public interface ProStoppageService extends IService<ProStoppage> {
boolean deleteProStoppage(Long stopid);
List<Object> calc(ProStoppageForm form);
}

View File

@@ -18,6 +18,7 @@ import com.google.common.collect.Maps;
import com.google.common.collect.Sets;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;
@@ -40,12 +41,15 @@ public class RedisCacheManager {
RedisTemplate<String, SegmentDTO> segmentRedisTemplate;
@Autowired
@Qualifier("redisTemplateOfMatmap")
RedisTemplate<String, MatmapDTO> matmapRedisTemplate;
@Autowired
@Qualifier("redisTemplateOfHead")
RedisTemplate<String, CoilHeadDTO> headRedisTemplate;
@Autowired
@Qualifier("redisTemplateOfCoilPos")
RedisTemplate<String, CoilPositionDTO> coilPosRedisTemplate;
@Autowired
@@ -144,7 +148,39 @@ public class RedisCacheManager {
}
public List<MatmapDTO> getMatmapList() {
return matmapRedisTemplate.opsForList().range(COIL_MATMAP_LIST_KEY, 0, -1);
List<MatmapDTO> rawList = matmapRedisTemplate.opsForList().range(COIL_MATMAP_LIST_KEY, 0, -1);
if (rawList == null) {
return null;
}
List<MatmapDTO> result = new ArrayList<>();
for (Object item : rawList) {
if (item == null) {
result.add(null);
continue;
}
// 如果是LinkedHashMap转换为MatmapDTO
if (item instanceof java.util.LinkedHashMap) {
try {
MatmapDTO dto = BeanUtil.toBean((java.util.LinkedHashMap<?, ?>) item, MatmapDTO.class);
result.add(dto);
} catch (Exception e) {
log.error("Failed to convert LinkedHashMap to MatmapDTO: {}", e.getMessage());
result.add(null);
}
}
// 如果已经是MatmapDTO直接添加
else if (item instanceof MatmapDTO) {
result.add((MatmapDTO) item);
}
else {
log.warn("Unexpected type in Redis list: {}", item.getClass().getName());
result.add(null);
}
}
return result;
}
public void setMatmap(int index, MatmapDTO matmap) {
@@ -152,7 +188,28 @@ public class RedisCacheManager {
}
public MatmapDTO getMatmap(int index) {
return matmapRedisTemplate.opsForList().index(COIL_MATMAP_LIST_KEY, index);
Object result = matmapRedisTemplate.opsForList().index(COIL_MATMAP_LIST_KEY, index);
if (result == null) {
return null;
}
// 如果是LinkedHashMap转换为MatmapDTO
if (result instanceof java.util.LinkedHashMap) {
try {
return BeanUtil.toBean((java.util.LinkedHashMap<?, ?>) result, MatmapDTO.class);
} catch (Exception e) {
log.error("Failed to convert LinkedHashMap to MatmapDTO: {}", e.getMessage());
return null;
}
}
// 如果已经是MatmapDTO直接返回
if (result instanceof MatmapDTO) {
return (MatmapDTO) result;
}
log.warn("Unexpected type in Redis: {}", result.getClass().getName());
return null;
}
public List<CoilHeadDTO> getHeadList() {

View File

@@ -153,10 +153,15 @@ public class CrmPdiPlanServiceImpl extends ServiceImpl<CrmPdiPlanMapper, CrmPdiP
public void changeStatus(ChangePlanStatusForm build) {
CrmPdiPlan pdiPlan = baseMapper.selectById(build.getId());
if (pdiPlan == null) {
log.error("未找到ID为{}的计划记录", build.getId());
return;
}
pdiPlan.setStatus(build.getOperation());
log.info("计划状态更新成功ID: {}, 新状态: {}", build.getId(), build.getOperation());
}
}

View File

@@ -0,0 +1,97 @@
package com.fizz.business.service.impl;
import java.util.Arrays;
import java.util.List;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fizz.business.mapper.PdiSetupMapper;
import com.fizz.business.domain.PdiSetups;
import com.fizz.business.service.IPdiSetupService;
/**
* 生产计划的参数详情Service业务层处理
*
* @author Joshi
* @date 2025-09-25
*/
@Service
public class PdiSetupServiceImpl extends ServiceImpl<PdiSetupMapper, PdiSetups> implements IPdiSetupService {
/**
* 查询生产计划的参数详情
*
* @param id 生产计划的参数详情主键
* @return 生产计划的参数详情
*/
@Override
public PdiSetups selectPdiSetupByid(Long id)
{
return baseMapper.selectById(id);
}
/**
* 查询生产计划的参数详情列表
*
* @param pdiSetup 生产计划的参数详情
* @return 生产计划的参数详情
*/
@Override
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup)
{
QueryWrapper<PdiSetups> queryWrapper = new QueryWrapper<>(pdiSetup);
queryWrapper.orderByDesc("create_time");
return baseMapper.selectList(queryWrapper);
}
/**
* 新增生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
@Override
public Boolean insertPdiSetup(PdiSetups pdiSetup)
{
return this.save(pdiSetup);
}
/**
* 修改生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
@Override
public Boolean updatePdiSetup(PdiSetups pdiSetup)
{
return this.updateById(pdiSetup);
}
/**
* 批量删除生产计划的参数详情
*
* @param ids 需要删除的生产计划的参数详情主键
* @return 结果
*/
@Override
public Boolean deletePdiSetupByids(Long[] ids)
{
return this.removeByIds(Arrays.asList(ids));
}
/**
* 删除生产计划的参数详情信息
*
* @param id 生产计划的参数详情主键
* @return 结果
*/
@Override
public Boolean deletePdiSetupByid(Long id)
{
return this.removeById(id);
}
}

View File

@@ -1,5 +1,6 @@
package com.fizz.business.service.impl;
import cn.hutool.core.date.DateUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fizz.business.domain.ProStoppage;
@@ -10,6 +11,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
@@ -45,4 +47,40 @@ public class ProStoppageServiceImpl extends ServiceImpl<ProStoppageMapper, ProSt
public boolean deleteProStoppage(Long stopid) {
return this.deleteProStoppage(stopid);
}
@Override
public List<Object> calc(ProStoppageForm form) {
// 构建查询条件,筛选指定时间范围内的停机记录
QueryWrapper<ProStoppage> queryWrapper = new QueryWrapper<>();
queryWrapper.ge("start_date", form.getStartDate() + " 00:00:00")
.le("end_date", form.getEndDate() + " 23:59:59");
// 查询符合条件的停机记录列表
List<ProStoppage> stoppageList = baseMapper.selectList(queryWrapper);
// 计算停机次数
int stopCount = stoppageList.size();
// 计算停机总时长(单位:小时,保留两位小数)
BigDecimal totalStopDuration = BigDecimal.ZERO;
for (ProStoppage stoppage : stoppageList) {
totalStopDuration = totalStopDuration.add(stoppage.getDuration().divide(BigDecimal.valueOf(3600), 2, BigDecimal.ROUND_HALF_UP));
}
// 计算总时长(查询时间范围的时长,单位:小时)
long totalTimeMillis = DateUtil.parse(form.getEndDate() + " 23:59:59").getTime() - DateUtil.parse(form.getStartDate() + " 00:00:00").getTime();
BigDecimal totalDuration = BigDecimal.valueOf(totalTimeMillis).divide(BigDecimal.valueOf(3600 * 1000), 2, BigDecimal.ROUND_HALF_UP);
// 计算作业率(保留两位小数,百分比形式)
BigDecimal operationRate = BigDecimal.ONE.subtract(totalStopDuration.divide(totalDuration, 4, BigDecimal.ROUND_HALF_UP))
.multiply(BigDecimal.valueOf(100)).setScale(2, BigDecimal.ROUND_HALF_UP);
// 创建List来承载结果
List<Object> resultList = new ArrayList<>();
resultList.add(stopCount);
resultList.add(totalStopDuration);
resultList.add(operationRate);
return resultList;
}
}

View File

@@ -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);
}
}

View File

@@ -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.SetupTensionMapper;
import com.fizz.business.domain.SetupTension;
import com.fizz.business.service.ISetupTensionService;
/**
* 全线张力Service业务层处理
*
* @author ruoyi
* @date 2025-09-26
*/
@Service
public class SetupTensionServiceImpl implements ISetupTensionService
{
@Autowired
private SetupTensionMapper setupTensionMapper;
/**
* 查询全线张力
*
* @param thick 全线张力主键
* @return 全线张力
*/
@Override
public SetupTension selectSetupTensionByThick(Long thick,Long yieldStren)
{
return setupTensionMapper.selectSetupTensionByThick(thick,yieldStren);
}
/**
* 查询全线张力列表
*
* @param setupTension 全线张力
* @return 全线张力
*/
@Override
public List<SetupTension> selectSetupTensionList(SetupTension setupTension)
{
return setupTensionMapper.selectSetupTensionList(setupTension);
}
/**
* 新增全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
@Override
public int insertSetupTension(SetupTension setupTension)
{
setupTension.setCreateTime(DateUtils.getNowDate());
return setupTensionMapper.insertSetupTension(setupTension);
}
/**
* 修改全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
@Override
public int updateSetupTension(SetupTension setupTension)
{
setupTension.setUpdateTime(DateUtils.getNowDate());
return setupTensionMapper.updateSetupTension(setupTension);
}
/**
* 批量删除全线张力
*
* @param thicks 需要删除的全线张力主键
* @return 结果
*/
@Override
public int deleteSetupTensionByThicks(Long[] thicks,Long[] yieldStrens)
{
return setupTensionMapper.deleteSetupTensionByThicks(thicks,yieldStrens);
}
/**
* 删除全线张力信息
*
* @param thick 全线张力主键
* @return 结果
*/
@Override
public int deleteSetupTensionByThick(Long thick)
{
return setupTensionMapper.deleteSetupTensionByThick(thick);
}
}

View File

@@ -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.SetupTlMapper;
import com.fizz.business.domain.SetupTl;
import com.fizz.business.service.ISetupTlService;
/**
* 拉矫机参数Service业务层处理
*
* @author ruoyi
* @date 2025-09-26
*/
@Service
public class SetupTlServiceImpl implements ISetupTlService
{
@Autowired
private SetupTlMapper setupTlMapper;
/**
* 查询拉矫机参数
*
* @param steelGrade 拉矫机参数主键
* @return 拉矫机参数
*/
@Override
public SetupTl selectSetupTlBySteelGrade(String steelGrade, Long yieldStren, Long thick)
{
return setupTlMapper.selectSetupTlBySteelGrade(steelGrade, yieldStren, thick);
}
/**
* 查询拉矫机参数列表
*
* @param setupTl 拉矫机参数
* @return 拉矫机参数
*/
@Override
public List<SetupTl> selectSetupTlList(SetupTl setupTl)
{
return setupTlMapper.selectSetupTlList(setupTl);
}
/**
* 新增拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
@Override
public int insertSetupTl(SetupTl setupTl)
{
setupTl.setCreateTime(DateUtils.getNowDate());
return setupTlMapper.insertSetupTl(setupTl);
}
/**
* 修改拉矫机参数
*
* @param setupTl 拉矫机参数
* @return 结果
*/
@Override
public int updateSetupTl(SetupTl setupTl)
{
setupTl.setUpdateTime(DateUtils.getNowDate());
return setupTlMapper.updateSetupTl(setupTl);
}
/**
* 批量删除拉矫机参数
*
* @param steelGrades 需要删除的拉矫机参数主键
* @return 结果
*/
@Override
public int deleteSetupTlBySteelGrades(String[] steelGrades,Long[] yieldStres,Long[] thicks)
{
return setupTlMapper.deleteSetupTlBySteelGrades(steelGrades, yieldStres, thicks);
}
/**
* 删除拉矫机参数信息
*
* @param steelGrade 拉矫机参数主键
* @return 结果
*/
@Override
public int deleteSetupTlBySteelGrade(String steelGrade)
{
return setupTlMapper.deleteSetupTlBySteelGrade(steelGrade);
}
}

View File

@@ -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.SetupTmBendforceMapper;
import com.fizz.business.domain.SetupTmBendforce;
import com.fizz.business.service.ISetupTmBendforceService;
/**
* 光整机弯辊力Service业务层处理
*
* @author Joshi
* @date 2025-09-26
*/
@Service
public class SetupTmBendforceServiceImpl implements ISetupTmBendforceService
{
@Autowired
private SetupTmBendforceMapper setupTmBendforceMapper;
/**
* 查询光整机弯辊力
*
* @param width 光整机弯辊力主键
* @return 光整机弯辊力
*/
@Override
public SetupTmBendforce selectSetupTmBendforceByWidth(Long width,Long rollForce)
{
return setupTmBendforceMapper.selectSetupTmBendforceByWidth(width,rollForce);
}
/**
* 查询光整机弯辊力列表
*
* @param setupTmBendforce 光整机弯辊力
* @return 光整机弯辊力
*/
@Override
public List<SetupTmBendforce> selectSetupTmBendforceList(SetupTmBendforce setupTmBendforce)
{
return setupTmBendforceMapper.selectSetupTmBendforceList(setupTmBendforce);
}
/**
* 新增光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
@Override
public int insertSetupTmBendforce(SetupTmBendforce setupTmBendforce)
{
setupTmBendforce.setCreateTime(DateUtils.getNowDate());
return setupTmBendforceMapper.insertSetupTmBendforce(setupTmBendforce);
}
/**
* 修改光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
@Override
public int updateSetupTmBendforce(SetupTmBendforce setupTmBendforce)
{
setupTmBendforce.setUpdateTime(DateUtils.getNowDate());
return setupTmBendforceMapper.updateSetupTmBendforce(setupTmBendforce);
}
/**
* 批量删除光整机弯辊力
*
* @param widths 需要删除的光整机弯辊力主键
* @return 结果
*/
@Override
public int deleteSetupTmBendforceByWidths(Long[] widths,Long[] rollForces)
{
return setupTmBendforceMapper.deleteSetupTmBendforceByWidths(widths,rollForces);
}
/**
* 删除光整机弯辊力信息
*
* @param width 光整机弯辊力主键
* @return 结果
*/
@Override
public int deleteSetupTmBendforceByWidth(Long width)
{
return setupTmBendforceMapper.deleteSetupTmBendforceByWidth(width);
}
}

View File

@@ -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.SetupTmMeshMapper;
import com.fizz.business.domain.SetupTmMesh;
import com.fizz.business.service.ISetupTmMeshService;
/**
* 光整机插入量Service业务层处理
*
* @author Joshi
* @date 2025-09-26
*/
@Service
public class SetupTmMeshServiceImpl implements ISetupTmMeshService
{
@Autowired
private SetupTmMeshMapper setupTmMeshMapper;
/**
* 查询光整机插入量
*
* @param steelGrade 光整机插入量主键
* @return 光整机插入量
*/
@Override
public SetupTmMesh selectSetupTmMeshBySteelGrade(String steelGrade, Long yieldStren, Long thick)
{
return setupTmMeshMapper.selectSetupTmMeshBySteelGrade(steelGrade, yieldStren, thick);
}
/**
* 查询光整机插入量列表
*
* @param setupTmMesh 光整机插入量
* @return 光整机插入量
*/
@Override
public List<SetupTmMesh> selectSetupTmMeshList(SetupTmMesh setupTmMesh)
{
return setupTmMeshMapper.selectSetupTmMeshList(setupTmMesh);
}
/**
* 新增光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
@Override
public int insertSetupTmMesh(SetupTmMesh setupTmMesh)
{
setupTmMesh.setCreateTime(DateUtils.getNowDate());
return setupTmMeshMapper.insertSetupTmMesh(setupTmMesh);
}
/**
* 修改光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
@Override
public int updateSetupTmMesh(SetupTmMesh setupTmMesh)
{
setupTmMesh.setUpdateTime(DateUtils.getNowDate());
return setupTmMeshMapper.updateSetupTmMesh(setupTmMesh);
}
/**
* 批量删除光整机插入量
*
* @param steelGrades 需要删除的光整机插入量主键
* @return 结果
*/
@Override
public int deleteSetupTmMeshBySteelGrades(String[] steelGrades, Long[] yieldStrens, Long[] thicks)
{
return setupTmMeshMapper.deleteSetupTmMeshBySteelGrades(steelGrades, yieldStrens, thicks);
}
/**
* 删除光整机插入量信息
*
* @param steelGrade 光整机插入量主键
* @return 结果
*/
@Override
public int deleteSetupTmMeshBySteelGrade(String steelGrade)
{
return setupTmMeshMapper.deleteSetupTmMeshBySteelGrade(steelGrade);
}
}

View File

@@ -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.SetupTmRollforceMapper;
import com.fizz.business.domain.SetupTmRollforce;
import com.fizz.business.service.ISetupTmRollforceService;
/**
* 光整机轧制力Service业务层处理
*
* @author Joshi
* @date 2025-09-26
*/
@Service
public class SetupTmRollforceServiceImpl implements ISetupTmRollforceService
{
@Autowired
private SetupTmRollforceMapper setupTmRollforceMapper;
/**
* 查询光整机轧制力
*
* @param steelGrade 光整机轧制力主键
* @return 光整机轧制力
*/
@Override
public SetupTmRollforce selectSetupTmRollforceBySteelGrade(String steelGrade, Long yieldStren, Long thick, Long elong)
{
return setupTmRollforceMapper.selectSetupTmRollforceBySteelGrade(steelGrade, yieldStren, thick, elong);
}
/**
* 查询光整机轧制力列表
*
* @param setupTmRollforce 光整机轧制力
* @return 光整机轧制力
*/
@Override
public List<SetupTmRollforce> selectSetupTmRollforceList(SetupTmRollforce setupTmRollforce)
{
return setupTmRollforceMapper.selectSetupTmRollforceList(setupTmRollforce);
}
/**
* 新增光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
@Override
public int insertSetupTmRollforce(SetupTmRollforce setupTmRollforce)
{
setupTmRollforce.setCreateTime(DateUtils.getNowDate());
return setupTmRollforceMapper.insertSetupTmRollforce(setupTmRollforce);
}
/**
* 修改光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
@Override
public int updateSetupTmRollforce(SetupTmRollforce setupTmRollforce)
{
setupTmRollforce.setUpdateTime(DateUtils.getNowDate());
return setupTmRollforceMapper.updateSetupTmRollforce(setupTmRollforce);
}
/**
* 批量删除光整机轧制力
*
* @param steelGrades 需要删除的光整机轧制力主键
* @return 结果
*/
@Override
public int deleteSetupTmRollforceBySteelGrades(String[] steelGrades, Long[] thicks, Long[] yieldStrens, Long[] elongs)
{
return setupTmRollforceMapper.deleteSetupTmRollforceBySteelGrades(steelGrades, thicks, yieldStrens, elongs);
}
/**
* 删除光整机轧制力信息
*
* @param steelGrade 光整机轧制力主键
* @return 结果
*/
@Override
public int deleteSetupTmRollforceBySteelGrade(String steelGrade)
{
return setupTmRollforceMapper.deleteSetupTmRollforceBySteelGrade(steelGrade);
}
}

View File

@@ -27,6 +27,7 @@ import org.springframework.stereotype.Service;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
@@ -65,18 +66,45 @@ public class TrackServiceImpl implements TrackService {
public ReturnInfoVO getReturnInfo(int posIdx) {
MatmapDTO matmap = MatmapUtil.getMatmap(posIdx);
if (MatmapUtil.notReady(matmap)) {
log.warn("Matmap not ready for position index: {}", posIdx);
return ReturnInfoVO.builder()
.returnWeight(0.0)
.returnType(null)
.entryMatId(null)
.planId(null)
.build();
}
CrmPdiPlanVO planVO = crmPdiPlanService.getByCoilIdAndOperId(matmap.getPlanId());
if (planVO == null) {
log.warn("Plan not found for planId: {}", matmap.getPlanId());
return ReturnInfoVO.builder()
.returnWeight(0.0)
.returnType(null)
.entryMatId(matmap.getMatId())
.planId(Long.valueOf(matmap.getPlanId()))
.build();
}
String returnType = null;
double returnWt = 0;
if (Objects.equals(planVO.getStatus(), PlanStatusEnum.PRODUCING.name())) {
double coiledLength = redisCacheManager.getStripLocation();
double calcCoilWeight = CalcUtil.calcCoilWeight(coiledLength, planVO.getEntryThick(), planVO.getEntryWidth());
returnWt = planVO.getEntryWeight().divide(BigDecimal.valueOf(calcCoilWeight)).setScale(2, RoundingMode.HALF_UP).doubleValue();
if (planVO.getEntryWeight() != null && calcCoilWeight > 0) {
returnWt = planVO.getEntryWeight().divide(BigDecimal.valueOf(calcCoilWeight)).setScale(2, RoundingMode.HALF_UP).doubleValue();
} else {
log.warn("Invalid entry weight or calc coil weight: entryWeight={}, calcCoilWeight={}", planVO.getEntryWeight(), calcCoilWeight);
returnWt = 0.0;
}
returnType = HALF_RETURN.name();
} else if (Objects.equals(planVO.getStatus(), PlanStatusEnum.ONLINE.name())) {
returnWt = planVO.getEntryWeight().doubleValue();
if (planVO.getEntryWeight() != null) {
returnWt = planVO.getEntryWeight().doubleValue();
} else {
log.warn("Entry weight is null for planId: {}", planVO.getId());
returnWt = 0.0;
}
returnType = ALL_RETURN.name();
} else {
log.error("invalid plan status[{}], planId={}", planVO.getStatus(), planVO.getId());
@@ -133,6 +161,13 @@ public class TrackServiceImpl implements TrackService {
Integer currPosIdx = currDevice.getIdx();
MatmapDTO target = MatmapUtil.getMatmap(targetPosIdx);
MatmapDTO curr = MatmapUtil.getMatmap(currPosIdx);
if (curr == null || target == null) {
log.warn("Matmap is null - curr: {}, target: {}, currPosIdx: {}, targetPosIdx: {}",
curr, target, currPosIdx, targetPosIdx);
return;
}
if (Objects.equals(curr.getMatId(), target.getMatId())) {
return;
}
@@ -208,9 +243,18 @@ public class TrackServiceImpl implements TrackService {
@Override
public CoilPositionDTO getCoilPosition() {
CoilPositionDTO position = redisCacheManager.getCoilPosition();
if (position == null) {
log.warn("CoilPosition not found in Redis, creating empty position");
position = new CoilPositionDTO();
}
List<MatmapDTO> matmapList = redisCacheManager.getMatmapList();
if (matmapList == null) {
log.warn("MatmapList not found in Redis, using empty list");
matmapList = new ArrayList<>();
}
position.setMatMapList(matmapList);
return position;
}