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