f5e9b78a14
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>
18 lines
755 B
XML
18 lines
755 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"https://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.sb.web.account.mapper.AccountSettingMapper">
|
|
|
|
<select id="findExpectedIncome" resultType="java.lang.Long">
|
|
SELECT expected_income FROM budget_income
|
|
WHERE member_id = #{memberId} AND `year` = #{year} AND `month` = #{month}
|
|
</select>
|
|
|
|
<update id="upsertExpectedIncome">
|
|
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>
|
|
|
|
</mapper>
|