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,181 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.fizz.business.mapper.PdiSetupMapper">
<resultMap type="PdiSetup" id="PdiSetupResult">
<result property="ID" column="ID" />
<result property="COILID" column="COILID" />
<result property="PLANID" column="PLANID" />
<result property="porTension" column="POR_TENSION" />
<result property="celTension" column="CEL_TENSION" />
<result property="cleanTension" column="CLEAN_TENSION" />
<result property="furTension" column="FUR_TENSION" />
<result property="towerTension" column="TOWER_TENSION" />
<result property="tmNoneTension" column="TM_NONE_TENSION" />
<result property="tmEntryTension" column="TM_ENTRY_TENSION" />
<result property="tmExitTension" column="TM_EXIT_TENSION" />
<result property="tmRollforce" column="TM_ROLLFORCE" />
<result property="tmBendforce" column="TM_BENDFORCE" />
<result property="tmAcrMesh" column="TM_ACR_MESH" />
<result property="tmBrMesh" column="TM_BR_MESH" />
<result property="tlNoneTension" column="TL_NONE_TENSION" />
<result property="tlExitTension" column="TL_EXIT_TENSION" />
<result property="tlElong" column="TL_ELONG" />
<result property="tlLvlMesh1" column="TL_LVL_MESH1" />
<result property="tlLvlMesh2" column="TL_LVL_MESH2" />
<result property="tlAcbMesh" column="TL_ACB_MESH" />
<result property="coatTension" column="COAT_TENSION" />
<result property="cxlTension" column="CXL_TENSION" />
<result property="trTension" column="TR_TENSION" />
<result property="createTime" column="CREATE_TIME" />
<result property="updateTime" column="UPDATE_TIME" />
<result property="TYPE" column="TYPE" />
</resultMap>
<sql id="selectPdiSetupVo">
select ID, COILID, PLANID, POR_TENSION, CEL_TENSION, CLEAN_TENSION, FUR_TENSION, TOWER_TENSION, TM_NONE_TENSION, TM_ENTRY_TENSION, TM_EXIT_TENSION, TM_ROLLFORCE, TM_BENDFORCE, TM_ACR_MESH, TM_BR_MESH, TL_NONE_TENSION, TL_EXIT_TENSION, TL_ELONG, TL_LVL_MESH1, TL_LVL_MESH2, TL_ACB_MESH, COAT_TENSION, CXL_TENSION, TR_TENSION, CREATE_TIME, UPDATE_TIME, TYPE from pdi_setup
</sql>
<select id="selectPdiSetupList" parameterType="PdiSetup" resultMap="PdiSetupResult">
<include refid="selectPdiSetupVo"/>
<where>
<if test="COILID != null and COILID != ''"> and COILID = #{COILID}</if>
<if test="PLANID != null and PLANID != ''"> and PLANID = #{PLANID}</if>
<if test="porTension != null "> and POR_TENSION = #{porTension}</if>
<if test="celTension != null "> and CEL_TENSION = #{celTension}</if>
<if test="cleanTension != null "> and CLEAN_TENSION = #{cleanTension}</if>
<if test="furTension != null "> and FUR_TENSION = #{furTension}</if>
<if test="towerTension != null "> and TOWER_TENSION = #{towerTension}</if>
<if test="tmNoneTension != null "> and TM_NONE_TENSION = #{tmNoneTension}</if>
<if test="tmEntryTension != null "> and TM_ENTRY_TENSION = #{tmEntryTension}</if>
<if test="tmExitTension != null "> and TM_EXIT_TENSION = #{tmExitTension}</if>
<if test="tmRollforce != null "> and TM_ROLLFORCE = #{tmRollforce}</if>
<if test="tmBendforce != null "> and TM_BENDFORCE = #{tmBendforce}</if>
<if test="tmAcrMesh != null "> and TM_ACR_MESH = #{tmAcrMesh}</if>
<if test="tmBrMesh != null "> and TM_BR_MESH = #{tmBrMesh}</if>
<if test="tlNoneTension != null "> and TL_NONE_TENSION = #{tlNoneTension}</if>
<if test="tlExitTension != null "> and TL_EXIT_TENSION = #{tlExitTension}</if>
<if test="tlElong != null "> and TL_ELONG = #{tlElong}</if>
<if test="tlLvlMesh1 != null "> and TL_LVL_MESH1 = #{tlLvlMesh1}</if>
<if test="tlLvlMesh2 != null "> and TL_LVL_MESH2 = #{tlLvlMesh2}</if>
<if test="tlAcbMesh != null "> and TL_ACB_MESH = #{tlAcbMesh}</if>
<if test="coatTension != null "> and COAT_TENSION = #{coatTension}</if>
<if test="cxlTension != null "> and CXL_TENSION = #{cxlTension}</if>
<if test="trTension != null "> and TR_TENSION = #{trTension}</if>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
<if test="TYPE != null "> and TYPE = #{TYPE}</if>
</where>
</select>
<select id="selectPdiSetupByID" parameterType="Long" resultMap="PdiSetupResult">
<include refid="selectPdiSetupVo"/>
where ID = #{ID}
</select>
<insert id="insertPdiSetup" parameterType="PdiSetup" useGeneratedKeys="true" keyProperty="ID">
insert into pdi_setup
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="COILID != null">COILID,</if>
<if test="PLANID != null">PLANID,</if>
<if test="porTension != null">POR_TENSION,</if>
<if test="celTension != null">CEL_TENSION,</if>
<if test="cleanTension != null">CLEAN_TENSION,</if>
<if test="furTension != null">FUR_TENSION,</if>
<if test="towerTension != null">TOWER_TENSION,</if>
<if test="tmNoneTension != null">TM_NONE_TENSION,</if>
<if test="tmEntryTension != null">TM_ENTRY_TENSION,</if>
<if test="tmExitTension != null">TM_EXIT_TENSION,</if>
<if test="tmRollforce != null">TM_ROLLFORCE,</if>
<if test="tmBendforce != null">TM_BENDFORCE,</if>
<if test="tmAcrMesh != null">TM_ACR_MESH,</if>
<if test="tmBrMesh != null">TM_BR_MESH,</if>
<if test="tlNoneTension != null">TL_NONE_TENSION,</if>
<if test="tlExitTension != null">TL_EXIT_TENSION,</if>
<if test="tlElong != null">TL_ELONG,</if>
<if test="tlLvlMesh1 != null">TL_LVL_MESH1,</if>
<if test="tlLvlMesh2 != null">TL_LVL_MESH2,</if>
<if test="tlAcbMesh != null">TL_ACB_MESH,</if>
<if test="coatTension != null">COAT_TENSION,</if>
<if test="cxlTension != null">CXL_TENSION,</if>
<if test="trTension != null">TR_TENSION,</if>
<if test="createTime != null">CREATE_TIME,</if>
<if test="updateTime != null">UPDATE_TIME,</if>
<if test="TYPE != null">TYPE,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="COILID != null">#{COILID},</if>
<if test="PLANID != null">#{PLANID},</if>
<if test="porTension != null">#{porTension},</if>
<if test="celTension != null">#{celTension},</if>
<if test="cleanTension != null">#{cleanTension},</if>
<if test="furTension != null">#{furTension},</if>
<if test="towerTension != null">#{towerTension},</if>
<if test="tmNoneTension != null">#{tmNoneTension},</if>
<if test="tmEntryTension != null">#{tmEntryTension},</if>
<if test="tmExitTension != null">#{tmExitTension},</if>
<if test="tmRollforce != null">#{tmRollforce},</if>
<if test="tmBendforce != null">#{tmBendforce},</if>
<if test="tmAcrMesh != null">#{tmAcrMesh},</if>
<if test="tmBrMesh != null">#{tmBrMesh},</if>
<if test="tlNoneTension != null">#{tlNoneTension},</if>
<if test="tlExitTension != null">#{tlExitTension},</if>
<if test="tlElong != null">#{tlElong},</if>
<if test="tlLvlMesh1 != null">#{tlLvlMesh1},</if>
<if test="tlLvlMesh2 != null">#{tlLvlMesh2},</if>
<if test="tlAcbMesh != null">#{tlAcbMesh},</if>
<if test="coatTension != null">#{coatTension},</if>
<if test="cxlTension != null">#{cxlTension},</if>
<if test="trTension != null">#{trTension},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="TYPE != null">#{TYPE},</if>
</trim>
</insert>
<update id="updatePdiSetup" parameterType="PdiSetup">
update pdi_setup
<trim prefix="SET" suffixOverrides=",">
<if test="COILID != null">COILID = #{COILID},</if>
<if test="PLANID != null">PLANID = #{PLANID},</if>
<if test="porTension != null">POR_TENSION = #{porTension},</if>
<if test="celTension != null">CEL_TENSION = #{celTension},</if>
<if test="cleanTension != null">CLEAN_TENSION = #{cleanTension},</if>
<if test="furTension != null">FUR_TENSION = #{furTension},</if>
<if test="towerTension != null">TOWER_TENSION = #{towerTension},</if>
<if test="tmNoneTension != null">TM_NONE_TENSION = #{tmNoneTension},</if>
<if test="tmEntryTension != null">TM_ENTRY_TENSION = #{tmEntryTension},</if>
<if test="tmExitTension != null">TM_EXIT_TENSION = #{tmExitTension},</if>
<if test="tmRollforce != null">TM_ROLLFORCE = #{tmRollforce},</if>
<if test="tmBendforce != null">TM_BENDFORCE = #{tmBendforce},</if>
<if test="tmAcrMesh != null">TM_ACR_MESH = #{tmAcrMesh},</if>
<if test="tmBrMesh != null">TM_BR_MESH = #{tmBrMesh},</if>
<if test="tlNoneTension != null">TL_NONE_TENSION = #{tlNoneTension},</if>
<if test="tlExitTension != null">TL_EXIT_TENSION = #{tlExitTension},</if>
<if test="tlElong != null">TL_ELONG = #{tlElong},</if>
<if test="tlLvlMesh1 != null">TL_LVL_MESH1 = #{tlLvlMesh1},</if>
<if test="tlLvlMesh2 != null">TL_LVL_MESH2 = #{tlLvlMesh2},</if>
<if test="tlAcbMesh != null">TL_ACB_MESH = #{tlAcbMesh},</if>
<if test="coatTension != null">COAT_TENSION = #{coatTension},</if>
<if test="cxlTension != null">CXL_TENSION = #{cxlTension},</if>
<if test="trTension != null">TR_TENSION = #{trTension},</if>
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
<if test="TYPE != null">TYPE = #{TYPE},</if>
</trim>
where ID = #{ID}
</update>
<delete id="deletePdiSetupByID" parameterType="Long">
delete from pdi_setup where ID = #{ID}
</delete>
<delete id="deletePdiSetupByIDs" parameterType="String">
delete from pdi_setup where ID in
<foreach item="ID" collection="array" open="(" separator="," close=")">
#{ID}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,142 @@
<?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="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>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
</where>
</select>
<select id="selectSetupTensionByTHICK" parameterType="Long" resultMap="SetupTensionResult">
<include refid="selectSetupTensionVo"/>
where THICK = #{THICK}
</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="yieldStren != null">YIELD_STREN = #{yieldStren},</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="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}
</update>
<delete id="deleteSetupTensionByTHICK" parameterType="Long">
delete from setup_tension where THICK = #{THICK}
</delete>
<delete id="deleteSetupTensionByTHICKs" parameterType="String">
delete from setup_tension where THICK in
<foreach item="THICK" collection="array" open="(" separator="," close=")">
#{THICK}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,121 @@
<?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="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="selectSetupTlBySteelGrade" parameterType="String" resultMap="SetupTlResult">
<include refid="selectSetupTlVo"/>
where STEEL_GRADE = #{steelGrade}
</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="yieldStren != null">YIELD_STREN = #{yieldStren},</if>
<if test="THICK != null">THICK = #{THICK},</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="deleteSetupTlBySteelGrade" parameterType="String">
delete from setup_tl where STEEL_GRADE = #{steelGrade}
</delete>
<delete id="deleteSetupTlBySteelGrades" parameterType="String">
delete from setup_tl where STEEL_GRADE in
<foreach item="steelGrade" collection="array" open="(" separator="," close=")">
#{steelGrade}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,87 @@
<?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>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
</where>
</select>
<select id="selectSetupTmBendforceByWIDTH" parameterType="Long" resultMap="SetupTmBendforceResult">
<include refid="selectSetupTmBendforceVo"/>
where WIDTH = #{WIDTH}
</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="rollForce != null">ROLL_FORCE = #{rollForce},</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="updateTime != null">UPDATE_TIME = #{updateTime},</if>
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
</trim>
where WIDTH = #{WIDTH}
</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 WIDTH in
<foreach item="WIDTH" collection="array" open="(" separator="," close=")">
#{WIDTH}
</foreach>
</delete>
</mapper>

View File

@@ -0,0 +1,121 @@
<?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>
<if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
<if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
</where>
</select>
<select id="selectSetupTmMeshBySteelGrade" parameterType="String" resultMap="SetupTmMeshResult">
<include refid="selectSetupTmMeshVo"/>
where STEEL_GRADE = #{steelGrade}
</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="yieldStren != null">YIELD_STREN = #{yieldStren},</if>
<if test="THICK != null">THICK = #{THICK},</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="deleteSetupTmMeshBySteelGrade" parameterType="String">
delete from setup_tm_mesh where STEEL_GRADE = #{steelGrade}
</delete>
<delete id="deleteSetupTmMeshBySteelGrades" parameterType="String">
delete from setup_tm_mesh where STEEL_GRADE in
<foreach item="steelGrade" collection="array" open="(" separator="," close=")">
#{steelGrade}
</foreach>
</delete>
</mapper>

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>