提交内容:银行账户刷历史数据(国资委报表需要)

时间:2025-09-024 15:02
提交人:邹江涛
This commit is contained in:
zoujiangtao 2025-09-24 15:03:07 +08:00
parent 14bc3df9c3
commit e5be42af19
1 changed files with 6 additions and 17 deletions

View File

@ -9,6 +9,8 @@ import kd.bos.list.BillList;
import kd.bos.list.plugin.AbstractListPlugin; import kd.bos.list.plugin.AbstractListPlugin;
import kd.bos.logging.Log; import kd.bos.logging.Log;
import kd.bos.logging.LogFactory; import kd.bos.logging.LogFactory;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper; import kd.bos.servicehelper.operation.SaveServiceHelper;
import kd.bos.util.CollectionUtils; import kd.bos.util.CollectionUtils;
@ -34,24 +36,11 @@ public class AccountbankListPlugin extends AbstractListPlugin {
String itemKey = evt.getItemKey(); String itemKey = evt.getItemKey();
if ("shkd_lishiref".equals(itemKey)){ if ("shkd_lishiref".equals(itemKey)){
// 获取勾选的单据ID // 获取勾选的单据ID
BillList billList = (BillList)this.getControl("billlistap"); DynamicObject[] dynamicObjects = BusinessDataServiceHelper.load("am_accountbank",
ListSelectedRowCollection selectedRows = billList.getSelectedRows(); "id,bankaccountnumber,number", new QFilter("number", QCP.not_equals, "").toArray());
List<Long> setIds = new ArrayList<>();
if (CollectionUtils.isNotEmpty(selectedRows)) {
if (selectedRows.size()>1000){
this.getView().showSuccessNotification("选择数据不能超过1000行");
return;
}
for (ListSelectedRow selectedRow : selectedRows) {
setIds.add(toLong(selectedRow.getPrimaryKeyValue()));
}
}else {
this.getView().showSuccessNotification("请选择数据");
return;
}
for (Long setId : setIds) { for (DynamicObject dynamicObj : dynamicObjects) {
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(setId, "bd_accountbanks"); DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(dynamicObj.getPkValue(), "bd_accountbanks");
try { try {
String uniformsocialcreditcode = dynamicObject.getString("openorg.uniformsocialcreditcode");//信用代码 String uniformsocialcreditcode = dynamicObject.getString("openorg.uniformsocialcreditcode");//信用代码
String finorgtype = dynamicObject.getString("finorgtype");//金融机构类别 String finorgtype = dynamicObject.getString("finorgtype");//金融机构类别