自己学习BCDL 1

--在1001 用户下面添加 菜单的SQL
insert into "CMBBCD_AH"."CMCS3_MENU"("MENUID","SUPERIORMENUID","MENULABEL","URL","DESCRIPTION","POSITION","MENUTYPE") values (20219,678,'额度设置','/business/payment/odfRecordAction.shtml?action=loadOdfRecord','',13,3);
insert into "CMBBCD_AH"."CMCS3_MENU"("MENUID","SUPERIORMENUID","MENULABEL","URL","DESCRIPTION","POSITION","MENUTYPE") values (20220,678,'额度发送查询','/business/payment/odfRecordAction.shtml?action=queryOdfSendInfo','',14,3);
commit;

--当前方的企业或者银行账单校验不通过的时候
企业账单校验Action:
AuditCorpBookAction.java
对应的方法: public ActionForward jihe(
LoadInforAuditCorpBook.jsp 企业账单页面
viewBankBookjihe.jsp 校验是否成功界面

银行账单校验Action:
QueryAuditBankBookAction.java
对应的方法: public ActionForward jihe(
QueryAuditBankBookInfo.jsp
viewBankBookjihe.jsp

--如果期末余额不平,有如下思路:
//计算期初的SQL:
from AuditCorpBalance a where a.bankAccount.accountID = :subjectID order by a.balanceDate desc
//取借贷金额总和:
"select sum(a.debitAmount),sum(a.creditAmount) from AuditCorpBook a " +
" where a.bankAccount.accountID = :subjectId " +
" and a.voucherDate >= :beginDate and a.voucherDate < :endDate";

1. 有可能是期初计算有问题;
2. 有可能是前方的M8传过来的数据有遗漏

--可以根据这个来查找对账初始化的数据
select u.username from CMCS3_USER_ACCOUNT ua ,CMCS3_BANK_ACCOUNT ba ,cmcs3_user u
where ba.accountid = ua.accountid and ua.userid = u.userid
and ua.powertype = 2
and ua.isaudit = 1
group by u.username

--解决新疆行号要出纳一个一个输入的问题,用到表关联
select * from cmcs3_transfer_bill_list;
update cmcs3_transfer_bill_list l set l.banknum =
(select c.bankcode from cmcs3_bank_code c where c.bankname = l.payeebranch)
where l.transferbillid = 5380;
commit;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值