Pu Zhibing
2025-06-06 b1f2f102034b4433201225b67a9fc78c08e532f0
UserIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/DriverMapper.xml
@@ -90,10 +90,10 @@
        <if test="null != companyId">
            <choose>
                <when test="companyId != 1">
                    and companyId = #{companyId} or franchiseeId = #{companyId}
                    and companyId = #{companyId}
                </when>
                <otherwise>
                    and companyId is null or companyId = 0 or companyId = 1 or franchiseeId is null or franchiseeId = 0
                    and companyId is null or companyId = 0 or companyId = 1
                </otherwise>
            </choose>
@@ -117,10 +117,10 @@
        <if test="null != companyId">
            <choose>
                <when test="companyId != 1">
                    and companyId = #{companyId} or franchiseeId = #{companyId}
                    and companyId = #{companyId}
                </when>
                <otherwise>
                    and companyId is null or companyId = 0 or companyId = 1 or franchiseeId is null or franchiseeId = 0
                    and companyId is null or companyId = 0 or companyId = 1
                </otherwise>
            </choose>