feat: 기본(디폴트) 분류 — 관리자 설정 + 사용자 불러오기
- default_category 테이블(전체 공용) + 도메인/매퍼/서비스 - 관리자 API /api/admin/default-categories (CRUD·reorder, ADMIN 보호) - 사용자 /account/categories/import: 기존 내역 기반 → 기본분류 복사로 변경 (대/소분류 계층 유지, 같은 이름은 건너뜀; CategoryMapper.findByMemberTypeName 추가) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
5f21cc4474
commit
63b3ffea24
@@ -31,6 +31,13 @@
|
||||
WHERE member_id = #{memberId} AND parent_id = #{parentId}
|
||||
</select>
|
||||
|
||||
<select id="findByMemberTypeName" resultMap="categoryResultMap">
|
||||
SELECT id, member_id, type, name, parent_id, sort_order, created_at
|
||||
FROM account_category
|
||||
WHERE member_id = #{memberId} AND type = #{type} AND name = #{name}
|
||||
LIMIT 1
|
||||
</select>
|
||||
|
||||
<select id="countByName" resultType="int">
|
||||
SELECT COUNT(*) FROM account_category
|
||||
WHERE member_id = #{memberId} AND type = #{type} AND name = #{name}
|
||||
|
||||
Reference in New Issue
Block a user