29 lines
1.1 KiB
Java
29 lines
1.1 KiB
Java
package tqq9.lc123.cloud.app.plugin.form.result;
|
|
|
|
import kd.bos.dataentity.entity.DynamicObject;
|
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
//反审核后将是否关闭成功设置为false
|
|
public class UnAuditUpdateCloseStatusOpPlugin extends AbstractOperationServicePlugIn {
|
|
|
|
@Override
|
|
public void onPreparePropertys(PreparePropertysEventArgs e) {
|
|
super.onPreparePropertys(e);
|
|
e.getFieldKeys().add("tqq9_isclose");
|
|
}
|
|
|
|
@Override
|
|
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
|
super.afterExecuteOperationTransaction(e);
|
|
DynamicObject[] dataEntities1 = e.getDataEntities();
|
|
if (null != dataEntities1 && dataEntities1.length > 0) {
|
|
for (DynamicObject dynamicObject : dataEntities1) {
|
|
dynamicObject.set("tqq9_isclose", false);
|
|
}
|
|
SaveServiceHelper.save(dataEntities1);
|
|
}
|
|
}
|
|
}
|