feat: 예상 수입 월별 저장 + 계좌 순서변경 API
CI / build (push) Failing after 12m2s

- 예상 수입: budget_income(연·월별) 로 변경, GET/PUT 에 year·month
- 계좌: wallet.sort_order + reorder 엔드포인트, 생성 시 맨 뒤 배치

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-01 22:54:23 +09:00
parent cac9919cc5
commit f5e9b78a14
11 changed files with 93 additions and 24 deletions
@@ -4,12 +4,13 @@
<mapper namespace="com.sb.web.account.mapper.AccountSettingMapper">
<select id="findExpectedIncome" resultType="java.lang.Long">
SELECT expected_income FROM account_setting WHERE member_id = #{memberId}
SELECT expected_income FROM budget_income
WHERE member_id = #{memberId} AND `year` = #{year} AND `month` = #{month}
</select>
<update id="upsertExpectedIncome">
INSERT INTO account_setting (member_id, expected_income, updated_at)
VALUES (#{memberId}, #{expectedIncome}, NOW())
INSERT INTO budget_income (member_id, `year`, `month`, expected_income, updated_at)
VALUES (#{memberId}, #{year}, #{month}, #{expectedIncome}, NOW())
ON DUPLICATE KEY UPDATE expected_income = #{expectedIncome}, updated_at = NOW()
</update>