金蝶 EAS BOS 查找實體、表、UI方法

1. 通過客戶端主菜單進(jìn)項定位

SELECT * FROM T_PM_MainMenuItem
where FNAME_l2 = '后臺事務(wù)監(jiān)控' --這里寫上菜單的名稱
--然后找到相應(yīng)的**UI包地址**

2. 更新數(shù)據(jù)記錄

UPDATE T_CAS_RECEIVINGBILL SET FLASTUPDATETIME = to_date('2006-11-29','yyyy-MM-dd')
WHERE  fid = 'LZVUnwEPEADgC2tofwAAAfpE/Vs=' //過濾條件

3. SQL 示例

/*dialect*/
select *
from (
    select 
            rec1.billType,
            rec1.days,
            rec1.FSOURCEFUNCTION,
            rec1.fcompanyid,
            rec1.businessDate,
            rec1.recedatetime,
            rec1.codecreatime,
            rec1.billcreatetime,
            rec1.billbarcode            
    from (
        select 
            rec.billType,
            (case when (recedatetime <= codecreatime) then    
            (to_date(to_char(codecreatime, 'yyyy-mm-dd'), 'yyyy-mm-dd') -                           
            to_date(to_char(billcreatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') + 1)
            when  (recedatetime > codecreatime)  then     
            (to_date(to_char(recedatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') -                           
             to_date(to_char(billcreatetime, 'yyyy-mm-dd'), 'yyyy-mm-dd') + 1)
              else 0 end ) days,
            rec.FSOURCEFUNCTION,
            rec.fcompanyid,
            rec.businessDate,
            rec.recedatetime,
            rec.billcreatetime,
            reccode.codecreatime,
            rec.billbarcode
        from 
        (select  '收款單'  billType, 
                case FSOURCEFUNCTION 
                when N'ST_EAS' then N'世通' 
                when N'JR_EAS' then N'極致' 
                when N'營銷' then N'天諾' 
                else N'其他' end FSOURCEFUNCTION,
                FCreatetime billcreatetime,
                FBizDate businessDate,
                cfbarcode billbarcode,
                fcompanyid,
                flastupdatetime recedatetime  
        from T_CAS_RECEIVINGBILL rec 
        where cfbarcode is not null  and FBillStatus= 14 and CFMediastauts = 1 
        ) rec
        left join (
            select endtime codecreatime,barcode,token tablename
            from  hscz.v_barcode_status@HSYX_DB  
            where ismatch = 1
        ) reccode on rec.billbarcode = reccode.barcode 
    ) rec1
) a
where a.fcompanyid = 'Jv+zhQEOEADgAAMZCgEDBMznrtQ=' 
and to_char(a.businessDate, 'yyyy-MM-dd')>='2016-12-01'
and to_char(a.businessDate, 'yyyy-MM-dd')<='2016-12-31'

4. DBLink 連接外部數(shù)據(jù)庫

select createtime codecreatime,barcode
from  hscz.v_barcode_status@HSYX_DB  //*HSYX_DB 為數(shù)據(jù)庫連接名*
where ismatch = 1 
and token in ('T_CAS_PAYMENTBILL','T_BC_BizAccountBill' )
and to_char(createtime, 'yyyy-MM-dd')>='2016-11-01'
and to_char(createtime, 'yyyy-MM-dd')<='2016-12-22'

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容