feat(business): 新增炉火段工艺参数管理功能
- 添加 SetupFurTemp 实体类及对应数据库映射文件 - 实现炉火段工艺参数的增删改查接口 - 提供 RESTful 控制器支持前后端交互 - 支持导出工艺参数数据为 Excel 文件 - 增加权限校验确保操作安全性
This commit is contained in:
@@ -0,0 +1,104 @@
|
||||
package com.fizz.business.controller;
|
||||
|
||||
import java.util.List;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.controller.BaseController;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.enums.BusinessType;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
import com.fizz.business.service.ISetupFurTempService;
|
||||
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||
import com.ruoyi.common.core.page.TableDataInfo;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Controller
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/business/fur")
|
||||
public class SetupFurTempController extends BaseController
|
||||
{
|
||||
@Autowired
|
||||
private ISetupFurTempService setupFurTempService;
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
startPage();
|
||||
List<SetupFurTemp> list = setupFurTempService.selectSetupFurTempList(setupFurTemp);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出炉火段工艺参数列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:export')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, SetupFurTemp setupFurTemp)
|
||||
{
|
||||
List<SetupFurTemp> list = setupFurTempService.selectSetupFurTempList(setupFurTemp);
|
||||
ExcelUtil<SetupFurTemp> util = new ExcelUtil<SetupFurTemp>(SetupFurTemp.class);
|
||||
util.exportExcel(response, list, "炉火段工艺参数数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取炉火段工艺参数详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:query')")
|
||||
@GetMapping(value = "/{steelGrade}")
|
||||
public AjaxResult getInfo(@PathVariable("steelGrade") String steelGrade)
|
||||
{
|
||||
return success(setupFurTempService.selectSetupFurTempBySteelGrade(steelGrade));
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:add')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return toAjax(setupFurTempService.insertSetupFurTemp(setupFurTemp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:edit')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return toAjax(setupFurTempService.updateSetupFurTemp(setupFurTemp));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('business:fur:remove')")
|
||||
@Log(title = "炉火段工艺参数", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{steelGrades}")
|
||||
public AjaxResult remove(@PathVariable String[] steelGrades)
|
||||
{
|
||||
return toAjax(setupFurTempService.deleteSetupFurTempBySteelGrades(steelGrades));
|
||||
}
|
||||
}
|
||||
@@ -148,4 +148,19 @@ public class PdiSetups implements Serializable
|
||||
@TableField("TYPE")
|
||||
private Long type;
|
||||
|
||||
/** 预热段出口板温 */
|
||||
@Excel(name = "预热段出口板温")
|
||||
@TableField("PREHEATING_SECTION")
|
||||
private Float preheatingSection;
|
||||
|
||||
/** 加热段出口板温 */
|
||||
@Excel(name = "加热段出口板温")
|
||||
@TableField("HEATING_SECTION")
|
||||
private Float heatingSection;
|
||||
|
||||
/** 冷却段出口板温 */
|
||||
@Excel(name = "冷却段出口板温")
|
||||
@TableField("COOLING_SECTION")
|
||||
private Float coolingSection;
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
package com.fizz.business.domain;
|
||||
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数对象 setup_fur_temp
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public class SetupFurTemp extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** $column.columnComment */
|
||||
private String steelGrade;
|
||||
|
||||
/** 预热段出口板温 */
|
||||
@Excel(name = "预热段出口板温")
|
||||
private Long value1;
|
||||
|
||||
/** 加热段出口板温 */
|
||||
@Excel(name = "加热段出口板温")
|
||||
private Long value2;
|
||||
|
||||
/** 冷却段出口板温 */
|
||||
@Excel(name = "冷却段出口板温")
|
||||
private Long value3;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value4;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value5;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value6;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value7;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value8;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value9;
|
||||
|
||||
/** $column.columnComment */
|
||||
private Long value10;
|
||||
|
||||
public void setSteelGrade(String steelGrade)
|
||||
{
|
||||
this.steelGrade = steelGrade;
|
||||
}
|
||||
|
||||
public String getSteelGrade()
|
||||
{
|
||||
return steelGrade;
|
||||
}
|
||||
public void setValue1(Long value1)
|
||||
{
|
||||
this.value1 = value1;
|
||||
}
|
||||
|
||||
public Long getValue1()
|
||||
{
|
||||
return value1;
|
||||
}
|
||||
public void setValue2(Long value2)
|
||||
{
|
||||
this.value2 = value2;
|
||||
}
|
||||
|
||||
public Long getValue2()
|
||||
{
|
||||
return value2;
|
||||
}
|
||||
public void setValue3(Long value3)
|
||||
{
|
||||
this.value3 = value3;
|
||||
}
|
||||
|
||||
public Long getValue3()
|
||||
{
|
||||
return value3;
|
||||
}
|
||||
public void setValue4(Long value4)
|
||||
{
|
||||
this.value4 = value4;
|
||||
}
|
||||
|
||||
public Long getValue4()
|
||||
{
|
||||
return value4;
|
||||
}
|
||||
public void setValue5(Long value5)
|
||||
{
|
||||
this.value5 = value5;
|
||||
}
|
||||
|
||||
public Long getValue5()
|
||||
{
|
||||
return value5;
|
||||
}
|
||||
public void setValue6(Long value6)
|
||||
{
|
||||
this.value6 = value6;
|
||||
}
|
||||
|
||||
public Long getValue6()
|
||||
{
|
||||
return value6;
|
||||
}
|
||||
public void setValue7(Long value7)
|
||||
{
|
||||
this.value7 = value7;
|
||||
}
|
||||
|
||||
public Long getValue7()
|
||||
{
|
||||
return value7;
|
||||
}
|
||||
public void setValue8(Long value8)
|
||||
{
|
||||
this.value8 = value8;
|
||||
}
|
||||
|
||||
public Long getValue8()
|
||||
{
|
||||
return value8;
|
||||
}
|
||||
public void setValue9(Long value9)
|
||||
{
|
||||
this.value9 = value9;
|
||||
}
|
||||
|
||||
public Long getValue9()
|
||||
{
|
||||
return value9;
|
||||
}
|
||||
public void setValue10(Long value10)
|
||||
{
|
||||
this.value10 = value10;
|
||||
}
|
||||
|
||||
public Long getValue10()
|
||||
{
|
||||
return value10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("steelGrade", getSteelGrade())
|
||||
.append("value1", getValue1())
|
||||
.append("value2", getValue2())
|
||||
.append("value3", getValue3())
|
||||
.append("value4", getValue4())
|
||||
.append("value5", getValue5())
|
||||
.append("value6", getValue6())
|
||||
.append("value7", getValue7())
|
||||
.append("value8", getValue8())
|
||||
.append("value9", getValue9())
|
||||
.append("value10", getValue10())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.append("createTime", getCreateTime())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fizz.business.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Mapper接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public interface SetupFurTempMapper
|
||||
{
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数集合
|
||||
*/
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades);
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.fizz.business.service;
|
||||
|
||||
import java.util.List;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Service接口
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
public interface ISetupFurTempService
|
||||
{
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade);
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数集合
|
||||
*/
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp);
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的炉火段工艺参数主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades);
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数信息
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.fizz.business.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.fizz.business.mapper.SetupFurTempMapper;
|
||||
import com.fizz.business.domain.SetupFurTemp;
|
||||
import com.fizz.business.service.ISetupFurTempService;
|
||||
|
||||
/**
|
||||
* 炉火段工艺参数Service业务层处理
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-09-29
|
||||
*/
|
||||
@Service
|
||||
public class SetupFurTempServiceImpl implements ISetupFurTempService
|
||||
{
|
||||
@Autowired
|
||||
private SetupFurTempMapper setupFurTempMapper;
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
@Override
|
||||
public SetupFurTemp selectSetupFurTempBySteelGrade(String steelGrade)
|
||||
{
|
||||
return setupFurTempMapper.selectSetupFurTempBySteelGrade(steelGrade);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询炉火段工艺参数列表
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 炉火段工艺参数
|
||||
*/
|
||||
@Override
|
||||
public List<SetupFurTemp> selectSetupFurTempList(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
return setupFurTempMapper.selectSetupFurTempList(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertSetupFurTemp(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
setupFurTemp.setCreateTime(DateUtils.getNowDate());
|
||||
return setupFurTempMapper.insertSetupFurTemp(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改炉火段工艺参数
|
||||
*
|
||||
* @param setupFurTemp 炉火段工艺参数
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateSetupFurTemp(SetupFurTemp setupFurTemp)
|
||||
{
|
||||
setupFurTemp.setUpdateTime(DateUtils.getNowDate());
|
||||
return setupFurTempMapper.updateSetupFurTemp(setupFurTemp);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除炉火段工艺参数
|
||||
*
|
||||
* @param steelGrades 需要删除的炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSetupFurTempBySteelGrades(String[] steelGrades)
|
||||
{
|
||||
return setupFurTempMapper.deleteSetupFurTempBySteelGrades(steelGrades);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除炉火段工艺参数信息
|
||||
*
|
||||
* @param steelGrade 炉火段工艺参数主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteSetupFurTempBySteelGrade(String steelGrade)
|
||||
{
|
||||
return setupFurTempMapper.deleteSetupFurTempBySteelGrade(steelGrade);
|
||||
}
|
||||
}
|
||||
104
business/src/main/resources/mapper/SetupFurTempMapper.xml
Normal file
104
business/src/main/resources/mapper/SetupFurTempMapper.xml
Normal file
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.fizz.business.mapper.SetupFurTempMapper">
|
||||
|
||||
<resultMap type="SetupFurTemp" id="SetupFurTempResult">
|
||||
<result property="steelGrade" column="steel_grade" />
|
||||
<result property="value1" column="value1" />
|
||||
<result property="value2" column="value2" />
|
||||
<result property="value3" column="value3" />
|
||||
<result property="value4" column="value4" />
|
||||
<result property="value5" column="value5" />
|
||||
<result property="value6" column="value6" />
|
||||
<result property="value7" column="value7" />
|
||||
<result property="value8" column="value8" />
|
||||
<result property="value9" column="value9" />
|
||||
<result property="value10" column="value10" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSetupFurTempVo">
|
||||
select steel_grade, value1, value2, value3, value4, value5, value6, value7, value8, value9, value10, update_time, create_time from setup_fur_temp
|
||||
</sql>
|
||||
|
||||
<select id="selectSetupFurTempList" parameterType="SetupFurTemp" resultMap="SetupFurTempResult">
|
||||
<include refid="selectSetupFurTempVo"/>
|
||||
<where>
|
||||
<if test="value1 != null "> and value1 = #{value1}</if>
|
||||
<if test="value2 != null "> and value2 = #{value2}</if>
|
||||
<if test="value3 != null "> and value3 = #{value3}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectSetupFurTempBySteelGrade" parameterType="String" resultMap="SetupFurTempResult">
|
||||
<include refid="selectSetupFurTempVo"/>
|
||||
where steel_grade = #{steelGrade}
|
||||
</select>
|
||||
|
||||
<insert id="insertSetupFurTemp" parameterType="SetupFurTemp">
|
||||
insert into setup_fur_temp
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">steel_grade,</if>
|
||||
<if test="value1 != null">value1,</if>
|
||||
<if test="value2 != null">value2,</if>
|
||||
<if test="value3 != null">value3,</if>
|
||||
<if test="value4 != null">value4,</if>
|
||||
<if test="value5 != null">value5,</if>
|
||||
<if test="value6 != null">value6,</if>
|
||||
<if test="value7 != null">value7,</if>
|
||||
<if test="value8 != null">value8,</if>
|
||||
<if test="value9 != null">value9,</if>
|
||||
<if test="value10 != null">value10,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="steelGrade != null">#{steelGrade},</if>
|
||||
<if test="value1 != null">#{value1},</if>
|
||||
<if test="value2 != null">#{value2},</if>
|
||||
<if test="value3 != null">#{value3},</if>
|
||||
<if test="value4 != null">#{value4},</if>
|
||||
<if test="value5 != null">#{value5},</if>
|
||||
<if test="value6 != null">#{value6},</if>
|
||||
<if test="value7 != null">#{value7},</if>
|
||||
<if test="value8 != null">#{value8},</if>
|
||||
<if test="value9 != null">#{value9},</if>
|
||||
<if test="value10 != null">#{value10},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSetupFurTemp" parameterType="SetupFurTemp">
|
||||
update setup_fur_temp
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="value1 != null">value1 = #{value1},</if>
|
||||
<if test="value2 != null">value2 = #{value2},</if>
|
||||
<if test="value3 != null">value3 = #{value3},</if>
|
||||
<if test="value4 != null">value4 = #{value4},</if>
|
||||
<if test="value5 != null">value5 = #{value5},</if>
|
||||
<if test="value6 != null">value6 = #{value6},</if>
|
||||
<if test="value7 != null">value7 = #{value7},</if>
|
||||
<if test="value8 != null">value8 = #{value8},</if>
|
||||
<if test="value9 != null">value9 = #{value9},</if>
|
||||
<if test="value10 != null">value10 = #{value10},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
where steel_grade = #{steelGrade}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSetupFurTempBySteelGrade" parameterType="String">
|
||||
delete from setup_fur_temp where steel_grade = #{steelGrade}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSetupFurTempBySteelGrades" parameterType="String">
|
||||
delete from setup_fur_temp where steel_grade in
|
||||
<foreach item="steelGrade" collection="array" open="(" separator="," close=")">
|
||||
#{steelGrade}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -61,4 +61,13 @@
|
||||
<select id="getLatestRecord" resultType="com.fizz.business.domain.Segment">
|
||||
SELECT * FROM cpg_segment where id=(SELECT max(id) FROM cpg_segment)
|
||||
</select>
|
||||
|
||||
<select id="queryParamByEnCoilId" resultType="com.fizz.business.vo.SegmentParamVO">
|
||||
SELECT seg_no AS segNo,
|
||||
JSON_UNQUOTE(JSON_EXTRACT(total_values_json, CONCAT('$.', #{paramField}, '_avg'))) AS value
|
||||
FROM cpl_segment_total
|
||||
WHERE en_coil_id = #{enCoilID}
|
||||
ORDER BY seg_no
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user