hejianhao
2026-08-18 50c40264084f032c5d28b07e247ed4d7f84c55df
tcm-training-admin-backend/src/main/resources/mapper/ClinicQueryMapper.xml
@@ -121,23 +121,16 @@
    </select>
    <select id="selectClinicDetail" resultType="com.tcm.training.admin.member.row.ClinicDetailRow">
        SELECT
            c.id,
            c.name,
            c.contact_phone AS contactPhone,
            c.address,
            c.business_license_url AS businessLicenseUrl,
            COUNT(u.id) AS userCount
        SELECT c.id, c.name, c.contact_phone AS contactPhone, c.address,
               c.business_license_url AS businessLicenseUrl,
               c.bank_name AS bankName, c.account_holder AS accountHolder,
               c.account_number AS accountNumber, c.branch_name AS branchName,
               COUNT(u.id) AS userCount
        FROM tcm_clinic c
        LEFT JOIN tcm_app_user u ON u.clinic_id = c.id AND u.deleted = 0
        WHERE c.deleted = 0
          AND c.id = #{id}
        GROUP BY
            c.id,
            c.name,
            c.contact_phone,
            c.address,
            c.business_license_url
        WHERE c.deleted = 0 AND c.id = #{id}
        GROUP BY c.id, c.name, c.contact_phone, c.address, c.business_license_url,
                 c.bank_name, c.account_holder, c.account_number, c.branch_name
    </select>
    <select id="selectClinicUserPage" resultType="com.tcm.training.admin.member.row.ClinicBoundUserRow">