refactor(PdiSetup): 重构张力参数服务接口和实现

- 移除旧的生产计划参数详情相关服务接口
- 添加全线张力、退火炉张力、平整机张力、矫直机张力等新服务接口
- 更新PdiSetupService接口方法签名和文档注释
- 移除Spring Security权限注解依赖
- 优化Mapper XML映射文件字段映射和查询逻辑
- 更新控制器方法名称和日志标题以匹配新功能
This commit is contained in:
2026-01-08 14:33:53 +08:00
parent 5e2610f087
commit b36787f01f
56 changed files with 1649 additions and 2641 deletions

View File

@@ -5,6 +5,8 @@ import com.fizz.business.constants.enums.OpcMessageType;
import com.fizz.business.domain.msg.*;
import com.fizz.business.scheduled.BaseSchedule;
import com.fizz.business.service.hanle.OpcReceiverHandler;
import com.fizz.business.service.ProStoppageService;
import com.fizz.business.domain.ProStoppage;
import com.kangaroohy.milo.model.ReadWriteEntity;
import com.kangaroohy.milo.service.MiloService;
import lombok.AllArgsConstructor;
@@ -17,6 +19,9 @@ import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.lang.reflect.Field;
import java.time.Duration;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@@ -34,6 +39,22 @@ public class MessageReceiveSchedule extends BaseSchedule {
@Resource
private OpcReceiverHandler opcReceiverHandler;
@Resource
private ProStoppageService proStoppageService;
/**
* 低速监控状态
*/
private LocalDateTime lowSpeedStartTime;
private boolean stopRecorded = false;
private Long currentStopId;
/**
* 恢复监控状态
*/
private LocalDateTime highSpeedStartTime;
@Scheduled(fixedDelay = 1000)
public void L1L2LineMeasure() {
try {
@@ -55,6 +76,9 @@ public class MessageReceiveSchedule extends BaseSchedule {
msg.setAppMeasureCoatMessage(coat);
msg.setAppMeasureFurnaceMessage(fur);
msg.setAppMeasureExitMessage(exit);
monitorStripSpeed(entry);
opcReceiverHandler.onMessageReceived(OpcMessageType.APP_MEASURE,msg);
} catch (Exception e) {
@@ -86,4 +110,67 @@ public class MessageReceiveSchedule extends BaseSchedule {
}
});
}
/**
* stripSpeed<5 持续5分钟判定停机>5 持续1分钟结束停机并更新维持时间
*/
private void monitorStripSpeed(AppMeasureEntryMessage entry) {
if (entry == null || entry.getStripSpeed() == null) {
resetSpeedFlags();
return;
}
boolean lowSpeed = entry.getStripSpeed().compareTo(BigDecimal.valueOf(5)) < 0;
LocalDateTime now = LocalDateTime.now();
if (lowSpeed) {
highSpeedStartTime = null; // 重置恢复计时
if (lowSpeedStartTime == null) {
lowSpeedStartTime = now;
}
// 低速已持续超过5分钟且尚未入库则新增停机记录
if (!stopRecorded && Duration.between(lowSpeedStartTime, now).toMinutes() >= 5) {
ProStoppage stoppage = new ProStoppage();
stoppage.setStartDate(lowSpeedStartTime);
stoppage.setDuration(BigDecimal.ZERO); // 初始为0恢复后再更新
stoppage.setStopType("AUTO_LOW_SPEED");
stoppage.setRemark("stripSpeed<5 自动停机");
if (proStoppageService.save(stoppage)) {
currentStopId = stoppage.getStopid();
stopRecorded = true;
log.info("自动新增低速停机记录stopId={} start={}", currentStopId, lowSpeedStartTime);
} else {
log.warn("自动新增低速停机记录失败");
}
}
} else {
lowSpeedStartTime = null;
if (stopRecorded) {
if (highSpeedStartTime == null) {
highSpeedStartTime = now;
}
if (Duration.between(highSpeedStartTime, now).toMinutes() >= 1 && currentStopId != null) {
ProStoppage update = new ProStoppage();
update.setStopid(currentStopId);
update.setEndDate(now);
// duration 以秒存储
ProStoppage existing = proStoppageService.getById(currentStopId);
LocalDateTime start = existing != null && existing.getStartDate() != null ? existing.getStartDate() : highSpeedStartTime;
long seconds = Duration.between(start, now).getSeconds();
update.setDuration(BigDecimal.valueOf(seconds));
proStoppageService.updateById(update);
log.info("低速停机结束更新stopId={} duration={}s", currentStopId, seconds);
resetSpeedFlags();
}
} else {
highSpeedStartTime = null;
}
}
}
private void resetSpeedFlags() {
lowSpeedStartTime = null;
highSpeedStartTime = null;
// 不重置 stopRecorded/currentStopId避免短暂无值时丢失状态
}
}

View File

@@ -4,7 +4,6 @@ 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;
@@ -12,13 +11,12 @@ 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
*/
@@ -53,12 +51,12 @@ public class PdiSetupController extends BaseController
}
/**
* 获取生产计划的参数详情详细信息
* 获取张力参数详细信息
*/
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(pdiSetupService.selectPdiSetupByid(id));
return success(pdiSetupService.selectPdiSetupById(id));
}
/**
@@ -82,12 +80,12 @@ public class PdiSetupController extends BaseController
}
/**
* 删除生产计划的参数详情
* 删除张力参数
*/
@Log(title = "生产计划的参数详情", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
@Log(title = "张力参数", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(pdiSetupService.deletePdiSetupByids(ids));
return toAjax(pdiSetupService.deletePdiSetupByIds(ids));
}
}

View File

