优化更新功能 #294

Merged
qtz merged 3 commits from qtz3 into dev 2023-12-09 07:18:14 +00:00
2 changed files with 13 additions and 0 deletions
Showing only changes of commit 23f4c31338 - Show all commits
@@ -32,4 +32,6 @@ public interface ColumnValueMapper {
*/ */
void batchUpdate(@Param("list") List<ColumnValue> list); void batchUpdate(@Param("list") List<ColumnValue> list);
int updateColumnValue(ColumnValue columnValue);
} }
@@ -29,6 +29,17 @@
where id=#{item.id}; where id=#{item.id};
</foreach> </foreach>
</update> </update>
<update id="updateColumnValue" parameterType="ColumnValue">
update column_value
<set>
<if test="value != null and value != ''">
`VALUE` = #{value},
</if>
</set>
where id=#{id}
</update>
<select id="listByCaseId" resultMap="BaseResultMap"> <select id="listByCaseId" resultMap="BaseResultMap">
select * from column_value where case_id=#{caseId} select * from column_value where case_id=#{caseId}
</select> </select>