正确使用dto.deptId在LogStatistics查询中

解决LogStatisticsMapper.xml中的部门ID不正确引用问题,确保部门筛选逻辑在查询中正确应用。
This commit is contained in:
aikai 2024-08-16 09:49:00 +08:00
parent 82fab6cf68
commit a6e46f1675

View File

@ -173,7 +173,7 @@
and b.type = #{dto.type}
</if>
<if test="dto.deptId != null">
and b.dept_id = #{deptId}
and b.dept_id = #{dto.deptId}
</if>
</where>