@@ -0,0 +1,83 @@
package com.fizz.business.controller;
import java.util.List;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.fizz.business.domain.SetupTensionAllLine;
import com.fizz.business.service.ISetupTensionAllLineService;
/**
* 全线张力Controller无权限控制
*
* 三主键steelGrade + thick + yieldStren
*/
@RestController
@RequestMapping("/business/tension/all-line")
@Anonymous
public class SetupTensionAllLineController extends BaseController
{
@Autowired
private ISetupTensionAllLineService service;
/**
* 查询全线张力列表
*/
@GetMapping("/list")
public TableDataInfo list(SetupTensionAllLine query)
{
startPage();
List<SetupTensionAllLine> list = service.selectList(query);
return getDataTable(list);
}
/**
* 获取全线张力详细信息(按三主键)
*/
@GetMapping
public AjaxResult getInfo(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return success(service.selectByKey(steelGrade, thick, yieldStren));
}
/**
* 新增全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTensionAllLine entity)
{
return toAjax(service.insert(entity));
}
/**
* 修改全线张力(按三主键定位)
*/
@Log(title = "全线张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTensionAllLine entity)
{
return toAjax(service.updateByKey(entity));
}
/**
* 删除全线张力(按三主键)
*/
@Log(title = "全线张力", businessType = BusinessType.DELETE)
@DeleteMapping
public AjaxResult remove(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return toAjax(service.deleteByKey(steelGrade, thick, yieldStren));
}
}

View File

@@ -0,0 +1,69 @@
package com.fizz.business.controller;
import java.util.List;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.fizz.business.domain.SetupTensionAnnealingFurnace;
import com.fizz.business.service.ISetupTensionAnnealingFurnaceService;
/**
* 退火炉张力Controller无权限控制
*
* 三主键steelGrade + thick + yieldStren
*/
@RestController
@RequestMapping("/business/tension/annealing-furnace")
@Anonymous
public class SetupTensionAnnealingFurnaceController extends BaseController
{
@Autowired
private ISetupTensionAnnealingFurnaceService service;
@GetMapping("/list")
public TableDataInfo list(SetupTensionAnnealingFurnace query)
{
startPage();
List<SetupTensionAnnealingFurnace> list = service.selectList(query);
return getDataTable(list);
}
@GetMapping
public AjaxResult getInfo(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return success(service.selectByKey(steelGrade, thick, yieldStren));
}
@Log(title = "退火炉张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTensionAnnealingFurnace entity)
{
return toAjax(service.insert(entity));
}
@Log(title = "退火炉张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTensionAnnealingFurnace entity)
{
return toAjax(service.updateByKey(entity));
}
@Log(title = "退火炉张力", businessType = BusinessType.DELETE)
@DeleteMapping
public AjaxResult remove(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return toAjax(service.deleteByKey(steelGrade, thick, yieldStren));
}
}

View File

@@ -1,95 +0,0 @@
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(required = false) Long thick ,@RequestParam(required = false) Long yieldStren)
{
return success(setupTensionService.selectSetupTensionByThick(thick, yieldStren));
}
/**
* 新增全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTension setupTension)
{
return toAjax(setupTensionService.insertSetupTension(setupTension));
}
/**
* 修改全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTension setupTension)
{
return toAjax(setupTensionService.updateSetupTension(setupTension));
}
/**
* 删除全线张力
*/
@Log(title = "全线张力", businessType = BusinessType.DELETE)
@DeleteMapping("/tension") // 建议添加路径区分不同删除接口
public AjaxResult removeTension(@RequestBody TensionDeleteForm form) {
return toAjax(setupTensionService.deleteSetupTensionByThicks(
form.getThicks(),
form.getYieldStrens()
));
}
}

View File

@@ -0,0 +1,69 @@
package com.fizz.business.controller;
import java.util.List;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.fizz.business.domain.SetupTensionLeveler;
import com.fizz.business.service.ISetupTensionLevelerService;
/**
* 平整机张力Controller无权限控制
*
* 三主键steelGrade + thick + yieldStren
*/
@RestController
@RequestMapping("/business/tension/leveler")
@Anonymous
public class SetupTensionLevelerController extends BaseController
{
@Autowired
private ISetupTensionLevelerService service;
@GetMapping("/list")
public TableDataInfo list(SetupTensionLeveler query)
{
startPage();
List<SetupTensionLeveler> list = service.selectList(query);
return getDataTable(list);
}
@GetMapping
public AjaxResult getInfo(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return success(service.selectByKey(steelGrade, thick, yieldStren));
}
@Log(title = "平整机张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTensionLeveler entity)
{
return toAjax(service.insert(entity));
}
@Log(title = "平整机张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTensionLeveler entity)
{
return toAjax(service.updateByKey(entity));
}
@Log(title = "平整机张力", businessType = BusinessType.DELETE)
@DeleteMapping
public AjaxResult remove(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return toAjax(service.deleteByKey(steelGrade, thick, yieldStren));
}
}

View File

@@ -0,0 +1,69 @@
package com.fizz.business.controller;
import java.util.List;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.fizz.business.domain.SetupTensionStraightener;
import com.fizz.business.service.ISetupTensionStraightenerService;
/**
* 矫直机张力Controller无权限控制
*
* 三主键steelGrade + thick + yieldStren
*/
@RestController
@RequestMapping("/business/tension/straightener")
@Anonymous
public class SetupTensionStraightenerController extends BaseController
{
@Autowired
private ISetupTensionStraightenerService service;
@GetMapping("/list")
public TableDataInfo list(SetupTensionStraightener query)
{
startPage();
List<SetupTensionStraightener> list = service.selectList(query);
return getDataTable(list);
}
@GetMapping
public AjaxResult getInfo(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return success(service.selectByKey(steelGrade, thick, yieldStren));
}
@Log(title = "矫直机张力", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SetupTensionStraightener entity)
{
return toAjax(service.insert(entity));
}
@Log(title = "矫直机张力", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SetupTensionStraightener entity)
{
return toAjax(service.updateByKey(entity));
}
@Log(title = "矫直机张力", businessType = BusinessType.DELETE)
@DeleteMapping
public AjaxResult remove(@RequestParam("steelGrade") String steelGrade,
@RequestParam("thick") Float thick,
@RequestParam("yieldStren") Float yieldStren)
{
return toAjax(service.deleteByKey(steelGrade, thick, yieldStren));
}
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -5,162 +5,95 @@ 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;
import java.math.BigDecimal;
import java.util.Date;
/**
* 生产计划的参数详情对象 pdi_setup
* 张力参数表对象 pdi_setup
*
* @author Joshi
* @date 2025-09-25
* 表主键为自增 id。
*/
@Data
@TableName("pdi_setup")
public class PdiSetups implements Serializable
{
public class PdiSetups implements Serializable {
private static final long serialVersionUID = 1L;
/** 主键ID */
@TableId(value = "ID", type = IdType.AUTO)
/** 主键 */
@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 = "钢种")
private String steelGrade;
/** 厚度 */
@Excel(name = "厚度")
private BigDecimal thick;
/** 屈服强度 */
@Excel(name = "屈服强度")
private BigDecimal yieldStren;
/** 开卷机张力 */
@Excel(name = "开卷机张力")
@TableField("POR_TENSION")
private Long porTension;
private BigDecimal porTension;
/** 入口活套张力 */
@Excel(name = "入口活套张力")
@TableField("CEL_TENSION")
private Long celTension;
private BigDecimal celTension;
/** 清洗段张力 */
@Excel(name = "清洗段张力")
@TableField("CLEAN_TENSION")
private Long cleanTension;
private BigDecimal 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 = "钝化段张力")
private BigDecimal passivationTension;
/** 出口活套张力 */
@Excel(name = "出口活套张力")
@TableField("CXL_TENSION")
private Long cxlTension;
private BigDecimal cxlTension;
/** 卷取机张力 */
@Excel(name = "卷取机张力")
@TableField("TR_TENSION")
private Long trTension;
private BigDecimal trTension;
/** 类型,或可用于记录更改次数 */
@Excel(name = "类型,或可用于记录更改次数")
@TableField("TYPE")
private Long type;
/** 平整机入口张力 */
@Excel(name = "平整机入口张力")
private BigDecimal levelerEntryTension;
/** 预热段出口板温 */
@Excel(name = "预热段出口板温")
@TableField("PREHEATING_SECTION")
private Float preheatingSection;
/** 平整机出口张力 */
@Excel(name = "平整机出口张力")
private BigDecimal levelerExitTension;
/** 加热段出口板温 */
@Excel(name = "加热段出口板温")
@TableField("HEATING_SECTION")
private Float heatingSection;
/** 矫直机出口张力 */
@Excel(name = "矫直机出口张力")
private BigDecimal straightenerExitTension;
/** 冷却段出口板温 */
@Excel(name = "冷却段出口板温")
@TableField("COOLING_SECTION")
private Float coolingSection;
/** 炉区张力 */
@Excel(name = "炉区张力")
private BigDecimal furTension;
/** 冷却塔张力 */
@Excel(name = "冷却塔张力")
private BigDecimal towerTension;
/** 创建时间 */
@Excel(name = "创建时间")
private Date createTime;
/** 更新时间 */
@Excel(name = "更新时间")
private Date updateTime;
}

View File

@@ -0,0 +1,150 @@
package com.fizz.business.domain;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 全线张力对象 setup_tension_all_line
*
* 三主键steel_grade + thick + yield_stren
*/
public class SetupTensionAllLine extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 钢种 */
@Excel(name = "钢种")
private String steelGrade;
/** 厚度 */
@Excel(name = "厚度")
private Float thick;
/** 屈服强度 */
@Excel(name = "屈服强度")
private Float yieldStren;
/** 开卷机张力 */
@Excel(name = "开卷机张力")
private Float value1;
/** 入口活套张力 */
@Excel(name = "入口活套张力")
private Float value2;
/** 清洗段张力 */
@Excel(name = "清洗段张力")
private Float value3;
/** 钝化段张力 */
@Excel(name = "钝化段张力")
private Float value4;
/** 出口活套张力 */
@Excel(name = "出口活套张力")
private Float value5;
/** 卷取机张力 */
@Excel(name = "卷取机张力")
private Float value6;
/** 创建时间(表字段) */
private Date createTime;
/** 更新时间(表字段) */
private Date updateTime;
public String getSteelGrade() {
return steelGrade;
}
public void setSteelGrade(String steelGrade) {
this.steelGrade = steelGrade;
}
public Float getThick() {
return thick;
}
public void setThick(Float thick) {
this.thick = thick;
}
public Float getYieldStren() {
return yieldStren;
}
public void setYieldStren(Float yieldStren) {
this.yieldStren = yieldStren;
}
public Float getValue1() {
return value1;
}
public void setValue1(Float value1) {
this.value1 = value1;
}
public Float getValue2() {
return value2;
}
public void setValue2(Float value2) {
this.value2 = value2;
}
public Float getValue3() {
return value3;
}
public void setValue3(Float value3) {
this.value3 = value3;
}
public Float getValue4() {
return value4;
}
public void setValue4(Float value4) {
this.value4 = value4;
}
public Float getValue5() {
return value5;
}
public void setValue5(Float value5) {
this.value5 = value5;
}
public Float getValue6() {
return value6;
}
public void setValue6(Float value6) {
this.value6 = value6;
}
@Override
public Date getCreateTime() {
return createTime;
}
@Override
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Override
public Date getUpdateTime() {
return updateTime;
}
@Override
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.domain;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 退火炉张力对象 setup_tension_annealing_furnace
*
* 三主键steel_grade + thick + yield_stren
*/
public class SetupTensionAnnealingFurnace extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "钢种")
private String steelGrade;
@Excel(name = "厚度")
private Float thick;
@Excel(name = "屈服强度")
private Float yieldStren;
@Excel(name = "炉区张力")
private Float value1;
@Excel(name = "冷却塔张力")
private Float value2;
private Date createTime;
private Date updateTime;
public String getSteelGrade() { return steelGrade; }
public void setSteelGrade(String steelGrade) { this.steelGrade = steelGrade; }
public Float getThick() { return thick; }
public void setThick(Float thick) { this.thick = thick; }
public Float getYieldStren() { return yieldStren; }
public void setYieldStren(Float yieldStren) { this.yieldStren = yieldStren; }
public Float getValue1() { return value1; }
public void setValue1(Float value1) { this.value1 = value1; }
public Float getValue2() { return value2; }
public void setValue2(Float value2) { this.value2 = value2; }
@Override
public Date getCreateTime() { return createTime; }
@Override
public void setCreateTime(Date createTime) { this.createTime = createTime; }
@Override
public Date getUpdateTime() { return updateTime; }
@Override
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
}

View File

@@ -0,0 +1,61 @@
package com.fizz.business.domain;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 平整机张力对象 setup_tension_leveler
*
* 三主键steel_grade + thick + yield_stren
*/
public class SetupTensionLeveler extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "钢种")
private String steelGrade;
@Excel(name = "厚度")
private Float thick;
@Excel(name = "屈服强度")
private Float yieldStren;
@Excel(name = "平整机入口张力")
private Float value1;
@Excel(name = "平整机出口张力")
private Float value2;
private Date createTime;
private Date updateTime;
public String getSteelGrade() { return steelGrade; }
public void setSteelGrade(String steelGrade) { this.steelGrade = steelGrade; }
public Float getThick() { return thick; }
public void setThick(Float thick) { this.thick = thick; }
public Float getYieldStren() { return yieldStren; }
public void setYieldStren(Float yieldStren) { this.yieldStren = yieldStren; }
public Float getValue1() { return value1; }
public void setValue1(Float value1) { this.value1 = value1; }
public Float getValue2() { return value2; }
public void setValue2(Float value2) { this.value2 = value2; }
@Override
public Date getCreateTime() { return createTime; }
@Override
public void setCreateTime(Date createTime) { this.createTime = createTime; }
@Override
public Date getUpdateTime() { return updateTime; }
@Override
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
}

