评论修复
This commit is contained in:
parent
88bd2336ee
commit
66ec529a15
Binary file not shown.
@ -112,6 +112,7 @@ import com.google.common.collect.Lists;
|
||||
import com.google.common.collect.Maps;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang.text.StrBuilder;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.poifs.filesystem.POIFSFileSystem;
|
||||
import org.apache.poi.ss.usermodel.HorizontalAlignment;
|
||||
@ -9004,9 +9005,10 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
StringBuffer sb1=new StringBuffer();
|
||||
StringBuffer sb2=new StringBuffer();
|
||||
StringBuffer sb3=new StringBuffer();
|
||||
StringBuffer sb4 = new StringBuffer();;
|
||||
sb.append("<span>质量校验<span><br/>");
|
||||
sb1.append("<span>文件属性:<span>");
|
||||
sb2.append("<span>节点名称:<span>");
|
||||
//sb2.append("<span>节点名称:<span>");
|
||||
|
||||
for (PALRepositoryPropertyModel property : propertys) {
|
||||
String id = property.getPropertyId();
|
||||
@ -9024,9 +9026,9 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
if (list == null || list.isEmpty()) {
|
||||
flag1 = false;
|
||||
}
|
||||
} /*else {
|
||||
} else {
|
||||
flag1 = UtilString.isNotEmpty(property.getPropertyValue());
|
||||
}*/
|
||||
}
|
||||
if (!flag1) {// 校验不通过
|
||||
sb1.append("''"+attributeModel.getTitle()+"''").append(",");
|
||||
flag1 = false;
|
||||
@ -9050,10 +9052,15 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
String shapeCategory = o.getString("category");
|
||||
JSONObject dataAttributes = o.getJSONObject("dataAttributes");
|
||||
JSONArray attributesJsonArray = dataAttributes.getJSONArray("attributesJsonArray");
|
||||
|
||||
for (int i = 0; i < attributesJsonArray.size(); i++) {
|
||||
|
||||
|
||||
|
||||
JSONObject attr = attributesJsonArray.getJSONObject(i);
|
||||
String attrId = attr.getString("id");
|
||||
String value = attr.getString("value");
|
||||
|
||||
if (!methodAttributeModelMap.containsKey(shapeName + "-" + attrId)) {
|
||||
List<PALMethodAttributeModel> methodAttributeModels = CoeDesignerShapeAPIManager.getInstance().getValidAndUseAttributeModels(model.getWsId(), shapeCategory.replace("_", "."), shapeName, model.getMethodId());
|
||||
for (PALMethodAttributeModel attributeModel : methodAttributeModels) {
|
||||
@ -9068,26 +9075,38 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
PALMethodAttributeModel attrModel = methodAttributeModelMap.get(shapeName + "-" + attrId);
|
||||
if (attrModel.getIsRequired()) {// 筛选必填
|
||||
sb2=new StringBuffer();
|
||||
String attrType = attrModel.getType();
|
||||
if ("relation".equals(attrType) || "awsorg".equals(attrType)) {
|
||||
List<DesignerShapeRelationModel> list = DesignerShapeRelationCache.getListByAttrId(model.getId(), shapeId, attrId);
|
||||
if (list == null || list.isEmpty()) {
|
||||
flag2 = false;
|
||||
}
|
||||
} /*else {
|
||||
} else {
|
||||
flag2 = UtilString.isNotEmpty(value);
|
||||
}*/
|
||||
}
|
||||
if (!flag2) {
|
||||
|
||||
sb2.append("【"+o.get("text")+"】"+"''"+attrModel.getNewTitle()+"''").append(",");
|
||||
|
||||
JSONObject tmp = new JSONObject();
|
||||
tmp.put("shapeId", shapeId);
|
||||
tmp.put("shapeName", text);
|
||||
tmp.put("attrName", attrModel.getNewTitle());
|
||||
tmp.put("attrId", attrId);
|
||||
resultList.add(tmp);
|
||||
sb2.append("''"+attrModel.getNewTitle()+"''").append(",");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!flag2) {
|
||||
sb4.append("<span>节点名称:<span>"+"【"+text+"】").append(sb2).append("</br>");
|
||||
}
|
||||
}
|
||||
System.out.println(resultList);
|
||||
ro.setData(resultList);
|
||||
|
||||
if( flag2==false){
|
||||
sb.append(sb2.substring(0, sb2.length()-1));
|
||||
|
||||
|
||||
sb.append(sb4.substring(0, sb4.length()-1));
|
||||
sb.append("未填写,请检查!");
|
||||
}
|
||||
|
||||
@ -9162,23 +9181,30 @@ public class CoeProcessLevelWeb extends ActionWeb {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 添加评论内容
|
||||
* @param me
|
||||
* @param ruuid
|
||||
* @param replyContent
|
||||
* @return
|
||||
*/
|
||||
public String createReply(UserContext me,String ruuid,String replyContent){
|
||||
ResponseObject result = ResponseObject.newOkResponse();
|
||||
AppAPI appApi = SDK.getAppAPI();
|
||||
Date now = new Date();
|
||||
Timestamp replyTime = new Timestamp(now.getTime());
|
||||
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-mm-dd HH:mm:ss");
|
||||
try {
|
||||
Map<String, Object> paramsMap = new HashMap<>();
|
||||
paramsMap.put("ID", UUIDGener.getUUID());
|
||||
paramsMap.put("DATAID", ruuid);
|
||||
paramsMap.put("REPLYER", me.getUID());
|
||||
paramsMap.put("REPLYTIME", replyTime);
|
||||
paramsMap.put("REPLYTIME", sdf.format(replyTime));
|
||||
paramsMap.put("REPLYCONTENT", replyContent);
|
||||
paramsMap.put("REPLYERIP", me.getClientIP());
|
||||
paramsMap.put("ORGID", me.getDepartmentModel().getCompanyId());
|
||||
int createresult = DBSql.update(DBSql.getInsertStatement("APP_ACT_PAL_DATA_REPLY", paramsMap), paramsMap);
|
||||
|
||||
result.put("result","ok");
|
||||
}catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
||||
@ -1652,7 +1652,7 @@ function ProcessManual(obj) {
|
||||
t += '<td>';
|
||||
t += '<div class="tablefileContent"><a href="javascript:void(0);" title="'+fileName+'" onclick="openOutputFile(\''+ taskId +'\')">'+ fileName +'</a>';
|
||||
t +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
t += '<i class="awsui-iconfont" title="手册下载" onclick="downloadProcessFile(\''+taskId+'\')"></i>';
|
||||
/* t += '<i class="awsui-iconfont" title="手册下载" onclick="downloadProcessFile(\''+taskId+'\')"></i>';*/
|
||||
t +='</button>';
|
||||
|
||||
t +='</div>';
|
||||
@ -1688,7 +1688,7 @@ function openOutputFile(taskId) {
|
||||
$.simpleAlert("close");
|
||||
if (msg['data']) {
|
||||
var url = msg['data']['url'];
|
||||
window.open(url);
|
||||
window.location.href = url;
|
||||
}
|
||||
} else {
|
||||
$.simpleAlert("close");
|
||||
@ -1828,7 +1828,7 @@ function initUpfileData(obj) {
|
||||
var str='';
|
||||
splitId=splitId.substring(0,splitId.length-1);
|
||||
str +='<button id="ProcessManual" type="button" class="awsui-btn awsui-btn-blue awsui-btn-sm">';
|
||||
str += '<i class="awsui-iconfont" onclick="downloadZipFile(\''+splitId+'\',\''+toolbarname+'\',\''+taskId+'\')" title="打包下载"></i>';
|
||||
/* str += '<i class="awsui-iconfont" onclick="downloadZipFile(\''+splitId+'\',\''+toolbarname+'\',\''+taskId+'\')" title="打包下载"></i>';*/
|
||||
str +='</button>';
|
||||
$('#dabao').html(str);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user