refactor(service):重构PdiSetup服务接口与实现- 继承IService接口,使用MyBatis-Plus增强功能

- 统一方法命名规范,如selectPdiSetupByID改为selectPdiSetupByid
- 修改返回类型为Boolean,提升类型安全性
- 更新Mapper接口继承BaseMapper,简化数据访问层实现
- 优化Controller层,移除权限注解,统一参数处理方式
- 调整实体类PdiSetups,添加MyBatis-Plus注解支持
- 更新其他相关服务接口方法签名及参数命名规范
-修正SetupTension相关接口与实现,统一参数命名风格
This commit is contained in:
2025-09-26 11:03:35 +08:00
parent 24e724743e
commit 9b4d7fdbad
36 changed files with 979 additions and 1150 deletions

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.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>