View File

@@ -0,0 +1,55 @@
package com.fizz.business.domain;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 矫直机张力对象 setup_tension_straightener
*
* 三主键steel_grade + thick + yield_stren
*/
public class SetupTensionStraightener extends BaseEntity
{
private static final long serialVersionUID = 1L;
@Excel(name = "钢种")
private String steelGrade;
@Excel(name = "厚度")
private Float thick;
@Excel(name = "屈服强度")
private Float yieldStren;
@Excel(name = "矫直机出口张力")
private Float value1;
private Date createTime;
private Date updateTime;
public String getSteelGrade() { return steelGrade; }
public void setSteelGrade(String steelGrade) { this.steelGrade = steelGrade; }
public Float getThick() { return thick; }
public void setThick(Float thick) { this.thick = thick; }
public Float getYieldStren() { return yieldStren; }
public void setYieldStren(Float yieldStren) { this.yieldStren = yieldStren; }
public Float getValue1() { return value1; }
public void setValue1(Float value1) { this.value1 = value1; }
@Override
public Date getCreateTime() { return createTime; }
@Override
public void setCreateTime(Date createTime) { this.createTime = createTime; }
@Override
public Date getUpdateTime() { return updateTime; }
@Override
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
}

View File

@@ -1,63 +1,16 @@
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);
// 使用 MyBatis-Plus BaseMapper 提供基础 CRUD含按 id 的 selectById/deleteById/updateById 等)。
}

