parent
681d4578cf
commit
04e8f52b53
|
|
@ -0,0 +1,40 @@
|
||||||
|
package shjh.jhzj7.fi.fi.plugin.operate;
|
||||||
|
|
||||||
|
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.QCP;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
|
import kd.sdk.plugin.Plugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 认领处理单审核操作
|
||||||
|
* shjh_cas_claimbill_ext
|
||||||
|
* audit
|
||||||
|
*/
|
||||||
|
public class ClaimBillAuditOperation extends AbstractOperationServicePlugIn implements Plugin {
|
||||||
|
|
||||||
|
private static final Log log = LogFactory.getLog(ClaimBillAuditOperation.class);
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
||||||
|
super.afterExecuteOperationTransaction(e);
|
||||||
|
//认领处理单审核时,根据认领通知单编号将业务大小类赋值到对应认领中心单
|
||||||
|
DynamicObject[] dataEntities = e.getDataEntities();
|
||||||
|
for (DynamicObject bill : dataEntities) {
|
||||||
|
bill = BusinessDataServiceHelper.loadSingle(bill.getPkValue(), "cas_claimbill");
|
||||||
|
String claimno = bill.getString("claimno");//认领通知单编号
|
||||||
|
QFilter qFilter = new QFilter("billno", QCP.equals, claimno);
|
||||||
|
DynamicObject claimcenterbill = BusinessDataServiceHelper.loadSingle("cas_claimcenterbill",qFilter.toArray());
|
||||||
|
if (null != claimcenterbill) {
|
||||||
|
claimcenterbill.set("shjh_bizbig", bill.getDynamicObject("shjh_bizbig"));
|
||||||
|
claimcenterbill.set("shjh_bizsmall", bill.getDynamicObject("shjh_bizsmall"));
|
||||||
|
SaveServiceHelper.save(new DynamicObject[]{claimcenterbill});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue