feat(business): 添加生产计划参数详情及相关服务接口

- 新增 PdiSetup 实体类,定义字段生产计划参数详情
- 创建 IPdiSetupService 接口,包含增删改查方法- 添加 PdiSetupController 控制器,实现 RESTful API
- 配置 PdiSetupMapper 及其 XML 映射文件- 注释 MessageSubscriptionRunner 类中的 @Component 注解
- 新增多个设备参数相关的 Service 接口(SetupTension、SetupTl 等)
This commit is contained in:
2025-09-25 15:24:41 +08:00
parent c2272ca313
commit ea51d22b47
37 changed files with 3393 additions and 1 deletions

View File

@@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fizz.business.mapper.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>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
</where>
</select>
<select id="selectSetupTmRollforceBySteelGrade" parameterType="String" resultMap="SetupTmRollforceResult">
<include refid="selectSetupTmRollforceVo"/>
where STEEL_GRADE = #{steelGrade}
</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="THICK != null">THICK = #{THICK},</if>
<if test="yieldStren != null">YIELD_STREN = #{yieldStren},</if>
<if test="ELONG != null">ELONG = #{ELONG},</if>
<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="deleteSetupTmRollforceBySteelGrade" parameterType="String">
delete from setup_tm_rollforce where STEEL_GRADE = #{steelGrade}
</delete>
<delete id="deleteSetupTmRollforceBySteelGrades" parameterType="String">
delete from setup_tm_rollforce where STEEL_GRADE in
<foreach item="steelGrade" collection="array" open="(" separator="," close=")">
#{steelGrade}
</foreach>
</delete>
</mapper>