java110
2023-07-24 ba5fa9f38df532dcde8d91d3ec0e82794c3a4e01
优化代码
1个文件已修改
4 ■■■■ 已修改文件
java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
java110-db/src/main/resources/mapper/user/UserV1ServiceDaoImplMapper.xml
@@ -185,10 +185,10 @@
        bId,t.email,t.age,t.create_time
        from u_user t
        inner join s_store_user su on t.user_id = su.user_id and su.status_cd = '0'
        LEFT JOIN u_org_staff_rel osr on su.user_id = osr.staff_id and osr.status_cd = '0'
        LEFT JOIN u_org_staff_rel osr on su.user_id = osr.staff_id and osr.status_cd = '0' and osr.org_id = #{orgId}
        where t.level_cd = '01'
        and su.store_id = #{storeId}
        and (osr.org_id != #{orgId} or osr.org_id is null)
        and  osr.org_id is null
        <if test="staffName !=null and staffName != ''">
            and t.name like concat('%', #{staffName},'%')
        </if>