fix(ai-agent): list 쿼리가 archived(soft-delete) 행을 기본 제외하도록
Build & Deploy to K8s / build-and-deploy (push) Successful in 4m24s

증상: 에이전트 삭제 후에도 목록에 그대로 표시.
원인: softDelete 가 status='archived' 로만 변경하는데 list 쿼리가
status 필터 미지정 시 archived 도 모두 반환.

수정: status 명시 X 시 status != 'archived' 기본 적용. status 명시 시
그 값으로 정확 매칭.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-30 06:53:22 +09:00
parent 016442973e
commit 1d37b8d2ea
@@ -24,9 +24,14 @@
tools::text AS tools, config::text AS config, status, company_code, created_by, created_at, updated_at
FROM ai_agents
WHERE 1=1
<if test="status != null">
AND status = #{status}
</if>
<choose>
<when test="status != null">
AND status = #{status}
</when>
<otherwise>
AND status != 'archived'
</otherwise>
</choose>
<if test="company_code != null">
AND (company_code = #{company_code} OR company_code IS NULL OR company_code = '*')
</if>