View File

@@ -0,0 +1,26 @@
package com.fizz.business.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.fizz.business.domain.SetupTensionAllLine;
/**
* 全线张力Mapper接口
*/
public interface SetupTensionAllLineMapper
{
SetupTensionAllLine selectByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
List<SetupTensionAllLine> selectList(SetupTensionAllLine query);
int insert(SetupTensionAllLine entity);
int updateByKey(SetupTensionAllLine entity);
int deleteByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
}

View File

@@ -0,0 +1,26 @@
package com.fizz.business.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.fizz.business.domain.SetupTensionAnnealingFurnace;
/**
* 退火炉张力Mapper接口
*/
public interface SetupTensionAnnealingFurnaceMapper
{
SetupTensionAnnealingFurnace selectByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
List<SetupTensionAnnealingFurnace> selectList(SetupTensionAnnealingFurnace query);
int insert(SetupTensionAnnealingFurnace entity);
int updateByKey(SetupTensionAnnealingFurnace entity);
int deleteByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
}

View File

@@ -0,0 +1,26 @@
package com.fizz.business.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.fizz.business.domain.SetupTensionLeveler;
/**
* 平整机张力Mapper接口
*/
public interface SetupTensionLevelerMapper
{
SetupTensionLeveler selectByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
List<SetupTensionLeveler> selectList(SetupTensionLeveler query);
int insert(SetupTensionLeveler entity);
int updateByKey(SetupTensionLeveler entity);
int deleteByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
}

View File

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

View File

@@ -0,0 +1,26 @@
package com.fizz.business.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.fizz.business.domain.SetupTensionStraightener;
/**
* 矫直机张力Mapper接口
*/
public interface SetupTensionStraightenerMapper
{
SetupTensionStraightener selectByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
List<SetupTensionStraightener> selectList(SetupTensionStraightener query);
int insert(SetupTensionStraightener entity);
int updateByKey(SetupTensionStraightener entity);
int deleteByKey(@Param("steelGrade") String steelGrade,
@Param("thick") Float thick,
@Param("yieldStren") Float yieldStren);
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -4,62 +4,39 @@ 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);
List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup);
/**
* 查询生产计划的参数详情列表
*
* @param pdiSetup 生产计划的参数详情
* @return 生产计划的参数详情集合
* 按 id 查询
*/
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup);
PdiSetups selectPdiSetupById(Long id);
/**
* 新增生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
* 新增
*/
public Boolean insertPdiSetup(PdiSetups pdiSetup);
Boolean insertPdiSetup(PdiSetups pdiSetup);
/**
* 修改生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
* 按 id 更新
*/
public Boolean updatePdiSetup(PdiSetups pdiSetup);
Boolean updatePdiSetup(PdiSetups pdiSetup);
/**
* 批量删除生产计划的参数详情
*
* @param ids 需要删除的生产计划的参数详情主键集合
* @return 结果
* 按 id 批量删除
*/
public Boolean deletePdiSetupByids(Long[] ids);
/**
* 删除生产计划的参数详情信息
*
* @param id 生产计划的参数详情主键
* @return 结果
*/
public Boolean deletePdiSetupByid(Long id);
Boolean deletePdiSetupByIds(Long[] ids);
}

View File

@@ -0,0 +1,21 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTensionAllLine;
/**
* 全线张力Service接口
*/
public interface ISetupTensionAllLineService
{
SetupTensionAllLine selectByKey(String steelGrade, Float thick, Float yieldStren);
List<SetupTensionAllLine> selectList(SetupTensionAllLine query);
int insert(SetupTensionAllLine entity);
int updateByKey(SetupTensionAllLine entity);
int deleteByKey(String steelGrade, Float thick, Float yieldStren);
}

View File

@@ -0,0 +1,21 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTensionAnnealingFurnace;
/**
* 退火炉张力Service接口
*/
public interface ISetupTensionAnnealingFurnaceService
{
SetupTensionAnnealingFurnace selectByKey(String steelGrade, Float thick, Float yieldStren);
List<SetupTensionAnnealingFurnace> selectList(SetupTensionAnnealingFurnace query);
int insert(SetupTensionAnnealingFurnace entity);
int updateByKey(SetupTensionAnnealingFurnace entity);
int deleteByKey(String steelGrade, Float thick, Float yieldStren);
}

View File

@@ -0,0 +1,21 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTensionLeveler;
/**
* 平整机张力Service接口
*/
public interface ISetupTensionLevelerService
{
SetupTensionLeveler selectByKey(String steelGrade, Float thick, Float yieldStren);
List<SetupTensionLeveler> selectList(SetupTensionLeveler query);
int insert(SetupTensionLeveler entity);
int updateByKey(SetupTensionLeveler entity);
int deleteByKey(String steelGrade, Float thick, Float yieldStren);
}

View File

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

View File

