1、如果提交银企按钮触发,更新“提交时间”
This commit is contained in:
parent
5577791dcd
commit
056f4934d2
|
@ -0,0 +1,42 @@
|
|||
package shkd.fi.cas.report.form;
|
||||
|
||||
import kd.bos.dataentity.entity.DynamicObject;
|
||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
||||
import kd.bos.logging.Log;
|
||||
import kd.bos.logging.LogFactory;
|
||||
import kd.bos.orm.query.QFilter;
|
||||
import kd.bos.servicehelper.AttachmentServiceHelper;
|
||||
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||
import kd.bos.servicehelper.botp.BFTrackerServiceHelper;
|
||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||
import shkd.plugin.SSOLoginPugin;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 单据操作插件
|
||||
*/
|
||||
public class UpdateNewdatePlugin extends AbstractOperationServicePlugIn {
|
||||
|
||||
private static Log logger = LogFactory.getLog(UpdateNewdatePlugin.class);
|
||||
|
||||
@Override
|
||||
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
||||
DynamicObject[] dataEntities = e.getDataEntities();
|
||||
if (dataEntities == null) return;
|
||||
for (int i = 0; i < dataEntities.length; i++) {
|
||||
// 如果提交银企按钮触发,更新“提交时间”
|
||||
logger.info("开始调用更新付款处理单功能");
|
||||
Long pkValueA = (Long)dataEntities[i].getPkValue();
|
||||
QFilter ids = new QFilter("id", "=", pkValueA);
|
||||
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle("cas_paybill", ids.toArray());
|
||||
|
||||
dynamicObject.set("shkd_uploadtime",new Date());
|
||||
SaveServiceHelper.save(new DynamicObject[]{dynamicObject});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue