用款申请单插件优化

This commit is contained in:
xuhaihui 2025-07-16 15:49:04 +08:00
parent d27a17abc3
commit 6e29a3ed3c
1 changed files with 2 additions and 2 deletions

View File

@ -49,9 +49,9 @@ public class PaymentApplicationPlugin extends AbstractBillPlugIn implements Atta
DynamicObject creator = this.getModel().getDataEntity().getDynamicObject("creator");//创建人
if (creator != null) {
long mainOrgId = UserServiceHelper.getUserMainOrgId(creator.getLong("id"));
long id = UserServiceHelper.getUserDefaultOrgID(creator.getLong("id"));
// long id = UserServiceHelper.getUserDefaultOrgID(creator.getLong("id"));
this.getModel().setValue("zcgj_department", mainOrgId);//部门
this.getModel().setValue("zcgj_org", id);//所属组织
// this.getModel().setValue("zcgj_org", id);//所属组织
this.getView().updateView("zcgj_department");
this.getView().updateView("zcgj_org");
}