@@ -0,0 +1,21 @@
package com.fizz.business.service;
import java.util.List;
import com.fizz.business.domain.SetupTensionStraightener;
/**
* 矫直机张力Service接口
*/
public interface ISetupTensionStraightenerService
{
SetupTensionStraightener selectByKey(String steelGrade, Float thick, Float yieldStren);
List<SetupTensionStraightener> selectList(SetupTensionStraightener query);
int insert(SetupTensionStraightener entity);
int updateByKey(SetupTensionStraightener entity);
int deleteByKey(String steelGrade, Float thick, Float yieldStren);
}

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,13 +1,12 @@
package com.fizz.business.service.impl;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import cn.hutool.core.util.StrUtil;
import cn.hutool.core.util.ObjectUtil;
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;
@@ -15,83 +14,48 @@ 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);
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup) {
return lambdaQuery()
.eq(StrUtil.isNotBlank(pdiSetup.getCoilid()), PdiSetups::getCoilid, pdiSetup.getCoilid())
.eq(StrUtil.isNotBlank(pdiSetup.getPlanid()), PdiSetups::getPlanid, pdiSetup.getPlanid())
.eq(StrUtil.isNotBlank(pdiSetup.getSteelGrade()), PdiSetups::getSteelGrade, pdiSetup.getSteelGrade())
.eq(Objects.nonNull(pdiSetup.getThick()), PdiSetups::getThick, pdiSetup.getThick())
.eq(Objects.nonNull(pdiSetup.getYieldStren()), PdiSetups::getYieldStren, pdiSetup.getYieldStren())
.orderByDesc(PdiSetups::getUpdateTime)
.list();
}
/**
* 查询生产计划的参数详情列表
*
* @param pdiSetup 生产计划的参数详情
* @return 生产计划的参数详情
*/
@Override
public List<PdiSetups> selectPdiSetupList(PdiSetups pdiSetup)
{
QueryWrapper<PdiSetups> queryWrapper = new QueryWrapper<>(pdiSetup);
queryWrapper.orderByDesc("create_time");
return baseMapper.selectList(queryWrapper);
public PdiSetups selectPdiSetupById(Long id) {
return getById(id);
}
/**
* 新增生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
@Override
public Boolean insertPdiSetup(PdiSetups pdiSetup)
{
return this.save(pdiSetup);
public Boolean insertPdiSetup(PdiSetups pdiSetup) {
pdiSetup.setCreateTime(ObjectUtil.defaultIfNull(pdiSetup.getCreateTime(), new Date()));
pdiSetup.setUpdateTime(new Date());
return save(pdiSetup);
}
/**
* 修改生产计划的参数详情
*
* @param pdiSetup 生产计划的参数详情
* @return 结果
*/
@Override
public Boolean updatePdiSetup(PdiSetups pdiSetup)
{
return this.updateById(pdiSetup);
public Boolean updatePdiSetup(PdiSetups pdiSetup) {
if (pdiSetup.getId() == null) {
throw new IllegalArgumentException("When updating the tension parameter, the id cannot be empty");
}
pdiSetup.setUpdateTime(new Date());
return 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);
public Boolean deletePdiSetupByIds(Long[] ids) {
return removeByIds(java.util.Arrays.asList(ids));
}
}

View File

@@ -0,0 +1,59 @@
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.domain.SetupTensionAllLine;
import com.fizz.business.mapper.SetupTensionAllLineMapper;
import com.fizz.business.service.ISetupTensionAllLineService;
/**
* 全线张力Service业务层处理
*/
@Service
public class SetupTensionAllLineServiceImpl implements ISetupTensionAllLineService
{
@Autowired
private SetupTensionAllLineMapper mapper;
@Override
public SetupTensionAllLine selectByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.selectByKey(steelGrade, thick, yieldStren);
}
@Override
public List<SetupTensionAllLine> selectList(SetupTensionAllLine query)
{
return mapper.selectList(query);
}
@Override
public int insert(SetupTensionAllLine entity)
{
// 三主键存在则禁止新增
if (mapper.selectByKey(entity.getSteelGrade(), entity.getThick(), entity.getYieldStren()) != null) {
throw new RuntimeException("该参数已存在");
}
entity.setCreateTime(DateUtils.getNowDate());
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.insert(entity);
}
@Override
public int updateByKey(SetupTensionAllLine entity)
{
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.updateByKey(entity);
}
@Override
public int deleteByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.deleteByKey(steelGrade, thick, yieldStren);
}
}

View File

@@ -0,0 +1,58 @@
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.domain.SetupTensionAnnealingFurnace;
import com.fizz.business.mapper.SetupTensionAnnealingFurnaceMapper;
import com.fizz.business.service.ISetupTensionAnnealingFurnaceService;
/**
* 退火炉张力Service业务层处理
*/
@Service
public class SetupTensionAnnealingFurnaceServiceImpl implements ISetupTensionAnnealingFurnaceService
{
@Autowired
private SetupTensionAnnealingFurnaceMapper mapper;
@Override
public SetupTensionAnnealingFurnace selectByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.selectByKey(steelGrade, thick, yieldStren);
}
@Override
public List<SetupTensionAnnealingFurnace> selectList(SetupTensionAnnealingFurnace query)
{
return mapper.selectList(query);
}
@Override
public int insert(SetupTensionAnnealingFurnace entity)
{
if (mapper.selectByKey(entity.getSteelGrade(), entity.getThick(), entity.getYieldStren()) != null) {
throw new RuntimeException("This parameter already exists");
}
entity.setCreateTime(DateUtils.getNowDate());
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.insert(entity);
}
@Override
public int updateByKey(SetupTensionAnnealingFurnace entity)
{
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.updateByKey(entity);
}
@Override
public int deleteByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.deleteByKey(steelGrade, thick, yieldStren);
}
}

View File

@@ -0,0 +1,58 @@
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.domain.SetupTensionLeveler;
import com.fizz.business.mapper.SetupTensionLevelerMapper;
import com.fizz.business.service.ISetupTensionLevelerService;
/**
* 平整机张力Service业务层处理
*/
@Service
public class SetupTensionLevelerServiceImpl implements ISetupTensionLevelerService
{
@Autowired
private SetupTensionLevelerMapper mapper;
@Override
public SetupTensionLeveler selectByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.selectByKey(steelGrade, thick, yieldStren);
}
@Override
public List<SetupTensionLeveler> selectList(SetupTensionLeveler query)
{
return mapper.selectList(query);
}
@Override
public int insert(SetupTensionLeveler entity)
{
if (mapper.selectByKey(entity.getSteelGrade(), entity.getThick(), entity.getYieldStren()) != null) {
throw new RuntimeException("This parameter already exists");
}
entity.setCreateTime(DateUtils.getNowDate());
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.insert(entity);
}
@Override
public int updateByKey(SetupTensionLeveler entity)
{
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.updateByKey(entity);
}
@Override
public int deleteByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.deleteByKey(steelGrade, thick, yieldStren);
}
}

View File

@@ -1,100 +0,0 @@
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)
{
//如果thick 和 yield_stren已存在那么就不需要插入
if(setupTensionMapper.selectSetupTensionByThick(setupTension.getThick(), setupTension.getYieldStren()) != null){
throw new RuntimeException("The parameter already exists.");
}
setupTension.setCreateTime(DateUtils.getNowDate());
return setupTensionMapper.insertSetupTension(setupTension);
}
/**
* 修改全线张力
*
* @param setupTension 全线张力
* @return 结果
*/
@Override
public int updateSetupTension(SetupTension setupTension)
{
setupTension.setUpdateTime(DateUtils.getNowDate());
return setupTensionMapper.updateSetupTension(setupTension);
}
/**
* 批量删除全线张力
*
* @param thicks 需要删除的全线张力主键
* @return 结果
*/
@Override
public int deleteSetupTensionByThicks(Long[] thicks,Long[] yieldStrens)
{
return setupTensionMapper.deleteSetupTensionByThicks(thicks,yieldStrens);
}
/**
* 删除全线张力信息
*
* @param thick 全线张力主键
* @return 结果
*/
@Override
public int deleteSetupTensionByThick(Long thick)
{
return setupTensionMapper.deleteSetupTensionByThick(thick);
}
}

View File

