“djh”
2025-12-03 e32ac074e0cdc07b7551155e2e1c24684857f2b7
multi-system/src/main/resources/mapper/system/StandingBookMapper.xml
@@ -6,12 +6,16 @@
    <select id="getStandingBooks" parameterType="com.gkhy.exam.system.domain.StandingBook" resultType="com.gkhy.exam.system.domain.StandingBook">
            select a.*,b.dept_name as deptName from standing_book a
            select a.*,b.dept_name as deptName,c.name as personResponsibleName from standing_book a
                left join sys_dept b on a.dept_id = b.dept_id
                left join sys_user c on a.person_responsible = c.id
        where a.del_flag = 0
        <if test="companyId != null">
            and a.company_id = #{companyId}
        </if>
        <if test="deviceType != null">
            and a.device_type = #{deviceType}
        </if>
        order by a.create_time desc
    </select>