[FO] 지출 CRUD, 수지출의 부호 추가 및 유효성체크

This commit is contained in:
김현주
2025-06-12 18:26:36 +09:00
parent 595c8a5e72
commit 31684352e1
24 changed files with 1388 additions and 28 deletions

View File

@@ -29,13 +29,13 @@
<insert id="createDailyIncome" useGeneratedKeys="true" keyProperty="id">
insert into daily_income (
daily_record_seq, input_type, is_credit, crop_code, category_code, category_self, source_purpose
daily_record_seq, input_type, is_credit, expense_mark_code, crop_code, category_code, category_self, source_purpose
, quantity, unit_code, price, estimated_value
, is_deleted
, <include refid="common.fields.CreateUpdateBaseColumns"/>
) values (
#{dailyRecordSeq}
, #{inputType}, #{credit}, #{cropCode}, #{categoryCode}, #{categorySelf}, #{sourcePurpose}
, #{inputType}, #{credit}, #{expenseMarkCode}, #{cropCode}, #{categoryCode}, #{categorySelf}, #{sourcePurpose}
, #{quantity}, #{unitCode}, #{price}, #{estimatedValue}
, false
, <include refid="common.fields.CreateUpdateBaseValues"/>
@@ -45,6 +45,7 @@
<update id="updateDailyIncome">
update daily_income set <include refid="common.fields.UpdateBaseSet"/>
, is_credit = #{credit}
, expense_mark_code = #{expenseMarkCode}
, crop_code = #{cropCode}
, category_code = #{categoryCode}
, category_self = #{categorySelf}