@@ -0,0 +1,58 @@
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.domain.SetupTensionStraightener;
import com.fizz.business.mapper.SetupTensionStraightenerMapper;
import com.fizz.business.service.ISetupTensionStraightenerService;
/**
* 矫直机张力Service业务层处理
*/
@Service
public class SetupTensionStraightenerServiceImpl implements ISetupTensionStraightenerService
{
@Autowired
private SetupTensionStraightenerMapper mapper;
@Override
public SetupTensionStraightener selectByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.selectByKey(steelGrade, thick, yieldStren);
}
@Override
public List<SetupTensionStraightener> selectList(SetupTensionStraightener query)
{
return mapper.selectList(query);
}
@Override
public int insert(SetupTensionStraightener entity)
{
if (mapper.selectByKey(entity.getSteelGrade(), entity.getThick(), entity.getYieldStren()) != null) {
throw new RuntimeException("This parameter already exists");
}
entity.setCreateTime(DateUtils.getNowDate());
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.insert(entity);
}
@Override
public int updateByKey(SetupTensionStraightener entity)
{
entity.setUpdateTime(DateUtils.getNowDate());
return mapper.updateByKey(entity);
}
@Override
public int deleteByKey(String steelGrade, Float thick, Float yieldStren)
{
return mapper.deleteByKey(steelGrade, thick, yieldStren);
}
}

View File

@@ -1,100 +0,0 @@
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)
{
//如果thick 和 yield_stren已存在那么就不需要插入
if(setupTlMapper.selectSetupTlBySteelGrade(setupTl.getSteelGrade(), setupTl.getYieldStren(), setupTl.getThick()) != null){
throw new RuntimeException("The parameter already exists.");
}
setupTl.setUpdateTime(DateUtils.getNowDate());
return setupTlMapper.updateSetupTl(setupTl);
}
/**
* 批量删除拉矫机参数
*
* @param steelGrades 需要删除的拉矫机参数主键
* @return 结果
*/
@Override
public int deleteSetupTlBySteelGrades(String[] steelGrades,Long[] yieldStres,Long[] thicks)
{
return setupTlMapper.deleteSetupTlBySteelGrades(steelGrades, yieldStres, thicks);
}
/**
* 删除拉矫机参数信息
*
* @param steelGrade 拉矫机参数主键
* @return 结果
*/
@Override
public int deleteSetupTlBySteelGrade(String steelGrade)
{
return setupTlMapper.deleteSetupTlBySteelGrade(steelGrade);
}
}

View File

@@ -1,100 +0,0 @@
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)
{
// 如果width 和 rollForce 在表里已存在则不能新增
if (setupTmBendforceMapper.selectSetupTmBendforceByWidth(setupTmBendforce.getWidth(),setupTmBendforce.getRollForce()) != null) {
throw new RuntimeException("The parameter already exists.");
}
setupTmBendforce.setCreateTime(DateUtils.getNowDate());
return setupTmBendforceMapper.insertSetupTmBendforce(setupTmBendforce);
}
/**
* 修改光整机弯辊力
*
* @param setupTmBendforce 光整机弯辊力
* @return 结果
*/
@Override
public int updateSetupTmBendforce(SetupTmBendforce setupTmBendforce)
{
setupTmBendforce.setUpdateTime(DateUtils.getNowDate());
return setupTmBendforceMapper.updateSetupTmBendforce(setupTmBendforce);
}
/**
* 批量删除光整机弯辊力
*
* @param widths 需要删除的光整机弯辊力主键
* @return 结果
*/
@Override
public int deleteSetupTmBendforceByWidths(Long[] widths,Long[] rollForces)
{
return setupTmBendforceMapper.deleteSetupTmBendforceByWidths(widths,rollForces);
}
/**
* 删除光整机弯辊力信息
*
* @param width 光整机弯辊力主键
* @return 结果
*/
@Override
public int deleteSetupTmBendforceByWidth(Long width)
{
return setupTmBendforceMapper.deleteSetupTmBendforceByWidth(width);
}
}

View File

@@ -1,100 +0,0 @@
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)
{
// 如果steelGrade,yieldStren,thick 在表里已存在则不能新增
if (setupTmMeshMapper.selectSetupTmMeshBySteelGrade(setupTmMesh.getSteelGrade(), setupTmMesh.getYieldStren(), setupTmMesh.getThick()) != null) {
throw new RuntimeException("The parameter already exists.");
}
setupTmMesh.setCreateTime(DateUtils.getNowDate());
return setupTmMeshMapper.insertSetupTmMesh(setupTmMesh);
}
/**
* 修改光整机插入量
*
* @param setupTmMesh 光整机插入量
* @return 结果
*/
@Override
public int updateSetupTmMesh(SetupTmMesh setupTmMesh)
{
setupTmMesh.setUpdateTime(DateUtils.getNowDate());
return setupTmMeshMapper.updateSetupTmMesh(setupTmMesh);
}
/**
* 批量删除光整机插入量
*
* @param steelGrades 需要删除的光整机插入量主键
* @return 结果
*/
@Override
public int deleteSetupTmMeshBySteelGrades(String[] steelGrades, Long[] yieldStrens, Long[] thicks)
{
return setupTmMeshMapper.deleteSetupTmMeshBySteelGrades(steelGrades, yieldStrens, thicks);
}
/**
* 删除光整机插入量信息
*
* @param steelGrade 光整机插入量主键
* @return 结果
*/
@Override
public int deleteSetupTmMeshBySteelGrade(String steelGrade)
{
return setupTmMeshMapper.deleteSetupTmMeshBySteelGrade(steelGrade);
}
}

View File

@@ -1,100 +0,0 @@
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)
{
//如果steelGrade,yieldStren,thick,elong 在表里已存在则不能新增
if (setupTmRollforceMapper.selectSetupTmRollforceBySteelGrade(setupTmRollforce.getSteelGrade(), setupTmRollforce.getYieldStren(), setupTmRollforce.getThick(), setupTmRollforce.getElong()) != null) {
throw new RuntimeException("The parameter already exists.");
}
setupTmRollforce.setCreateTime(DateUtils.getNowDate());
return setupTmRollforceMapper.insertSetupTmRollforce(setupTmRollforce);
}
/**
* 修改光整机轧制力
*
* @param setupTmRollforce 光整机轧制力
* @return 结果
*/
@Override
public int updateSetupTmRollforce(SetupTmRollforce setupTmRollforce)
{
setupTmRollforce.setUpdateTime(DateUtils.getNowDate());
return setupTmRollforceMapper.updateSetupTmRollforce(setupTmRollforce);
}
/**
* 批量删除光整机轧制力
*
* @param steelGrades 需要删除的光整机轧制力主键
* @return 结果
*/
@Override
public int deleteSetupTmRollforceBySteelGrades(String[] steelGrades, Long[] thicks, Long[] yieldStrens, Long[] elongs)
{
return setupTmRollforceMapper.deleteSetupTmRollforceBySteelGrades(steelGrades, thicks, yieldStrens, elongs);
}
/**
* 删除光整机轧制力信息
*
* @param steelGrade 光整机轧制力主键
* @return 结果
*/
@Override
public int deleteSetupTmRollforceBySteelGrade(String steelGrade)
{
return setupTmRollforceMapper.deleteSetupTmRollforceBySteelGrade(steelGrade);
}
}

