Merge remote-tracking branch 'origin/master'
# Conflicts: # .gitignore
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
));
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
|
||||
166
business/src/main/java/com/fizz/business/domain/PdiSetups.java
Normal file
166
business/src/main/java/com/fizz/business/domain/PdiSetups.java
Normal 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;
|
||||
|
||||
}
|
||||
@@ -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,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();
|
||||
}
|
||||
}
|
||||
205
business/src/main/java/com/fizz/business/domain/SetupTl.java
Normal file
205
business/src/main/java/com/fizz/business/domain/SetupTl.java
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
205
business/src/main/java/com/fizz/business/domain/SetupTmMesh.java
Normal file
205
business/src/main/java/com/fizz/business/domain/SetupTmMesh.java
Normal 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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.fizz.business.form;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 全线张力删除参数封装类
|
||||
*/
|
||||
@Data
|
||||
public class TensionDeleteForm {
|
||||
private Long[] thicks;
|
||||
private Long[] yieldStrens;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.fizz.business.form;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 光整机弯辊力删除参数封装类
|
||||
*/
|
||||
@Data
|
||||
public class TmBendforceDeleteForm {
|
||||
private Long[] widths;
|
||||
private Long[] rollForces;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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,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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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,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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -16,4 +16,5 @@ public interface ProStoppageService extends IService<ProStoppage> {
|
||||
|
||||
boolean deleteProStoppage(Long stopid);
|
||||
|
||||
List<Object> calc(ProStoppageForm form);
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
181
business/src/main/resources/mapper/PdiSetupMapper.xml
Normal file
181
business/src/main/resources/mapper/PdiSetupMapper.xml
Normal file
@@ -0,0 +1,181 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.PdiSetupMapper">
|
||||
|
||||
<resultMap type="PdiSetup" id="PdiSetupResult">
|
||||
<result property="ID" column="ID" />
|
||||
<result property="COILID" column="COILID" />
|
||||
<result property="PLANID" column="PLANID" />
|
||||
<result property="porTension" column="POR_TENSION" />
|
||||
<result property="celTension" column="CEL_TENSION" />
|
||||
<result property="cleanTension" column="CLEAN_TENSION" />
|
||||
<result property="furTension" column="FUR_TENSION" />
|
||||
<result property="towerTension" column="TOWER_TENSION" />
|
||||
<result property="tmNoneTension" column="TM_NONE_TENSION" />
|
||||
<result property="tmEntryTension" column="TM_ENTRY_TENSION" />
|
||||
<result property="tmExitTension" column="TM_EXIT_TENSION" />
|
||||
<result property="tmRollforce" column="TM_ROLLFORCE" />
|
||||
<result property="tmBendforce" column="TM_BENDFORCE" />
|
||||
<result property="tmAcrMesh" column="TM_ACR_MESH" />
|
||||
<result property="tmBrMesh" column="TM_BR_MESH" />
|
||||
<result property="tlNoneTension" column="TL_NONE_TENSION" />
|
||||
<result property="tlExitTension" column="TL_EXIT_TENSION" />
|
||||
<result property="tlElong" column="TL_ELONG" />
|
||||
<result property="tlLvlMesh1" column="TL_LVL_MESH1" />
|
||||
<result property="tlLvlMesh2" column="TL_LVL_MESH2" />
|
||||
<result property="tlAcbMesh" column="TL_ACB_MESH" />
|
||||
<result property="coatTension" column="COAT_TENSION" />
|
||||
<result property="cxlTension" column="CXL_TENSION" />
|
||||
<result property="trTension" column="TR_TENSION" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
<result property="TYPE" column="TYPE" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectPdiSetupVo">
|
||||
select ID, COILID, PLANID, POR_TENSION, CEL_TENSION, CLEAN_TENSION, FUR_TENSION, TOWER_TENSION, TM_NONE_TENSION, TM_ENTRY_TENSION, TM_EXIT_TENSION, TM_ROLLFORCE, TM_BENDFORCE, TM_ACR_MESH, TM_BR_MESH, TL_NONE_TENSION, TL_EXIT_TENSION, TL_ELONG, TL_LVL_MESH1, TL_LVL_MESH2, TL_ACB_MESH, COAT_TENSION, CXL_TENSION, TR_TENSION, CREATE_TIME, UPDATE_TIME, TYPE from pdi_setup
|
||||
</sql>
|
||||
|
||||
<select id="selectPdiSetupList" parameterType="PdiSetup" resultMap="PdiSetupResult">
|
||||
<include refid="selectPdiSetupVo"/>
|
||||
<where>
|
||||
<if test="COILID != null and COILID != ''"> and COILID = #{COILID}</if>
|
||||
<if test="PLANID != null and PLANID != ''"> and PLANID = #{PLANID}</if>
|
||||
<if test="porTension != null "> and POR_TENSION = #{porTension}</if>
|
||||
<if test="celTension != null "> and CEL_TENSION = #{celTension}</if>
|
||||
<if test="cleanTension != null "> and CLEAN_TENSION = #{cleanTension}</if>
|
||||
<if test="furTension != null "> and FUR_TENSION = #{furTension}</if>
|
||||
<if test="towerTension != null "> and TOWER_TENSION = #{towerTension}</if>
|
||||
<if test="tmNoneTension != null "> and TM_NONE_TENSION = #{tmNoneTension}</if>
|
||||
<if test="tmEntryTension != null "> and TM_ENTRY_TENSION = #{tmEntryTension}</if>
|
||||
<if test="tmExitTension != null "> and TM_EXIT_TENSION = #{tmExitTension}</if>
|
||||
<if test="tmRollforce != null "> and TM_ROLLFORCE = #{tmRollforce}</if>
|
||||
<if test="tmBendforce != null "> and TM_BENDFORCE = #{tmBendforce}</if>
|
||||
<if test="tmAcrMesh != null "> and TM_ACR_MESH = #{tmAcrMesh}</if>
|
||||
<if test="tmBrMesh != null "> and TM_BR_MESH = #{tmBrMesh}</if>
|
||||
<if test="tlNoneTension != null "> and TL_NONE_TENSION = #{tlNoneTension}</if>
|
||||
<if test="tlExitTension != null "> and TL_EXIT_TENSION = #{tlExitTension}</if>
|
||||
<if test="tlElong != null "> and TL_ELONG = #{tlElong}</if>
|
||||
<if test="tlLvlMesh1 != null "> and TL_LVL_MESH1 = #{tlLvlMesh1}</if>
|
||||
<if test="tlLvlMesh2 != null "> and TL_LVL_MESH2 = #{tlLvlMesh2}</if>
|
||||
<if test="tlAcbMesh != null "> and TL_ACB_MESH = #{tlAcbMesh}</if>
|
||||
<if test="coatTension != null "> and COAT_TENSION = #{coatTension}</if>
|
||||
<if test="cxlTension != null "> and CXL_TENSION = #{cxlTension}</if>
|
||||
<if test="trTension != null "> and TR_TENSION = #{trTension}</if>
|
||||
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
|
||||
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
||||
<if test="TYPE != null "> and TYPE = #{TYPE}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPdiSetupById" parameterType="Long" resultMap="PdiSetupResult">
|
||||
<include refid="selectPdiSetupVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPdiSetup" parameterType="PdiSetup" useGeneratedKeys="true" keyProperty="ID">
|
||||
insert into pdi_setup
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="COILID != null">COILID,</if>
|
||||
<if test="PLANID != null">PLANID,</if>
|
||||
<if test="porTension != null">POR_TENSION,</if>
|
||||
<if test="celTension != null">CEL_TENSION,</if>
|
||||
<if test="cleanTension != null">CLEAN_TENSION,</if>
|
||||
<if test="furTension != null">FUR_TENSION,</if>
|
||||
<if test="towerTension != null">TOWER_TENSION,</if>
|
||||
<if test="tmNoneTension != null">TM_NONE_TENSION,</if>
|
||||
<if test="tmEntryTension != null">TM_ENTRY_TENSION,</if>
|
||||
<if test="tmExitTension != null">TM_EXIT_TENSION,</if>
|
||||
<if test="tmRollforce != null">TM_ROLLFORCE,</if>
|
||||
<if test="tmBendforce != null">TM_BENDFORCE,</if>
|
||||
<if test="tmAcrMesh != null">TM_ACR_MESH,</if>
|
||||
<if test="tmBrMesh != null">TM_BR_MESH,</if>
|
||||
<if test="tlNoneTension != null">TL_NONE_TENSION,</if>
|
||||
<if test="tlExitTension != null">TL_EXIT_TENSION,</if>
|
||||
<if test="tlElong != null">TL_ELONG,</if>
|
||||
<if test="tlLvlMesh1 != null">TL_LVL_MESH1,</if>
|
||||
<if test="tlLvlMesh2 != null">TL_LVL_MESH2,</if>
|
||||
<if test="tlAcbMesh != null">TL_ACB_MESH,</if>
|
||||
<if test="coatTension != null">COAT_TENSION,</if>
|
||||
<if test="cxlTension != null">CXL_TENSION,</if>
|
||||
<if test="trTension != null">TR_TENSION,</if>
|
||||
<if test="createTime != null">CREATE_TIME,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
<if test="TYPE != null">TYPE,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="COILID != null">#{COILID},</if>
|
||||
<if test="PLANID != null">#{PLANID},</if>
|
||||
<if test="porTension != null">#{porTension},</if>
|
||||
<if test="celTension != null">#{celTension},</if>
|
||||
<if test="cleanTension != null">#{cleanTension},</if>
|
||||
<if test="furTension != null">#{furTension},</if>
|
||||
<if test="towerTension != null">#{towerTension},</if>
|
||||
<if test="tmNoneTension != null">#{tmNoneTension},</if>
|
||||
<if test="tmEntryTension != null">#{tmEntryTension},</if>
|
||||
<if test="tmExitTension != null">#{tmExitTension},</if>
|
||||
<if test="tmRollforce != null">#{tmRollforce},</if>
|
||||
<if test="tmBendforce != null">#{tmBendforce},</if>
|
||||
<if test="tmAcrMesh != null">#{tmAcrMesh},</if>
|
||||
<if test="tmBrMesh != null">#{tmBrMesh},</if>
|
||||
<if test="tlNoneTension != null">#{tlNoneTension},</if>
|
||||
<if test="tlExitTension != null">#{tlExitTension},</if>
|
||||
<if test="tlElong != null">#{tlElong},</if>
|
||||
<if test="tlLvlMesh1 != null">#{tlLvlMesh1},</if>
|
||||
<if test="tlLvlMesh2 != null">#{tlLvlMesh2},</if>
|
||||
<if test="tlAcbMesh != null">#{tlAcbMesh},</if>
|
||||
<if test="coatTension != null">#{coatTension},</if>
|
||||
<if test="cxlTension != null">#{cxlTension},</if>
|
||||
<if test="trTension != null">#{trTension},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="TYPE != null">#{TYPE},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updatePdiSetup" parameterType="PdiSetup">
|
||||
update pdi_setup
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="COILID != null">COILID = #{COILID},</if>
|
||||
<if test="PLANID != null">PLANID = #{PLANID},</if>
|
||||
<if test="porTension != null">POR_TENSION = #{porTension},</if>
|
||||
<if test="celTension != null">CEL_TENSION = #{celTension},</if>
|
||||
<if test="cleanTension != null">CLEAN_TENSION = #{cleanTension},</if>
|
||||
<if test="furTension != null">FUR_TENSION = #{furTension},</if>
|
||||
<if test="towerTension != null">TOWER_TENSION = #{towerTension},</if>
|
||||
<if test="tmNoneTension != null">TM_NONE_TENSION = #{tmNoneTension},</if>
|
||||
<if test="tmEntryTension != null">TM_ENTRY_TENSION = #{tmEntryTension},</if>
|
||||
<if test="tmExitTension != null">TM_EXIT_TENSION = #{tmExitTension},</if>
|
||||
<if test="tmRollforce != null">TM_ROLLFORCE = #{tmRollforce},</if>
|
||||
<if test="tmBendforce != null">TM_BENDFORCE = #{tmBendforce},</if>
|
||||
<if test="tmAcrMesh != null">TM_ACR_MESH = #{tmAcrMesh},</if>
|
||||
<if test="tmBrMesh != null">TM_BR_MESH = #{tmBrMesh},</if>
|
||||
<if test="tlNoneTension != null">TL_NONE_TENSION = #{tlNoneTension},</if>
|
||||
<if test="tlExitTension != null">TL_EXIT_TENSION = #{tlExitTension},</if>
|
||||
<if test="tlElong != null">TL_ELONG = #{tlElong},</if>
|
||||
<if test="tlLvlMesh1 != null">TL_LVL_MESH1 = #{tlLvlMesh1},</if>
|
||||
<if test="tlLvlMesh2 != null">TL_LVL_MESH2 = #{tlLvlMesh2},</if>
|
||||
<if test="tlAcbMesh != null">TL_ACB_MESH = #{tlAcbMesh},</if>
|
||||
<if test="coatTension != null">COAT_TENSION = #{coatTension},</if>
|
||||
<if test="cxlTension != null">CXL_TENSION = #{cxlTension},</if>
|
||||
<if test="trTension != null">TR_TENSION = #{trTension},</if>
|
||||
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
<if test="TYPE != null">TYPE = #{TYPE},</if>
|
||||
</trim>
|
||||
where ID = #{ID}
|
||||
</update>
|
||||
|
||||
<delete id="deletePdiSetupById" parameterType="Long">
|
||||
delete from pdi_setup where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePdiSetupByIds" parameterType="String">
|
||||
delete from pdi_setup where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
104
business/src/main/resources/mapper/SetupFurTempMapper.xml
Normal file
104
business/src/main/resources/mapper/SetupFurTempMapper.xml
Normal file
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupFurTempMapper">
|
||||
|
||||
<resultMap type="SetupFurTemp" id="SetupFurTempResult">
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupFurTempVo">
|
||||
select steel_grade, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, update_time, create_time from setup_fur_temp
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupFurTempList" parameterType="SetupFurTemp" resultMap="SetupFurTempResult">
|
||||
<include refid="selectSetupFurTempVo"/>
|
||||
<where>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupFurTempBySteelGrade" parameterType="String" resultMap="SetupFurTempResult">
|
||||
<include refid="selectSetupFurTempVo"/>
|
||||
where steel_grade = #{steelGrade}
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupFurTemp" parameterType="SetupFurTemp">
|
||||
insert into setup_fur_temp
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupFurTemp" parameterType="SetupFurTemp">
|
||||
update setup_fur_temp
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where steel_grade = #{steelGrade}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupFurTempBySteelGrade" parameterType="String">
|
||||
delete from setup_fur_temp where steel_grade = #{steelGrade}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupFurTempBySteelGrades" parameterType="String">
|
||||
delete from setup_fur_temp where steel_grade in
|
||||
<foreach item="steelGrade" collection="array" open="(" separator="," close=")">
|
||||
#{steelGrade}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
146
business/src/main/resources/mapper/SetupTensionMapper.xml
Normal file
146
business/src/main/resources/mapper/SetupTensionMapper.xml
Normal file
@@ -0,0 +1,146 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupTensionMapper">
|
||||
|
||||
<resultMap type="SetupTension" id="SetupTensionResult">
|
||||
<result property="thick" column="thick" />
|
||||
<result property="yieldStren" column="yield_stren" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="value11" column="value11" />
|
||||
<result property="value12" column="value12" />
|
||||
<result property="value13" column="value13" />
|
||||
<result property="value14" column="value14" />
|
||||
<result property="value15" column="value15" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTensionVo">
|
||||
select thick, yield_stren, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, value11, value12, value13, value14, value15, create_time, update_time from setup_tension
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTensionList" parameterType="SetupTension" resultMap="SetupTensionResult">
|
||||
<include refid="selectSetupTensionVo"/>
|
||||
<where>
|
||||
<if test="thick != null "> and thick = #{thick}</if>
|
||||
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
<if test="value4 != null "> and value4 = #{value4}</if>
|
||||
<if test="value5 != null "> and value5 = #{value5}</if>
|
||||
<if test="value6 != null "> and value6 = #{value6}</if>
|
||||
<if test="value7 != null "> and value7 = #{value7}</if>
|
||||
<if test="value8 != null "> and value8 = #{value8}</if>
|
||||
<if test="value9 != null "> and value9 = #{value9}</if>
|
||||
<if test="value10 != null "> and value10 = #{value10}</if>
|
||||
<if test="value11 != null "> and value11 = #{value11}</if>
|
||||
<if test="value12 != null "> and value12 = #{value12}</if>
|
||||
<if test="value13 != null "> and value13 = #{value13}</if>
|
||||
<if test="value14 != null "> and value14 = #{value14}</if>
|
||||
<if test="value15 != null "> and value15 = #{value15}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTensionByThick" parameterType="Long" resultMap="SetupTensionResult">
|
||||
<include refid="selectSetupTensionVo"/>
|
||||
<where>
|
||||
<if test="thick != null ">and thick = #{thick}</if>
|
||||
<if test="yieldStren != null ">and yield_stren = #{yieldStren}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTension" parameterType="SetupTension">
|
||||
insert into setup_tension
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="thick != null">thick,</if>
|
||||
<if test="yieldStren != null">yield_stren,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="value11 != null">value11,</if>
|
||||
<if test="value12 != null">value12,</if>
|
||||
<if test="value13 != null">value13,</if>
|
||||
<if test="value14 != null">value14,</if>
|
||||
<if test="value15 != null">value15,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="thick != null">#{thick},</if>
|
||||
<if test="yieldStren != null">#{yieldStren},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="value11 != null">#{value11},</if>
|
||||
<if test="value12 != null">#{value12},</if>
|
||||
<if test="value13 != null">#{value13},</if>
|
||||
<if test="value14 != null">#{value14},</if>
|
||||
<if test="value15 != null">#{value15},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTension" parameterType="SetupTension">
|
||||
update setup_tension
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="value11 != null">value11 = #{value11},</if>
|
||||
<if test="value12 != null">value12 = #{value12},</if>
|
||||
<if test="value13 != null">value13 = #{value13},</if>
|
||||
<if test="value14 != null">value14 = #{value14},</if>
|
||||
<if test="value15 != null">value15 = #{value15},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where thick = #{thick} and yield_stren = #{yieldStren}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTensionByThick" parameterType="Long">
|
||||
delete from setup_tension where thick = #{thick}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTensionByThicks" parameterType="String">
|
||||
delete from setup_tension
|
||||
where
|
||||
<foreach item="item" index="index" collection="thicks" open="(" separator=") OR (" close=")">
|
||||
thick = #{thicks[${index}]}
|
||||
AND yield_stren = #{yieldStrens[${index}]}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
128
business/src/main/resources/mapper/SetupTlMapper.xml
Normal file
128
business/src/main/resources/mapper/SetupTlMapper.xml
Normal file
@@ -0,0 +1,128 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupTlMapper">
|
||||
|
||||
<resultMap type="SetupTl" id="SetupTlResult">
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="yieldStren" column="yield_stren" />
|
||||
<result property="thick" column="thick" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTlVo">
|
||||
select steel_grade, yield_stren, thick, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, update_time, create_time from setup_tl
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTlList" parameterType="SetupTl" resultMap="SetupTlResult">
|
||||
<include refid="selectSetupTlVo"/>
|
||||
<where>
|
||||
<if test="steelGrade != null "> and steel_grade = #{steelGrade}</if>
|
||||
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
|
||||
<if test="thick != null "> and thick = #{thick}</if>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
<if test="value4 != null "> and value4 = #{value4}</if>
|
||||
<if test="value5 != null "> and value5 = #{value5}</if>
|
||||
<if test="value6 != null "> and value6 = #{value6}</if>
|
||||
<if test="value7 != null "> and value7 = #{value7}</if>
|
||||
<if test="value8 != null "> and value8 = #{value8}</if>
|
||||
<if test="value9 != null "> and value9 = #{value9}</if>
|
||||
<if test="value10 != null "> and value10 = #{value10}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTlBySteelGrade" parameterType="String" resultMap="SetupTlResult">
|
||||
<include refid="selectSetupTlVo"/>
|
||||
<where>
|
||||
<if test="steelGrade != null ">and steel_grade = #{steelGrade}</if>
|
||||
<if test="yieldStren != null ">and yield_stren = #{yieldStren}</if>
|
||||
<if test="thick != null ">and thick = #{thick}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTl" parameterType="SetupTl">
|
||||
insert into setup_tl
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="yieldStren != null">yield_stren,</if>
|
||||
<if test="thick != null">thick,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="yieldStren != null">#{yieldStren},</if>
|
||||
<if test="thick != null">#{thick},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTl" parameterType="SetupTl">
|
||||
update setup_tl
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where steel_grade = #{steelGrade} and yield_stren = #{yieldStren} and thick = #{thick}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTlBySteelGrade" parameterType="String">
|
||||
delete from setup_tl where steel_grade = #{steelGrade}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTlBySteelGrades" parameterType="String">
|
||||
DELETE FROM setup_tl
|
||||
WHERE
|
||||
<foreach item="item" index="index" collection="steelGrades" open="(" separator=") OR (" close=")">
|
||||
steel_grade = #{steelGrades[${index}]}
|
||||
AND yield_stren = #{yieldStrens[${index}]}
|
||||
AND thick = #{thicks[${index}]}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupTmBendforceMapper">
|
||||
|
||||
<resultMap type="SetupTmBendforce" id="SetupTmBendforceResult">
|
||||
<result property="width" column="width" />
|
||||
<result property="rollForce" column="roll_force" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTmBendforceVo">
|
||||
select width, roll_force, value1, value2, value3, value4, update_time, create_time from setup_tm_bendforce
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTmBendforceList" parameterType="SetupTmBendforce" resultMap="SetupTmBendforceResult">
|
||||
<include refid="selectSetupTmBendforceVo"/>
|
||||
<where>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
<if test="value4 != null "> and value4 = #{value4}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTmBendforceByWidth" parameterType="Long" resultMap="SetupTmBendforceResult">
|
||||
<include refid="selectSetupTmBendforceVo"/>
|
||||
<where>
|
||||
<if test="width != null ">and width = #{width}</if>
|
||||
<if test="rollForce != null ">and roll_force = #{rollForce}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTmBendforce" parameterType="SetupTmBendforce">
|
||||
insert into setup_tm_bendforce
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="width != null">width,</if>
|
||||
<if test="rollForce != null">roll_force,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="width != null">#{width},</if>
|
||||
<if test="rollForce != null">#{rollForce},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTmBendforce" parameterType="SetupTmBendforce">
|
||||
update setup_tm_bendforce
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where width = #{width} and roll_force = #{rollForce}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTmBendforceByWidth" parameterType="Long">
|
||||
delete from setup_tm_bendforce where width = #{width}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTmBendforceByWidths" parameterType="String">
|
||||
DELETE FROM setup_tm_bendforce
|
||||
WHERE
|
||||
<foreach item="item" index="index" collection="widths" open="(" separator=") OR (" close=")">
|
||||
width = #{widths[${index}]}
|
||||
AND roll_force = #{rollForces[${index}]}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
125
business/src/main/resources/mapper/SetupTmMeshMapper.xml
Normal file
125
business/src/main/resources/mapper/SetupTmMeshMapper.xml
Normal file
@@ -0,0 +1,125 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupTmMeshMapper">
|
||||
|
||||
<resultMap type="SetupTmMesh" id="SetupTmMeshResult">
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="yieldStren" column="yield_stren" />
|
||||
<result property="thick" column="thick" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTmMeshVo">
|
||||
select steel_grade, yield_stren, thick, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, update_time, create_time from setup_tm_mesh
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTmMeshList" parameterType="SetupTmMesh" resultMap="SetupTmMeshResult">
|
||||
<include refid="selectSetupTmMeshVo"/>
|
||||
<where>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
<if test="value4 != null "> and value4 = #{value4}</if>
|
||||
<if test="value5 != null "> and value5 = #{value5}</if>
|
||||
<if test="value6 != null "> and value6 = #{value6}</if>
|
||||
<if test="value7 != null "> and value7 = #{value7}</if>
|
||||
<if test="value8 != null "> and value8 = #{value8}</if>
|
||||
<if test="value9 != null "> and value9 = #{value9}</if>
|
||||
<if test="value10 != null "> and value10 = #{value10}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTmMeshBySteelGrade" parameterType="String" resultMap="SetupTmMeshResult">
|
||||
<include refid="selectSetupTmMeshVo"/>
|
||||
<where>
|
||||
<if test="steelGrade != null ">and steel_grade = #{steelGrade}</if>
|
||||
<if test="yieldStren != null ">and yield_stren = #{yieldStren}</if>
|
||||
<if test="thick != null ">and thick = #{thick}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTmMesh" parameterType="SetupTmMesh">
|
||||
insert into setup_tm_mesh
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="yieldStren != null">yield_stren,</if>
|
||||
<if test="thick != null">thick,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="yieldStren != null">#{yieldStren},</if>
|
||||
<if test="thick != null">#{thick},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTmMesh" parameterType="SetupTmMesh">
|
||||
update setup_tm_mesh
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where steel_grade = #{steelGrade} and yield_stren = #{yieldStren} and thick = #{thick}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTmMeshBySteelGrade" parameterType="String">
|
||||
delete from setup_tm_mesh where steel_grade = #{steelGrade}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTmMeshBySteelGrades" parameterType="String">
|
||||
DELETE FROM setup_tm_mesh
|
||||
WHERE
|
||||
<foreach item="item" index="index" collection="steelGrades" open="(" separator=") OR (" close=")">
|
||||
thick = #{thicks[${index}]}
|
||||
AND steel_grade = #{steelGrades[${index}]}
|
||||
AND yield_stren = #{yieldStrens[${index}]}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
129
business/src/main/resources/mapper/SetupTmRollforceMapper.xml
Normal file
129
business/src/main/resources/mapper/SetupTmRollforceMapper.xml
Normal file
@@ -0,0 +1,129 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupTmRollforceMapper">
|
||||
|
||||
<resultMap type="SetupTmRollforce" id="SetupTmRollforceResult">
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="thick" column="thick" />
|
||||
<result property="yieldStren" column="yield_stren" />
|
||||
<result property="elong" column="elong" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupTmRollforceVo">
|
||||
select steel_grade, thick, yield_stren, elong, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, update_time, create_time from setup_tm_rollforce
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupTmRollforceList" parameterType="SetupTmRollforce" resultMap="SetupTmRollforceResult">
|
||||
<include refid="selectSetupTmRollforceVo"/>
|
||||
<where>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
<if test="value4 != null "> and value4 = #{value4}</if>
|
||||
<if test="value5 != null "> and value5 = #{value5}</if>
|
||||
<if test="value6 != null "> and value6 = #{value6}</if>
|
||||
<if test="value7 != null "> and value7 = #{value7}</if>
|
||||
<if test="value8 != null "> and value8 = #{value8}</if>
|
||||
<if test="value9 != null "> and value9 = #{value9}</if>
|
||||
<if test="value10 != null "> and value10 = #{value10}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupTmRollforceBySteelGrade" parameterType="String" resultMap="SetupTmRollforceResult">
|
||||
<include refid="selectSetupTmRollforceVo"/>
|
||||
<where>
|
||||
<if test="steelGrade != null">and steel_grade = #{steelGrade}</if>
|
||||
<if test="thick != null">and thick = #{thick}</if>
|
||||
<if test="yieldStren != null">and yield_stren = #{yieldStren}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupTmRollforce" parameterType="SetupTmRollforce">
|
||||
insert into setup_tm_rollforce
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="thick != null">thick,</if>
|
||||
<if test="yieldStren != null">yield_stren,</if>
|
||||
<if test="elong != null">elong,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="thick != null">#{thick},</if>
|
||||
<if test="yieldStren != null">#{yieldStren},</if>
|
||||
<if test="elong != null">#{elong},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupTmRollforce" parameterType="SetupTmRollforce">
|
||||
update setup_tm_rollforce
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren} and elong = #{elong}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupTmRollforceBySteelGrade" parameterType="String">
|
||||
delete from setup_tm_rollforce where steel_grade = #{steelGrade}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupTmRollforceBySteelGrades" parameterType="String">
|
||||
DELETE FROM setup_tm_rollforce
|
||||
WHERE
|
||||
<foreach item="item" index="index" collection="steelGrades" open="(" separator=") OR (" close=")">
|
||||
thick = #{thicks[${index}]}
|
||||
AND steel_grade = #{steelGrades[${index}]}
|
||||
AND yield_stren = #{yieldStrens[${index}]}
|
||||
AND elong = #{elongs[${index}]}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/CrmPdiPlanMapper.xml
Normal file
6
business/target/classes/mapper/CrmPdiPlanMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.CrmPdiPlanMapper">
|
||||
</mapper>
|
||||
141
business/target/classes/mapper/CrmPdoExcoilMapper.xml
Normal file
141
business/target/classes/mapper/CrmPdoExcoilMapper.xml
Normal file
@@ -0,0 +1,141 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.CrmPdoExcoilMapper">
|
||||
|
||||
<select id="getReportSummary" resultType="com.fizz.business.vo.ReportSummaryVO">
|
||||
SELECT
|
||||
-- 总计
|
||||
SUM(exit_width) AS totalExitWidth,
|
||||
SUM(exit_length) AS totalExitLength,
|
||||
SUM(theory_weight) AS totalTheoryWeight,
|
||||
SUM(actual_weight) AS totalActualWeight,
|
||||
SUM(exit_thickness) AS totalExitThickness,
|
||||
|
||||
-- 平均
|
||||
AVG(exit_width) AS avgExitWidth,
|
||||
AVG(exit_length) AS avgExitLength,
|
||||
AVG(theory_weight) AS avgTheoryWeight,
|
||||
AVG(actual_weight) AS avgActualWeight,
|
||||
AVG(exit_thickness) AS avgExitThickness,
|
||||
|
||||
-- 总数
|
||||
COUNT(DISTINCT exit_mat_id) AS coilCount,
|
||||
|
||||
-- 原料总重(去重 entry_mat_id)
|
||||
(SELECT SUM(t.entry_weight)
|
||||
FROM (
|
||||
SELECT entry_mat_id, MAX(entry_weight) AS entry_weight
|
||||
FROM crm_pdo_excoil
|
||||
WHERE del_flag = 0
|
||||
<if test="groupNo != null and groupNo != ''">
|
||||
AND group_no = #{groupNo}
|
||||
</if>
|
||||
<if test="shiftNo != null and shiftNo != ''">
|
||||
AND shift_no = #{shiftNo}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND end_time <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
GROUP BY entry_mat_id
|
||||
) t
|
||||
) AS totalEntryWeight,
|
||||
|
||||
-- 成材率
|
||||
CASE
|
||||
WHEN (SELECT SUM(tt.entry_weight)
|
||||
FROM (
|
||||
SELECT entry_mat_id, MAX(entry_weight) AS entry_weight
|
||||
FROM crm_pdo_excoil
|
||||
WHERE del_flag = 0
|
||||
<if test="groupNo != null and groupNo != ''">
|
||||
AND group_no = #{groupNo}
|
||||
</if>
|
||||
<if test="shiftNo != null and shiftNo != ''">
|
||||
AND shift_no = #{shiftNo}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND end_time <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
GROUP BY entry_mat_id
|
||||
) tt
|
||||
) > 0
|
||||
THEN SUM(actual_weight) /
|
||||
(SELECT SUM(tt.entry_weight)
|
||||
FROM (
|
||||
SELECT entry_mat_id, MAX(entry_weight) AS entry_weight
|
||||
FROM crm_pdo_excoil
|
||||
WHERE del_flag = 0
|
||||
<if test="groupNo != null and groupNo != ''">
|
||||
AND group_no = #{groupNo}
|
||||
</if>
|
||||
<if test="shiftNo != null and shiftNo != ''">
|
||||
AND shift_no = #{shiftNo}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND end_time <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
GROUP BY entry_mat_id
|
||||
) tt
|
||||
)
|
||||
ELSE 0
|
||||
END AS yieldRate
|
||||
|
||||
FROM crm_pdo_excoil
|
||||
WHERE del_flag = 0
|
||||
<if test="groupNo != null and groupNo != ''">
|
||||
AND group_no = #{groupNo}
|
||||
</if>
|
||||
<if test="shiftNo != null and shiftNo != ''">
|
||||
AND shift_no = #{shiftNo}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND end_time <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getReportDetails" resultType="com.fizz.business.vo.ReportDetailVO">
|
||||
SELECT
|
||||
exit_mat_id AS exitMatId,
|
||||
entry_mat_id AS entryMatId,
|
||||
group_no AS groupNo,
|
||||
shift_no AS shiftNo,
|
||||
steel_grade AS steelGrade,
|
||||
exit_width AS exitWidth,
|
||||
exit_length AS exitLength,
|
||||
theory_weight AS theoryWeight,
|
||||
actual_weight AS actualWeight,
|
||||
exit_thickness AS exitThickness,
|
||||
online_time AS onlineTime,
|
||||
end_time AS endTime
|
||||
FROM crm_pdo_excoil
|
||||
WHERE del_flag = 0
|
||||
<if test="groupNo != null and groupNo != ''">
|
||||
AND group_no = #{groupNo}
|
||||
</if>
|
||||
<if test="shiftNo != null and shiftNo != ''">
|
||||
AND shift_no = #{shiftNo}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND end_time <![CDATA[ >= ]]> #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND end_time <![CDATA[ <= ]]> #{endTime}
|
||||
</if>
|
||||
ORDER BY end_time ASC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/DeviceDefineMapper.xml
Normal file
5
business/target/classes/mapper/DeviceDefineMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.DeviceDefineMapper">
|
||||
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/HalfReturnMapper.xml
Normal file
5
business/target/classes/mapper/HalfReturnMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.HalfReturnMapper">
|
||||
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/LogDataMapper.xml
Normal file
6
business/target/classes/mapper/LogDataMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.LogDataMapper">
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/PdoExcoilMapper.xml
Normal file
5
business/target/classes/mapper/PdoExcoilMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.PdoExcoilMapper">
|
||||
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/PdoExcoilSubMapper.xml
Normal file
5
business/target/classes/mapper/PdoExcoilSubMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.PdoExcoilSubMapper">
|
||||
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/PdoStripvalueMapper.xml
Normal file
5
business/target/classes/mapper/PdoStripvalueMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.PdoStripvalueMapper">
|
||||
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/PlantConfigMapper.xml
Normal file
6
business/target/classes/mapper/PlantConfigMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.PlantConfigMapper">
|
||||
</mapper>
|
||||
20
business/target/classes/mapper/ProMatmapMapper.xml
Normal file
20
business/target/classes/mapper/ProMatmapMapper.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.ProMatmapMapper">
|
||||
|
||||
|
||||
<update id="flushMatmap">
|
||||
insert into track_ca1_romtb_matmap (
|
||||
pos_idx, mat_id, plan_no, plan_id
|
||||
)
|
||||
values
|
||||
<foreach collection="list" item="item" index="index" separator=",">
|
||||
(#{item.posIdx}, #{item.matId}, #{item.planNo}, #{item.planId})
|
||||
</foreach>
|
||||
on duplicate key update
|
||||
mat_id = VALUES(mat_id),plan_no = VALUES(plan_no),plan_id = VALUES(plan_id)
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
5
business/target/classes/mapper/ProStoppageMapper.xml
Normal file
5
business/target/classes/mapper/ProStoppageMapper.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.ProStoppageMapper">
|
||||
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/RollChangeCycleMapper.xml
Normal file
6
business/target/classes/mapper/RollChangeCycleMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.RollChangeCycleMapper">
|
||||
</mapper>
|
||||
73
business/target/classes/mapper/SegmentMapper.xml
Normal file
73
business/target/classes/mapper/SegmentMapper.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SegmentMapper">
|
||||
|
||||
<select id="getStripValue" resultType="com.fizz.business.domain.PdoStripvalue">
|
||||
select
|
||||
sum(val1avg) as val1sum, max(val1avg) as val1max, min(val1avg) as val1min, sum(val9cnt) as val1cnt, avg(val1avg) as val1avg,
|
||||
sum(val2avg) as val2sum, max(val2avg) as val2max, min(val2avg) as val2min, sum(val9cnt) as val2cnt, avg(val2avg) as val2avg,
|
||||
sum(val3avg) as val3sum, max(val3avg) as val3max, min(val3avg) as val3min, sum(val9cnt) as val3cnt, avg(val3avg) as val3avg,
|
||||
sum(val4avg) as val4sum, max(val4avg) as val4max, min(val4avg) as val4min, sum(val9cnt) as val4cnt, avg(val4avg) as val4avg,
|
||||
sum(val5avg) as val5sum, max(val5avg) as val5max, min(val5avg) as val5min, sum(val9cnt) as val5cnt, avg(val5avg) as val5avg,
|
||||
sum(val6avg) as val6sum, max(val6avg) as val6max, min(val6avg) as val6min, sum(val9cnt) as val6cnt, avg(val6avg) as val6avg,
|
||||
sum(val7avg) as val7sum, max(val7avg) as val7max, min(val7avg) as val7min, sum(val9cnt) as val7cnt, avg(val7avg) as val7avg,
|
||||
sum(val8avg) as val8sum, max(val8avg) as val8max, min(val8avg) as val8min, sum(val9cnt) as val8cnt, avg(val8avg) as val8avg,
|
||||
sum(val9avg) as val9sum, max(val9avg) as val9max, min(val9avg) as val9min, sum(val9cnt) as val9cnt, avg(val9avg) as val9avg,
|
||||
sum(val10avg) as val10sum, max(val10avg) as val10max, min(val10avg) as val10min, sum(val10cnt) as val10cnt, avg(val10avg) as val10avg,
|
||||
sum(val11avg) as val11sum, max(val11avg) as val11max, min(val11avg) as val11min, sum(val11cnt) as val11cnt, avg(val11avg) as val11avg,
|
||||
sum(val12avg) as val12sum, max(val12avg) as val12max, min(val12avg) as val12min, sum(val12cnt) as val12cnt, avg(val12avg) as val12avg,
|
||||
sum(val13avg) as val13sum, max(val13avg) as val13max, min(val13avg) as val13min, sum(val13cnt) as val13cnt, avg(val13avg) as val13avg,
|
||||
sum(val14avg) as val14sum, max(val14avg) as val14max, min(val14avg) as val14min, sum(val14cnt) as val14cnt, avg(val14avg) as val14avg,
|
||||
sum(val15avg) as val15sum, max(val15avg) as val15max, min(val15avg) as val15min, sum(val15cnt) as val15cnt, avg(val15avg) as val15avg,
|
||||
sum(val16avg) as val16sum, max(val16avg) as val16max, min(val16avg) as val16min, sum(val16cnt) as val16cnt, avg(val16avg) as val16avg,
|
||||
sum(val17avg) as val17sum, max(val17avg) as val17max, min(val17avg) as val17min, sum(val17cnt) as val17cnt, avg(val17avg) as val17avg,
|
||||
sum(val18avg) as val18sum, max(val18avg) as val18max, min(val18avg) as val18min, sum(val18cnt) as val18cnt, avg(val18avg) as val18avg,
|
||||
sum(val19avg) as val19sum, max(val19avg) as val19max, min(val19avg) as val19min, sum(val19cnt) as val19cnt, avg(val19avg) as val19avg,
|
||||
sum(val20avg) as val20sum, max(val20avg) as val20max, min(val20avg) as val20min, sum(val20cnt) as val20cnt, avg(val20avg) as val20avg,
|
||||
sum(val21avg) as val21sum, max(val21avg) as val21max, min(val21avg) as val21min, sum(val21cnt) as val21cnt, avg(val21avg) as val21avg,
|
||||
sum(val22avg) as val22sum, max(val22avg) as val22max, min(val22avg) as val22min, sum(val22cnt) as val22cnt, avg(val22avg) as val22avg,
|
||||
sum(val23avg) as val23sum, max(val23avg) as val23max, min(val23avg) as val23min, sum(val23cnt) as val23cnt, avg(val23avg) as val23avg,
|
||||
sum(val24avg) as val24sum, max(val24avg) as val24max, min(val24avg) as val24min, sum(val24cnt) as val24cnt, avg(val24avg) as val24avg,
|
||||
sum(val25avg) as val25sum, max(val25avg) as val25max, min(val25avg) as val25min, sum(val25cnt) as val25cnt, avg(val25avg) as val25avg,
|
||||
sum(val26avg) as val26sum, max(val26avg) as val26max, min(val26avg) as val26min, sum(val26cnt) as val26cnt, avg(val26avg) as val26avg,
|
||||
sum(val27avg) as val27sum, max(val27avg) as val27max, min(val27avg) as val27min, sum(val27cnt) as val27cnt, avg(val27avg) as val27avg,
|
||||
sum(val28avg) as val28sum, max(val28avg) as val28max, min(val28avg) as val28min, sum(val28cnt) as val28cnt, avg(val28avg) as val28avg,
|
||||
sum(val29avg) as val29sum, max(val29avg) as val29max, min(val29avg) as val29min, sum(val29cnt) as val29cnt, avg(val29avg) as val29avg,
|
||||
sum(val30avg) as val30sum, max(val30avg) as val30max, min(val30avg) as val30min, sum(val30cnt) as val30cnt, avg(val30avg) as val30avg,
|
||||
sum(val31avg) as val31sum, max(val31avg) as val31max, min(val31avg) as val31min, sum(val31cnt) as val31cnt, avg(val31avg) as val31avg,
|
||||
sum(val32avg) as val32sum, max(val32avg) as val32max, min(val32avg) as val32min, sum(val32cnt) as val32cnt, avg(val32avg) as val32avg,
|
||||
sum(val33avg) as val33sum, max(val33avg) as val33max, min(val33avg) as val33min, sum(val33cnt) as val33cnt, avg(val33avg) as val33avg,
|
||||
sum(val34avg) as val34sum, max(val34avg) as val34max, min(val34avg) as val34min, sum(val34cnt) as val34cnt, avg(val34avg) as val34avg,
|
||||
sum(val35avg) as val35sum, max(val35avg) as val35max, min(val35avg) as val35min, sum(val35cnt) as val35cnt, avg(val35avg) as val35avg,
|
||||
sum(val36avg) as val36sum, max(val36avg) as val36max, min(val36avg) as val36min, sum(val36cnt) as val36cnt, avg(val36avg) as val36avg,
|
||||
sum(val37avg) as val37sum, max(val37avg) as val37max, min(val37avg) as val37min, sum(val37cnt) as val37cnt, avg(val37avg) as val37avg,
|
||||
sum(val38avg) as val38sum, max(val38avg) as val38max, min(val38avg) as val38min, sum(val38cnt) as val38cnt, avg(val38avg) as val38avg,
|
||||
sum(val39avg) as val39sum, max(val39avg) as val39max, min(val39avg) as val39min, sum(val39cnt) as val39cnt, avg(val39avg) as val39avg,
|
||||
sum(val40avg) as val40sum, max(val40avg) as val30max, min(val40avg) as val40min, sum(val40cnt) as val40cnt, avg(val40avg) as val40avg,
|
||||
sum(val41avg) as val41sum, max(val41avg) as val41max, min(val41avg) as val41min, sum(val41cnt) as val41cnt, avg(val41avg) as val41avg,
|
||||
sum(val42avg) as val42sum, max(val42avg) as val42max, min(val42avg) as val42min, sum(val42cnt) as val42cnt, avg(val42avg) as val42avg,
|
||||
sum(val43avg) as val43sum, max(val43avg) as val43max, min(val43avg) as val43min, sum(val43cnt) as val43cnt, avg(val43avg) as val43avg,
|
||||
sum(val44avg) as val44sum, max(val44avg) as val44max, min(val44avg) as val44min, sum(val44cnt) as val44cnt, avg(val44avg) as val44avg,
|
||||
sum(val45avg) as val45sum, max(val45avg) as val45max, min(val45avg) as val45min, sum(val45cnt) as val45cnt, avg(val45avg) as val45avg,
|
||||
sum(val46avg) as val46sum, max(val46avg) as val46max, min(val46avg) as val46min, sum(val46cnt) as val46cnt, avg(val46avg) as val46avg,
|
||||
sum(val47avg) as val47sum, max(val47avg) as val47max, min(val47avg) as val47min, sum(val47cnt) as val47cnt, avg(val47avg) as val47avg,
|
||||
sum(val48avg) as val48sum, max(val48avg) as val48max, min(val48avg) as val48min, sum(val48cnt) as val48cnt, avg(val48avg) as val48avg,
|
||||
sum(val49avg) as val49sum, max(val49avg) as val49max, min(val49avg) as val49min, sum(val49cnt) as val49cnt, avg(val49avg) as val49avg,
|
||||
sum(val50avg) as val50sum, max(val50avg) as val50max, min(val50avg) as val50min, sum(val50cnt) as val50cnt, avg(val50avg) as val50avg
|
||||
from cpg_segment
|
||||
where entry_mat_id = #{entryMatId} and start_position >= #{startPos} and end_position < #{endPos}
|
||||
</select>
|
||||
|
||||
<select id="getLatestRecord" resultType="com.fizz.business.domain.Segment">
|
||||
SELECT * FROM cpg_segment where id=(SELECT max(id) FROM cpg_segment)
|
||||
</select>
|
||||
|
||||
<select id="queryParamByEnCoilId" resultType="com.fizz.business.vo.SegmentParamVO">
|
||||
SELECT seg_no AS segNo,
|
||||
JSON_UNQUOTE(JSON_EXTRACT(total_values_json, CONCAT('$.', #{paramField}, '_avg'))) AS value
|
||||
FROM cpl_segment_total
|
||||
WHERE en_coil_id = #{enCoilID}
|
||||
ORDER BY seg_no
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
7
business/target/classes/mapper/SegmentTotalMapper.xml
Normal file
7
business/target/classes/mapper/SegmentTotalMapper.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SegmentTotalMapper">
|
||||
<select id="getLatestRecord" resultType="com.fizz.business.domain.SegmentTotal">
|
||||
SELECT * FROM cpg_segment_total where id=(SELECT max(id) FROM cpg_segment_total)
|
||||
</select>
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/ShiftHistoryMapper.xml
Normal file
6
business/target/classes/mapper/ShiftHistoryMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.ShiftHistoryMapper">
|
||||
</mapper>
|
||||
6
business/target/classes/mapper/SteelGradeInfoMapper.xml
Normal file
6
business/target/classes/mapper/SteelGradeInfoMapper.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
|
||||
<mapper namespace="com.fizz.business.mapper.SteelGradeInfoMapper">
|
||||
</mapper>
|
||||
0
business/target/classes/rabbitmq.http
Normal file
0
business/target/classes/rabbitmq.http
Normal file
Reference in New Issue
Block a user