|
@@ -310,6 +310,7 @@ public class TestPlugin extends AbstractListPlugin {
|
|
|
|
|
|
DynamicObjectCollection existingDeptEntries = existingUser.getDynamicObjectCollection("entryentity");
|
|
|
DynamicObject existingDeptEntry =null;
|
|
|
+
|
|
|
for (DynamicObject dep:existingDeptEntries) {
|
|
|
|
|
|
if (!dep.getBoolean("ispartjob")){
|
|
@@ -363,6 +364,11 @@ public class TestPlugin extends AbstractListPlugin {
|
|
|
existingDeptEntry.set("position", postName);
|
|
|
isUpdated = true;
|
|
|
}
|
|
|
+ if ("总经理".contains(postName)) {
|
|
|
+
|
|
|
+ existingDeptEntry.set("isincharge",true);
|
|
|
+ isUpdated = true;
|
|
|
+ }
|
|
|
|
|
|
if ("".equals(existingDeptEntry.getString("position"))) {
|
|
|
existingDeptEntry.set("position", "无");
|
|
@@ -442,6 +448,10 @@ public class TestPlugin extends AbstractListPlugin {
|
|
|
}else {
|
|
|
bumeninfo.set("position", postName);
|
|
|
}
|
|
|
+
|
|
|
+ if(("总经理").contains(postName)) {
|
|
|
+ bumeninfo.set("isincharge",true);
|
|
|
+ }
|
|
|
|
|
|
String positionnumber = personData.getString("nckd_posidname");
|
|
|
if ("".equals(positionnumber)) {
|
|
@@ -455,6 +465,7 @@ public class TestPlugin extends AbstractListPlugin {
|
|
|
msg+="工号为 " + gonghao + " 的用户已创建!";
|
|
|
|
|
|
|
|
|
+
|
|
|
DBRoute dbRoute=new DBRoute("sys");
|
|
|
|
|
|
long timestamp = System.currentTimeMillis();
|
|
@@ -835,10 +846,10 @@ public class TestPlugin extends AbstractListPlugin {
|
|
|
|
|
|
if("testaaa".equals(e.getOperateKey()))
|
|
|
{
|
|
|
- QFilter filter=new QFilter("number",QCP.equals,"12");
|
|
|
- DynamicObject dynamicObject=BusinessDataServiceHelper
|
|
|
- .loadSingle("bos_user",new QFilter[]{filter});
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ DynamicObject dynamicObject = BusinessDataServiceHelper.newDynamicObject("");
|
|
|
|
|
|
|
|
|
}
|