From f5d37f0d0405454871cac6a6b198082928c5475d Mon Sep 17 00:00:00 2001 From: zhal <15900249928@163.com> Date: Mon, 4 Jul 2022 23:34:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E6=97=B6=E5=90=8C=E6=AD=A5=E7=BB=84?= =?UTF-8?q?=E7=BB=87=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/repository/web/CoeProcessLevelWeb.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java index 66a7091e..b95bc928 100755 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/pal/repository/web/CoeProcessLevelWeb.java @@ -2684,7 +2684,6 @@ public class CoeProcessLevelWeb extends ActionWeb { content.append(" " + attributeModel.getNewTitle() + " " + requiredSpan + input + " "); sb.append(id + "|"); } - System.out.println("content========"+content.toString()); map.put("content", content.toString()); map.put("attrIds", sb.toString()); map.put("refs", refs); @@ -8281,6 +8280,7 @@ public class CoeProcessLevelWeb extends ActionWeb { Boolean flag1=false; Boolean flag2=false; StringBuilder sb = new StringBuilder(); + StringBuffer sb1=new StringBuffer(); sb.append("质量校验
"); for (PALRepositoryPropertyModel property : propertys) { String id = property.getPropertyId(); @@ -8394,7 +8394,7 @@ public class CoeProcessLevelWeb extends ActionWeb { if (isRequired) { if(UtilString.isEmpty(inputValue)){ - sb.append(attributeModel.getTitle()).append(","); + sb.append("''"+attributeModel.getTitle()+"''").append(","); flag1=true; } @@ -8428,7 +8428,7 @@ public class CoeProcessLevelWeb extends ActionWeb { if(Boolean.parseBoolean(isRequired)==true){ String inputvalue = attributesJsonArray.getJSONObject(k).getString("value"); if(UtilString.isEmpty(inputvalue)){ - sb.append(attributesJsonArray.getJSONObject(k).getString("name")).append(","); + sb.append("''"+attributesJsonArray.getJSONObject(k).getString("name")+"''").append(","); flag2=true; } } @@ -8442,17 +8442,18 @@ public class CoeProcessLevelWeb extends ActionWeb { } if(flag1==true || flag2==true){ - sb.append("未填写,请检查!"); + sb1.append(sb.substring(0, sb.length()-1)); + sb1.append("未填写,请检查!"); } - int sb1indexOf=sb.indexOf("未填写"); - if(sb1indexOf==-1 ){ + int index=sb1.indexOf("未填写"); + if(index==-1 ){ ro.put("result","ok"); }else{ ro.put("result","error"); } - ro.put("sb",sb); + ro.put("sb",sb1); return ro.toString(); }