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

@@ -95,9 +95,6 @@
<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>
@@ -111,7 +108,7 @@
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="createTime != null">create_time = #{createTime},</if>
</trim>
where steel_grade = #{steelGrade}
where steel_grade = #{steelGrade} and thick = #{thick} and yield_stren = #{yieldStren} and elong = #{elong}
</update>
<delete id="deleteSetupTmRollforceBySteelGrade" parameterType="String">