View File

@@ -4,178 +4,167 @@
"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" />
<!--
说明:本 Mapper XML 统一以 MyBatis-Plus 实体 com.fizz.business.domain.PdiSetups 为准。
旧版 PdiSetup(大写字段/TYPE/TM_*/TL_*) 已与当前实体不一致,继续保留会导致插入/查询字段缺失。
-->
<resultMap id="PdiSetupsResult" type="com.fizz.business.domain.PdiSetups">
<id property="id" column="id" />
<result property="coilid" column="coilid" />
<result property="planid" column="planid" />
<result property="steelGrade" column="steel_grade" />
<result property="thick" column="thick" />
<result property="yieldStren" column="yield_stren" />
<result property="porTension" column="por_tension" />
<result property="celTension" column="cel_tension" />
<result property="cleanTension" column="clean_tension" />
<result property="passivationTension" column="passivation_tension" />
<result property="cxlTension" column="cxl_tension" />
<result property="trTension" column="tr_tension" />
<result property="levelerEntryTension" column="leveler_entry_tension" />
<result property="levelerExitTension" column="leveler_exit_tension" />
<result property="straightenerExitTension" column="straightener_exit_tension" />
<result property="furTension" column="fur_tension" />
<result property="towerTension" column="tower_tension" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</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 id="Base_Column_List">
id,
coilid,
planid,
steel_grade,
thick,
yield_stren,
por_tension,
cel_tension,
clean_tension,
passivation_tension,
cxl_tension,
tr_tension,
leveler_entry_tension,
leveler_exit_tension,
straightener_exit_tension,
fur_tension,
tower_tension,
create_time,
update_time
</sql>
<select id="selectPdiSetupList" parameterType="PdiSetup" resultMap="PdiSetupResult">
<include refid="selectPdiSetupVo"/>
<!-- 列表查询:支持按 coilid/planid/steelGrade/thick/yieldStren 过滤,按更新时间倒序 -->
<select id="selectPdiSetupList" parameterType="com.fizz.business.domain.PdiSetups" resultMap="PdiSetupsResult">
select
<include refid="Base_Column_List"/>
from pdi_setup
<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>
<if test="coilid != null and coilid != ''"> and coilid = #{coilid}</if>
<if test="planid != null and planid != ''"> and planid = #{planid}</if>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade = #{steelGrade}</if>
<if test="thick != null"> and thick = #{thick}</if>
<if test="yieldStren != null"> and yield_stren = #{yieldStren}</if>
</where>
order by update_time desc
</select>
<select id="selectPdiSetupById" parameterType="Long" resultMap="PdiSetupResult">
<include refid="selectPdiSetupVo"/>
where ID = #{id}
<select id="selectPdiSetupById" parameterType="java.lang.Long" resultMap="PdiSetupsResult">
select
<include refid="Base_Column_List"/>
from pdi_setup
where id = #{id}
</select>
<insert id="insertPdiSetup" parameterType="PdiSetup" useGeneratedKeys="true" keyProperty="ID">
<!--
说明insert/update 这里保留是为了兼容旧代码可能直接调用 XML 的 SQL。
如果你们完全使用 MyBatis-Plus 的 BaseMapper/save/updateById也可以后续删除这些 SQL。
-->
<insert id="insertPdiSetup" parameterType="com.fizz.business.domain.PdiSetups" 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>
<if test="coilid != null and coilid != ''">coilid,</if>
<if test="planid != null and planid != ''">planid,</if>
<if test="steelGrade != null and steelGrade != ''">steel_grade,</if>
<if test="thick != null">thick,</if>
<if test="yieldStren != null">yield_stren,</if>
<if test="porTension != null">por_tension,</if>
<if test="celTension != null">cel_tension,</if>
<if test="cleanTension != null">clean_tension,</if>
<if test="passivationTension != null">passivation_tension,</if>
<if test="cxlTension != null">cxl_tension,</if>
<if test="trTension != null">tr_tension,</if>
<if test="levelerEntryTension != null">leveler_entry_tension,</if>
<if test="levelerExitTension != null">leveler_exit_tension,</if>
<if test="straightenerExitTension != null">straightener_exit_tension,</if>
<if test="furTension != null">fur_tension,</if>
<if test="towerTension != null">tower_tension,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="COILID != null">#{COILID},</if>
<if test="PLANID != null">#{PLANID},</if>
<if test="coilid != null and coilid != ''">#{coilid},</if>
<if test="planid != null and planid != ''">#{planid},</if>
<if test="steelGrade != null and steelGrade != ''">#{steelGrade},</if>
<if test="thick != null">#{thick},</if>
<if test="yieldStren != null">#{yieldStren},</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="passivationTension != null">#{passivationTension},</if>
<if test="cxlTension != null">#{cxlTension},</if>
<if test="trTension != null">#{trTension},</if>
<if test="levelerEntryTension != null">#{levelerEntryTension},</if>
<if test="levelerExitTension != null">#{levelerExitTension},</if>
<if test="straightenerExitTension != null">#{straightenerExitTension},</if>
<if test="furTension != null">#{furTension},</if>
<if test="towerTension != null">#{towerTension},</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 id="updatePdiSetup" parameterType="com.fizz.business.domain.PdiSetups">
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>
<if test="coilid != null and coilid != ''">coilid = #{coilid},</if>
<if test="planid != null and planid != ''">planid = #{planid},</if>
<if test="steelGrade != null and steelGrade != ''">steel_grade = #{steelGrade},</if>
<if test="thick != null">thick = #{thick},</if>
<if test="yieldStren != null">yield_stren = #{yieldStren},</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="passivationTension != null">passivation_tension = #{passivationTension},</if>
<if test="cxlTension != null">cxl_tension = #{cxlTension},</if>
<if test="trTension != null">tr_tension = #{trTension},</if>
<if test="levelerEntryTension != null">leveler_entry_tension = #{levelerEntryTension},</if>
<if test="levelerExitTension != null">leveler_exit_tension = #{levelerExitTension},</if>
<if test="straightenerExitTension != null">straightener_exit_tension = #{straightenerExitTension},</if>
<if test="furTension != null">fur_tension = #{furTension},</if>
<if test="towerTension != null">tower_tension = #{towerTension},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where ID = #{ID}
where id = #{id}
</update>
<delete id="deletePdiSetupById" parameterType="Long">
delete from pdi_setup where ID = #{id}
<delete id="deletePdiSetupById" parameterType="java.lang.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=")">
<delete id="deletePdiSetupByIds" parameterType="long">
delete from pdi_setup where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
</mapper>

View File

