优化更新功能
This commit is contained in:
@@ -29,6 +29,17 @@
|
||||
where id=#{item.id};
|
||||
</foreach>
|
||||
</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 * from column_value where case_id=#{caseId}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user