Merge branch 'dev-change' into dev-ljw
This commit is contained in:
commit
ae66b4b326
@ -37,8 +37,12 @@ public class yemBillPlugInEsBaseFrom extends AbstractBillPlugIn implements Befor
|
|||||||
long userID = CommonUtils.getUserID();
|
long userID = CommonUtils.getUserID();
|
||||||
DynamicObject operator = BusinessDataServiceHelper.loadSingle(userID,"bos_user");
|
DynamicObject operator = BusinessDataServiceHelper.loadSingle(userID,"bos_user");
|
||||||
this.getModel().setValue("yem_operator",operator);
|
this.getModel().setValue("yem_operator",operator);
|
||||||
DynamicObject Userdep = CommonUtils.getOrgUserDep(org.getLong("id"),userID);
|
if (org!=null){
|
||||||
this.getModel().setValue("yem_department",Userdep);
|
long aLong = org.getLong("id");
|
||||||
|
DynamicObject Userdep = CommonUtils.getOrgUserDep(aLong,userID);
|
||||||
|
this.getModel().setValue("yem_department",Userdep);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -0,0 +1,34 @@
|
|||||||
|
package com.yem.wm.im.orderproreqbill.op;
|
||||||
|
|
||||||
|
import kd.bos.dataentity.entity.DynamicObject;
|
||||||
|
import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
||||||
|
import kd.bos.entity.plugin.args.AfterOperationArgs;
|
||||||
|
import kd.bos.orm.query.QCP;
|
||||||
|
import kd.bos.orm.query.QFilter;
|
||||||
|
import kd.bos.servicehelper.BusinessDataServiceHelper;
|
||||||
|
import kd.bos.servicehelper.operation.SaveServiceHelper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author ljw
|
||||||
|
* @date 2024/8/29 10:26
|
||||||
|
* @description orderproreqbillcancelstatusOp
|
||||||
|
*/
|
||||||
|
public class orderproreqbillcancelstatusOp extends AbstractOperationServicePlugIn {
|
||||||
|
@Override
|
||||||
|
public void afterExecuteOperationTransaction(AfterOperationArgs e) {
|
||||||
|
super.afterExecuteOperationTransaction(e);
|
||||||
|
DynamicObject[] dataEntities = e.getDataEntities();
|
||||||
|
for (DynamicObject dataEntity : dataEntities) {
|
||||||
|
long aLong = dataEntity.getLong("id");
|
||||||
|
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle("yem_orderproreqbill", "id,number,yem_cancelstatus,yem_flowinstid,yem_forminstid,yem_contremark"
|
||||||
|
, new QFilter[]{new QFilter("id", QCP.equals, aLong)});
|
||||||
|
String yemCancelstatus = dynamicObject.getString("yem_cancelstatus");
|
||||||
|
if (yemCancelstatus.equals("B")){
|
||||||
|
dynamicObject.set("yem_flowinstid",null);
|
||||||
|
dynamicObject.set("yem_forminstid",null);
|
||||||
|
}
|
||||||
|
SaveServiceHelper.save(new DynamicObject[]{dynamicObject});
|
||||||
|
SaveServiceHelper.update(dynamicObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user