质量校验关联属性查询修改

This commit is contained in:
zhaol 2024-11-18 23:45:50 +08:00
parent 9a3bd51e6c
commit a8281a757b
2 changed files with 6 additions and 4 deletions

View File

@ -9721,6 +9721,8 @@ public class CoeProcessLevelWeb extends ActionWeb {
/***************************************************文件属性校验*************************************************/
for (PALRepositoryPropertyModel property : propertys) {
flag1=true;
flag2=true;
String id = property.getPropertyId();
if (!attributeModelMap.containsKey(id) || !attributeModelMap.get(id).getUse()) {
continue;
@ -9732,8 +9734,9 @@ public class CoeProcessLevelWeb extends ActionWeb {
}
if ("relation".equals(attributeModel.getType()) || "awsorg".equals(attributeModel.getType())) {
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(uuid, "", attributeModel.getKey());
if (list == null || list.isEmpty()) {
String sql = "SELECT ID FROM APP_ACT_COE_PAL_SHAPE_RLAT where FILEID=? and ATTRID=?";
RowMap orgrowMap= DBSql.getMap(sql, new Object[]{uuid, property.getPropertyId()});
if(orgrowMap==null){
flag1 = false;
}
} else {
@ -9741,7 +9744,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
}
if (!flag1) {// 校验不通过
sb1.append("''" + attributeModel.getTitle() + "''").append(",");
flag1 = false;
}
}
@ -10636,7 +10638,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
* @param id
* @return
*/
public String getPalProcessLevelRepositoryChildData(String wsId, String teamId, String id, String createUsers, String orgIds, String methodIds) {
public String getPalProcessLevelRepositoryChildData(String wsId, String teamId, String id, String createUsers, String orgIds, String methodIds) {
ResponseObject ro = ResponseObject.newOkResponse();
// 获取当前文件信息
PALRepository coeProcessLevel = CoeProcessLevelDaoFacotory.createCoeProcessLevel();