Compare commits
No commits in common. "fb487fb7267c4c19effe78a4e3f57f1800e0c394" and "1feb4408372a5f269f64ed582681c109329bdcc4" have entirely different histories.
fb487fb726
...
1feb440837
|
@ -1,23 +0,0 @@
|
||||||
package zcgj.zcdev.zcdev.pr.plugin.operate;
|
|
||||||
|
|
||||||
import kd.bos.dataentity.entity.DynamicObject;
|
|
||||||
import kd.bos.entity.operate.result.OperationResult;
|
|
||||||
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|
||||||
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
|
||||||
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
|
||||||
|
|
||||||
public class ProjectUpdateOp extends AbstractOperationServicePlugIn {
|
|
||||||
@Override
|
|
||||||
public void onAddValidators(AddValidatorsEventArgs e) {
|
|
||||||
super.onAddValidators(e);
|
|
||||||
|
|
||||||
DynamicObject[] dataEntities1 = e.getDataEntities();
|
|
||||||
DynamicObject object = dataEntities1[0];
|
|
||||||
DynamicObject pm = object.getDynamicObject("zcgj_pm");
|
|
||||||
if (pm == null) {
|
|
||||||
DynamicObject project = object.getDynamicObject("project");
|
|
||||||
project.set("zcgj_pm",pm);
|
|
||||||
OperationResult saveOperationResult = SaveServiceHelper.saveOperate("ec_project", new DynamicObject[]{project}, null);//项目实体
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue