批处理在正式环境oracle数据库中旧的关联关系无法删除问题
This commit is contained in:
parent
dd74174bc1
commit
2f6497be99
Binary file not shown.
@ -24,6 +24,7 @@ import com.actionsoft.bpms.org.model.UserModel;
|
||||
import com.actionsoft.bpms.server.UserContext;
|
||||
import com.actionsoft.bpms.util.UUIDGener;
|
||||
import com.actionsoft.bpms.util.UtilDate;
|
||||
import com.actionsoft.bpms.util.UtilString;
|
||||
import com.actionsoft.i18n.I18nRes;
|
||||
import com.actionsoft.sdk.local.SDK;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@ -221,6 +222,17 @@ public class ImportProcessExcel {
|
||||
}
|
||||
}
|
||||
} else if ("awsorg".equals(type)) {// 关联aws的组织架构
|
||||
JSONObject object2 = new JSONObject();
|
||||
object2.put("relationShapeId", "");
|
||||
object2.put("shapeId", "");
|
||||
object2.put("attrId", attrId);
|
||||
object2.put("shapeText", "");
|
||||
object2.put("relationFileId", "000");
|
||||
object2.put("relationShapeText", "");
|
||||
object2.put("groupPath", groupPath);
|
||||
object2.put("fileId", "");
|
||||
property.setPropertyValue(object2.toString());
|
||||
|
||||
JSONObject object3 = cellData.getJSONObject("data");
|
||||
JSONArray deptArr = object3.getJSONArray("department");// 部门
|
||||
JSONArray roleArr = object3.getJSONArray("role");// 角色
|
||||
@ -366,9 +378,13 @@ public class ImportProcessExcel {
|
||||
delPropertyList.addAll(removeProps);// 记录需要删除的文件属性配置
|
||||
}
|
||||
// 记录需要删除的关联属性
|
||||
List<DesignerShapeRelationModel> removeRelations = relationDao.query(plId, "", attrId, null, null);
|
||||
List<DesignerShapeRelationModel> removeRelations = relationDao.query(plId, null, attrId, null, null);
|
||||
if (removeRelations.size() > 0) {
|
||||
delRelationList.addAll(removeRelations);
|
||||
for (DesignerShapeRelationModel relation : removeRelations) {
|
||||
if (UtilString.isEmpty(relation.getShapeId())) {// 过滤掉形状不为空的即为文件属性
|
||||
delRelationList.addAll(removeRelations);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ("string".equals(type) || "textarea".equals(type)) {
|
||||
@ -418,6 +434,16 @@ public class ImportProcessExcel {
|
||||
}
|
||||
}
|
||||
} else if ("awsorg".equals(type)) {// 关联aws的组织架构
|
||||
JSONObject object2 = new JSONObject();
|
||||
object2.put("relationShapeId", "");
|
||||
object2.put("shapeId", "");
|
||||
object2.put("attrId", attrId);
|
||||
object2.put("shapeText", "");
|
||||
object2.put("relationFileId", "000");
|
||||
object2.put("relationShapeText", "");
|
||||
object2.put("groupPath", groupPath);
|
||||
object2.put("fileId", "");
|
||||
property.setPropertyValue(object2.toString());
|
||||
JSONObject object3 = cellData.getJSONObject("data");
|
||||
JSONArray deptArr = object3.getJSONArray("department");// 部门
|
||||
JSONArray roleArr = object3.getJSONArray("role");// 角色
|
||||
|
||||
Loading…
Reference in New Issue
Block a user