ludc
2023-09-13 4a2835ddadb796c69f180097b95f971dbab4687d
Source/UBCS/ubcs-service/ubcs-system/src/main/resources/mapper/StrategyMapper.xml
@@ -30,9 +30,9 @@
                where instr(pss.COMBINATION_IDS,psc.ID) > 0) COMBINATIONNAMES
        from PL_SYS_PWDSTRATEGY pss
        <where>
        <if test="tenantId != null and tenantId != ''">
            and TENANT_ID = #{tenantId}
        </if>
            <if test="tenantId != null and tenantId != ''">
                TENANT_ID = #{tenantId}
            </if>
        </where>
    </select>
@@ -92,7 +92,6 @@
        </where>
    </select>
    <select id="queryByNameAndTenantId" resultMap="StrategyMap">
        SELECT PSS.*,(SELECT listagg(psc.NAME,',') within GROUP(ORDER BY psc.NAME asc)
                      from PL_SYS_COMBINATION psc
@@ -117,6 +116,9 @@
                      WHERE instr(pss.COMBINATION_IDS, psc.ID) > 0) COMBINATIONNAMES
        FROM PL_SYS_PWDSTRATEGY PSS
        WHERE is_default = 1
        <if test="tenantId != null and tenantId != ''">
            and TENANT_ID = #{tenantId}
        </if>
    </select>
</mapper>