refactor(controller):优化删除接口参数传递方式

- 将多个删除接口的@RequestParam参数改为@RequestBody接收- 新增多个Form类用于封装删除参数
- 统一删除接口路径,增强接口语义化
- 优化Mapper中删除条件的参数引用- 移除实体类中冗余的字段更新逻辑
- 实体类实现Serializable接口并添加序列化ID
- 简化Controller中注解导入语句
This commit is contained in:
2025-09-26 13:14:24 +08:00
parent e24fc6059e
commit 2528cc6c42
18 changed files with 121 additions and 59 deletions

View File

@@ -64,7 +64,6 @@
<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>
@@ -72,7 +71,7 @@
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where width = #{width}
where width = #{width} and roll_force = #{rollForce}
</update>
<delete id="deleteSetupTmBendforceByWidth" parameterType="Long">