refactor(service):重构PdiSetup服务接口与实现- 继承IService接口,使用MyBatis-Plus增强功能
- 统一方法命名规范,如selectPdiSetupByID改为selectPdiSetupByid - 修改返回类型为Boolean,提升类型安全性 - 更新Mapper接口继承BaseMapper,简化数据访问层实现 - 优化Controller层,移除权限注解,统一参数处理方式 - 调整实体类PdiSetups,添加MyBatis-Plus注解支持 - 更新其他相关服务接口方法签名及参数命名规范 -修正SetupTension相关接口与实现,统一参数命名风格
This commit is contained in:
@@ -70,9 +70,9 @@
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectPdiSetupByID" parameterType="Long" resultMap="PdiSetupResult">
|
||||
<select id="selectPdiSetupById" parameterType="Long" resultMap="PdiSetupResult">
|
||||
<include refid="selectPdiSetupVo"/>
|
||||
where ID = #{ID}
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertPdiSetup" parameterType="PdiSetup" useGeneratedKeys="true" keyProperty="ID">
|
||||
@@ -168,14 +168,14 @@
|
||||
where ID = #{ID}
|
||||
</update>
|
||||
|
||||
<delete id="deletePdiSetupByID" parameterType="Long">
|
||||
delete from pdi_setup where ID = #{ID}
|
||||
<delete id="deletePdiSetupById" parameterType="Long">
|
||||
delete from pdi_setup where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deletePdiSetupByIDs" parameterType="String">
|
||||
<delete id="deletePdiSetupByIds" parameterType="String">
|
||||
delete from pdi_setup where ID in
|
||||
<foreach item="ID" collection="array" open="(" separator="," close=")">
|
||||
#{ID}
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
@@ -1,142 +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="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>
|
||||
@@ -1,121 +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="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>
|
||||
@@ -1,87 +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>
|
||||
<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>
|
||||
@@ -1,121 +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>
|
||||
<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>
|
||||
@@ -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.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>
|
||||
Reference in New Issue
Block a user