发布子表文件显示顺序调整

This commit is contained in:
lihongyu 2022-11-21 16:52:15 +08:00
parent 4e11cd28e7
commit 70dd07546a
3 changed files with 8 additions and 15 deletions

View File

@ -2873,9 +2873,7 @@ public class ProcessPublishWeb extends ActionWeb {
params); params);
return ros; return ros;
} }
/************ 批量流程发布 *****************/ /************ 批量流程发布 *****************/
/** /**
@ -2911,7 +2909,7 @@ public class ProcessPublishWeb extends ActionWeb {
boolean isEnd = publish.isEnd(); boolean isEnd = publish.isEnd();
ro.put("isEnd", isEnd); ro.put("isEnd", isEnd);
String bindId = publish.getBindId(); String bindId = publish.getBindId();
List<BO> newList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N").addQuery("BINDID=", bindId).list(); List<BO> newList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_N").addQuery("BINDID=", bindId).orderByCreated().asc().list();
if (!isEmpty(newList)) if (!isEmpty(newList))
for (int i = 0; i < newList.size(); i++) { for (int i = 0; i < newList.size(); i++) {
JSONObject obj = new JSONObject(); JSONObject obj = new JSONObject();
@ -2984,7 +2982,6 @@ public class ProcessPublishWeb extends ActionWeb {
jb.put("openUrl", openUrl); jb.put("openUrl", openUrl);
js.add(jb.toJSONString()); js.add(jb.toJSONString());
} }
} }
obj.put("upfileId", js); obj.put("upfileId", js);
} else { } else {
@ -2996,7 +2993,7 @@ public class ProcessPublishWeb extends ActionWeb {
newArr.add(obj); newArr.add(obj);
} }
} }
List<BO> changeList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C").addQuery("BINDID=", bindId).list(); List<BO> changeList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_C").addQuery("BINDID=", bindId).orderByCreated().asc().list();
if (!isEmpty(changeList)) if (!isEmpty(changeList))
for (int j = 0; j < changeList.size(); j++) { for (int j = 0; j < changeList.size(); j++) {
JSONObject obj = new JSONObject(); JSONObject obj = new JSONObject();
@ -3120,7 +3117,7 @@ public class ProcessPublishWeb extends ActionWeb {
changeArr.add(obj); changeArr.add(obj);
} }
} }
List<BO> stopList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S").addQuery("BINDID=", bindId).list(); List<BO> stopList = SDK.getBOAPI().query("BO_ACT_COE_PUBLISH_S").addQuery("BINDID=", bindId).orderByCreated().asc().list();
if (!isEmpty(stopList)) if (!isEmpty(stopList))
for (int i = 0; i < stopList.size(); i++) { for (int i = 0; i < stopList.size(); i++) {
JSONObject obj = new JSONObject(); JSONObject obj = new JSONObject();

View File

@ -34,7 +34,6 @@ public class OutputDCFileProcessor extends AbstFileProcessor implements FileProc
if (SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IS_RECORD_OP_LOG", false)) { if (SDK.getAppAPI().getPropertyBooleanValue("com.actionsoft.apps.coe.pal", "IS_RECORD_OP_LOG", false)) {
CoEOpLogAPI.auditOkOp(_uc, "PAL应用中心", "download", "下载报告手册文档"); CoEOpLogAPI.auditOkOp(_uc, "PAL应用中心", "download", "下载报告手册文档");
} }
return dcContext.getDownloadURL(); return dcContext.getDownloadURL();
} else { } else {
return ""; return "";

View File

@ -307,10 +307,8 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList
OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID")); OutputTaskModel model = new OutputTask().getTaskReportById(rowMap.getString("TASKID"));
if (model != null) { if (model != null) {
System.out.println("pdel============" + model); //System.out.println("pdel============" + model);
System.out.println("123313123123123==========" + model.getProfileId());
OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId()); OutputAppProfile appProfile = OutputAppManager.getProfile(model.getProfileId());
System.out.println("dajadfas======" + appProfile);
if (appProfile == null) { if (appProfile == null) {
throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId()); throw new AWSException("Not Find OutputAppProfile! profileId=" + model.getProfileId());
} }
@ -512,8 +510,7 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList
* @param fileid * @param fileid
* @return * @return
*/ */
public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName, public boolean execute(ProcessExecutionContext processExecutionContext, String fileCreateName, String fileName,String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate,
String fileurl, String readingScope_org, String isFullCompany, String fileCreateDate,
String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) { String relationProcessinstId, String readingScope_post, String readingScope_level, String fileid) {
// 调用App // 调用App
String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); String sourceAppId = processExecutionContext.getProcessInstance().getAppId();
@ -557,8 +554,8 @@ public class ProcessEndAfterEvent extends ExecuteListener implements ExecuteList
* @param knwlId * @param knwlId
* @return * @return
*/ */
public boolean AddKnwlAC(ProcessExecutionContext processExecutionContext, JSONArray jsonArray, String sid, public boolean AddKnwlAC(ProcessExecutionContext processExecutionContext, JSONArray jsonArray, String sid,String knwlId) {
String knwlId) {
// 调用App // 调用App
String sourceAppId = processExecutionContext.getProcessInstance().getAppId(); String sourceAppId = processExecutionContext.getProcessInstance().getAppId();
// aslp服务地址 // aslp服务地址