xuhy
3 天以前 4d1f7143f73456c142fd532248a6327021d04de8
ruoyi-system/src/main/resources/mapper/system/TCrmClinicMapper.xml
@@ -61,11 +61,11 @@
            <if test="query.status != null">
                and tcc.status = #{query.status}
            </if>
            <if test="query.userId != null and query.userId == 2">
                and tcc.branch_id = #{query.userId}
            <if test="query.branchId != null and query.userId == 2">
                and tcc.branch_id = #{query.branchId}
            </if>
            <if test="query.userId != null and query.userId == 3">
                and tcc.salesperson_id = #{query.userId}
            <if test="query.salespersonId != null and query.userId == 3">
                and tcc.salesperson_id = #{query.salespersonId}
            </if>
            AND tcc.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>