- 예상 수입: 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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user