|
@@ -52,14 +52,16 @@ public interface PrescriptionRetryRecordMapper {
|
|
|
/**
|
|
|
* 更新记录
|
|
|
*/
|
|
|
- @Update("UPDATE prescription_retry_record SET " +
|
|
|
- "retry_count = #{retryCount}, " +
|
|
|
- "error_reason = #{errorReason}, " +
|
|
|
- "status = #{status}, " +
|
|
|
- "remark = #{remark} " +
|
|
|
- "WHERE id = #{id}")
|
|
|
+ @Update("<script>UPDATE prescription_retry_record SET " +
|
|
|
+ "<if test='retryCount != null'>retry_count = #{retryCount}, </if>" +
|
|
|
+ "<if test='errorReason != null'>error_reason = #{errorReason}, </if>" +
|
|
|
+ "<if test='status != null'>status = #{status}, </if>" +
|
|
|
+ "<if test='remark != null'>remark = #{remark}, </if>" +
|
|
|
+ "update_time = now() " +
|
|
|
+ "WHERE id = #{id}</script>")
|
|
|
int update(PrescriptionRetryRecord record);
|
|
|
|
|
|
+
|
|
|
/**
|
|
|
* 更新状态
|
|
|
*/
|