青羊经侦大队-数据平台
wl
2022-12-27 ed9f81d8a6c15a1537207fec10b0f64b6c1e0ef1
src/main/resources/mapper/ReportDao.xml
@@ -91,4 +91,15 @@
        ) as reporter
    </select>
    <select id="selectListGroup" resultType="com.example.jz.modle.entity.Report">
        SELECT
            t1.*
        FROM
            report t1
                LEFT JOIN group_user t2 ON t1.id = t2.user_id
        where t1.user_id=#{id}
        GROUP BY
            t2.group_id
    </select>
</mapper>