insert into daily_expense ( daily_record_seq, input_type, is_credit, income_mark_code, category_self, source_purpose , quantity, unit_code, price, estimated_value , is_deleted , ) values ( #{dailyRecordSeq} , #{inputType}, #{credit}, #{incomeMarkCode}, #{categorySelf}, #{sourcePurpose} , #{quantity}, #{unitCode}, #{price}, #{estimatedValue} , false , ) update daily_expense set , is_credit = #{credit} , income_mark_code = #{incomeMarkCode} , category_self = #{categorySelf} , source_purpose = #{sourcePurpose} , quantity = #{quantity} , unit_code = #{unitCode} , price = #{price} , estimated_value = #{estimatedValue} where is_deleted = false and daily_record_seq = #{dailyRecordSeq} and id = #{id} update daily_expense set where is_deleted = false and daily_record_seq = #{dailyRecordSeq} and id = #{id}