质量校验代码
This commit is contained in:
parent
f9554796cf
commit
5c5bfd37b9
@ -8383,7 +8383,7 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
|
||||
|
||||
Boolean flag1=true;
|
||||
Boolean flag2=false;
|
||||
Boolean flag2=true;
|
||||
StringBuilder sb = new StringBuilder();
|
||||
StringBuffer sb1=new StringBuffer();
|
||||
sb.append("<span>质量校验<span><br/>");
|
||||
@ -8398,17 +8398,16 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
continue;
|
||||
}
|
||||
|
||||
boolean flag = true;// 通过
|
||||
String inputValue = property.getPropertyValue();
|
||||
if ("relation".equals(attributeModel.getType()) || "awsorg".equals(attributeModel.getType())) {
|
||||
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(uuid, "", attributeModel.getKey());
|
||||
if (list == null || list.isEmpty()) {
|
||||
flag = false;
|
||||
flag1 = false;
|
||||
}
|
||||
} else {
|
||||
flag = UtilString.isNotEmpty(property.getPropertyValue()) ? true : false;
|
||||
flag1 = UtilString.isNotEmpty(property.getPropertyValue()) ? true : false;
|
||||
}
|
||||
if (!flag) {// 校验不通过
|
||||
if (!flag1) {// 校验不通过
|
||||
sb.append("''"+attributeModel.getTitle()+"''").append(",");
|
||||
flag1 = false;
|
||||
}
|
||||
@ -8445,16 +8444,15 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
PALMethodAttributeModel attrModel = methodAttributeModelMap.get(shapeName + "-" + attrId);
|
||||
if (attrModel.getIsRequired()) {// 筛选必填
|
||||
String attrType = attrModel.getType();
|
||||
boolean flag = true;
|
||||
if ("relation".equals(attrType) || "awsorg".equals(attrType)) {
|
||||
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(model.getId(), shapeId, attrId);
|
||||
if (list == null || list.isEmpty()) {
|
||||
flag = false;
|
||||
flag2 = false;
|
||||
}
|
||||
} else {
|
||||
flag = UtilString.isNotEmpty(value);
|
||||
flag2 = UtilString.isNotEmpty(value);
|
||||
}
|
||||
if (!flag) {
|
||||
if (!flag2) {
|
||||
sb.append("''"+shapeName+"''").append(",");
|
||||
flag2=false;
|
||||
|
||||
@ -8481,7 +8479,6 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String definePerformanceCheck(String sid,String obj){
|
||||
ResponseObject ro = ResponseObject.newOkResponse();
|
||||
StringBuffer sb=new StringBuffer();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user