zoukankan      html  css  js  c++  java
  • bhrs报表年结步骤

    --前期准备数据
    三个表数据: s_subjtotal_year, subject_item, branch ,decrsubjtotal
    ---informix 查看数据库剩余空间
    select d.name dbspace,
    sum(c.chksize*d.pagesize/1020/1024) allocated_MB,
    sum(c.nfree*d.pagesize/1020/1024) free_MB,
    round(((sum(c.chksize)-sum(c.nfree))/sum(c.chksize))*100)||"%" pcused
    from sysmaster:sysdbspaces d,sysmaster:syschunks c
    where d.dbsnum=c.dbsnum
    group by d.name
    order by 2;

    select distinct datekey from decrsubjtotal where datekey>='2013-01-01';
    ------------年终结算跑数据流程
    --bvdb.jar 包 git.bankview.bl.pump.bhrs.cbsYearGeneralLedger;
    delete from taskschedule where datekey='20131231' and taskid='100';
    insert into taskschedule (datekey,taskid,execurl,retrymax,statuscode,exectime,termtime,retrytimes,errmsg)
    values ('20131231','100','class://git.bankview.bl.pump.bhrs.cbsYearGeneralLedger;params=C','0','5','','','0','');
    delete from taskdependence where datekey='20131231' and taskid='101' and deptaskid='100';
    insert into taskdependence (datekey,taskid,deptaskid) values
    ('20131231','101','100');

    --修改 bhrs.sh
    select * from taskdependence;
    update taskschedule set statuscode='1' where datekey="${DATE}";

    update taskschedule set statuscode='1' where datekey="${DATE}" and taskid!='100';

    --年终的操作步骤
    核心提供的年终结算总账表导入s_subjtotal_year表里
    然后update taskschedule set statuscode='1' where datekey="20131231" and taskid='100';
    启动报表任务服务器等待该任务跑完.
    --1 建表
    create table s_subjtotal_year
    (
    datekey date not null ,
    deptid char(12) not null ,
    curid char(10) not null ,
    subjid char(20) not null ,
    balref smallint,
    debal decimal(16,2),
    crbal decimal(16,2),
    deamt decimal(16,2),
    cramt decimal(16,2),
    decnt integer,
    crcnt integer,
    primary key (datekey,deptid,curid,subjid,balref)
    ); --in dtdbs;
    revoke all on s_subjtotal_year from "public" as "informix";


    create index idx_s_subjtotal_year1 on s_subjtotal_year
    (datekey) using btree in datadbs;--dtixdbs;
    create index idx_s_subjtotal_year2 on s_subjtotal_year
    (datekey,deptid,curid,subjid) using btree in datadbs;-- dtixdbs;
    create index idx_s_subjtotal_year3 on s_subjtotal_year
    (datekey,deptid) using btree in datadbs;--dtixdbs;
    create index idx_s_subjtotal_year4 on s_subjtotal_year
    (datekey,subjid) using btree in datadbs;--dtixdbs;

  • 相关阅读:
    (转)数据库中索引的策略和设计
    (转)冷备份与热备份、双机热备与容错
    (转)Mysql数据库存储引擎
    (转)B-树和B+树的应用:数据搜索和数据库索引
    mock实例方法
    mockito模拟静态方法
    mock测试类的时候,添加@InjectMocks
    已经mock类中引用的其它service类,但是在invoke私有方法的时候,该service类是空值
    inside when() you don't call method on mock but on some other object
    org.mockito.exceptions.misusing.MissingMethodInvocationException: when() requires an argument which has to be 'a method call on a mock'
  • 原文地址:https://www.cnblogs.com/xrhou12326/p/3487583.html
Copyright © 2011-2022 走看看