@@ -0,0 +1,86 @@
<?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.SetupTensionAllLineMapper">
<resultMap type="com.fizz.business.domain.SetupTensionAllLine" id="SetupTensionAllLineResult">
<result property="steelGrade" column="steel_grade" />
<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="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSetupTensionAllLineVo">
select steel_grade, thick, yield_stren, value1, value2, value3, value4, value5, value6, create_time, update_time from setup_tension_all_line
</sql>
<select id="selectList" parameterType="com.fizz.business.domain.SetupTensionAllLine" resultMap="SetupTensionAllLineResult">
<include refid="selectSetupTensionAllLineVo"/>
<where>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade like concat('%', #{steelGrade}, '%')</if>
<if test="thick != null "> and thick = #{thick}</if>
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
</where>
</select>
<select id="selectByKey" resultMap="SetupTensionAllLineResult">
<include refid="selectSetupTensionAllLineVo"/>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</select>
<insert id="insert" parameterType="com.fizz.business.domain.SetupTensionAllLine">
insert into setup_tension_all_line
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">steel_grade,</if>
<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="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">#{steelGrade},</if>
<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="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateByKey" parameterType="com.fizz.business.domain.SetupTensionAllLine">
update setup_tension_all_line
<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="updateTime != null">update_time = #{updateTime},</if>
</trim>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</update>
<delete id="deleteByKey">
delete from setup_tension_all_line where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</delete>
</mapper>

View File

@@ -0,0 +1,70 @@
<?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.SetupTensionAnnealingFurnaceMapper">
<resultMap type="com.fizz.business.domain.SetupTensionAnnealingFurnace" id="SetupTensionAnnealingFurnaceResult">
<result property="steelGrade" column="steel_grade" />
<result property="thick" column="thick" />
<result property="yieldStren" column="yield_stren" />
<result property="value1" column="value1" />
<result property="value2" column="value2" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSetupTensionAnnealingFurnaceVo">
select steel_grade, thick, yield_stren, value1, value2, create_time, update_time from setup_tension_annealing_furnace
</sql>
<select id="selectList" parameterType="com.fizz.business.domain.SetupTensionAnnealingFurnace" resultMap="SetupTensionAnnealingFurnaceResult">
<include refid="selectSetupTensionAnnealingFurnaceVo"/>
<where>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade like concat('%', #{steelGrade}, '%')</if>
<if test="thick != null "> and thick = #{thick}</if>
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
</where>
</select>
<select id="selectByKey" resultMap="SetupTensionAnnealingFurnaceResult">
<include refid="selectSetupTensionAnnealingFurnaceVo"/>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</select>
<insert id="insert" parameterType="com.fizz.business.domain.SetupTensionAnnealingFurnace">
insert into setup_tension_annealing_furnace
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">steel_grade,</if>
<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="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">#{steelGrade},</if>
<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="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateByKey" parameterType="com.fizz.business.domain.SetupTensionAnnealingFurnace">
update setup_tension_annealing_furnace
<trim prefix="SET" suffixOverrides=",">
<if test="value1 != null">value1 = #{value1},</if>
<if test="value2 != null">value2 = #{value2},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</update>
<delete id="deleteByKey">
delete from setup_tension_annealing_furnace where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</delete>
</mapper>

View File

@@ -0,0 +1,70 @@
<?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.SetupTensionLevelerMapper">
<resultMap type="com.fizz.business.domain.SetupTensionLeveler" id="SetupTensionLevelerResult">
<result property="steelGrade" column="steel_grade" />
<result property="thick" column="thick" />
<result property="yieldStren" column="yield_stren" />
<result property="value1" column="value1" />
<result property="value2" column="value2" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSetupTensionLevelerVo">
select steel_grade, thick, yield_stren, value1, value2, create_time, update_time from setup_tension_leveler
</sql>
<select id="selectList" parameterType="com.fizz.business.domain.SetupTensionLeveler" resultMap="SetupTensionLevelerResult">
<include refid="selectSetupTensionLevelerVo"/>
<where>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade like concat('%', #{steelGrade}, '%')</if>
<if test="thick != null "> and thick = #{thick}</if>
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
</where>
</select>
<select id="selectByKey" resultMap="SetupTensionLevelerResult">
<include refid="selectSetupTensionLevelerVo"/>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</select>
<insert id="insert" parameterType="com.fizz.business.domain.SetupTensionLeveler">
insert into setup_tension_leveler
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">steel_grade,</if>
<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="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">#{steelGrade},</if>
<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="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateByKey" parameterType="com.fizz.business.domain.SetupTensionLeveler">
update setup_tension_leveler
<trim prefix="SET" suffixOverrides=",">
<if test="value1 != null">value1 = #{value1},</if>
<if test="value2 != null">value2 = #{value2},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</update>
<delete id="deleteByKey">
delete from setup_tension_leveler where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</delete>
</mapper>

View File

@@ -1,146 +0,0 @@
<?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>

View File

@@ -0,0 +1,66 @@
<?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.SetupTensionStraightenerMapper">
<resultMap type="com.fizz.business.domain.SetupTensionStraightener" id="SetupTensionStraightenerResult">
<result property="steelGrade" column="steel_grade" />
<result property="thick" column="thick" />
<result property="yieldStren" column="yield_stren" />
<result property="value1" column="value1" />
<result property="createTime" column="create_time" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectSetupTensionStraightenerVo">
select steel_grade, thick, yield_stren, value1, create_time, update_time from setup_tension_straightener
</sql>
<select id="selectList" parameterType="com.fizz.business.domain.SetupTensionStraightener" resultMap="SetupTensionStraightenerResult">
<include refid="selectSetupTensionStraightenerVo"/>
<where>
<if test="steelGrade != null and steelGrade != ''"> and steel_grade like concat('%', #{steelGrade}, '%')</if>
<if test="thick != null "> and thick = #{thick}</if>
<if test="yieldStren != null "> and yield_stren = #{yieldStren}</if>
</where>
</select>
<select id="selectByKey" resultMap="SetupTensionStraightenerResult">
<include refid="selectSetupTensionStraightenerVo"/>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</select>
<insert id="insert" parameterType="com.fizz.business.domain.SetupTensionStraightener">
insert into setup_tension_straightener
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">steel_grade,</if>
<if test="thick != null">thick,</if>
<if test="yieldStren != null">yield_stren,</if>
<if test="value1 != null">value1,</if>
<if test="createTime != null">create_time,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="steelGrade != null and steelGrade != ''">#{steelGrade},</if>
<if test="thick != null">#{thick},</if>
<if test="yieldStren != null">#{yieldStren},</if>
<if test="value1 != null">#{value1},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateByKey" parameterType="com.fizz.business.domain.SetupTensionStraightener">
update setup_tension_straightener
<trim prefix="SET" suffixOverrides=",">
<if test="value1 != null">value1 = #{value1},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</update>
<delete id="deleteByKey">
delete from setup_tension_straightener where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren}
</delete>
</mapper>

View File

@@ -1,128 +0,0 @@
<?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>

View File

@@ -1,90 +0,0 @@
<?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>

View File

@@ -1,125 +0,0 @@
<?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>

View File

@@ -1,129 +0,0 @@
<?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>