中扬CRM客户关系管理系统
#
LSH
2023-09-11 5bdba4f712b203db5acdd981922a5bc1706b29ff
src/main/resources/mapper/OrderMapper.xml
@@ -28,6 +28,7 @@
        <result column="update_time" property="updateTime" />
        <result column="memo" property="memo" />
        <result column="transaction_rate" property="transactionRate" />
        <result column="order_product_type_id" property="orderProductTypeId" />
    </resultMap>
@@ -57,7 +58,7 @@
        WHERE 1=1
        <choose>
            <when test="deptId != null and deptId != ''">
                AND (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                AND (   (CHARINDEX(','+#{deptId}+',', ','+sd.path+',') > 0 OR sd.id = #{deptId})
                or
                (
                    user_id = #{userId}
@@ -70,7 +71,7 @@
                        where 1=1
                        and user_id = #{userId}
                    )
                )
                ))
            </when>
            <otherwise>
                and