快捷发布优化
This commit is contained in:
parent
c8f7c0611d
commit
402e4c6c5c
@ -452,7 +452,7 @@ public class PublisherController {
|
|||||||
//判断taskId是否为空,空的话则查库更新,应对部门视图不穿taskId的场景
|
//判断taskId是否为空,空的话则查库更新,应对部门视图不穿taskId的场景
|
||||||
if(UtilString.isEmpty(taskId)){
|
if(UtilString.isEmpty(taskId)){
|
||||||
PublishListHistory pHistory = new PublishListHistory();
|
PublishListHistory pHistory = new PublishListHistory();
|
||||||
taskId = pHistory.getLastPublishTaskIdByModelId(uuid);
|
taskId = pHistory.getLastPublishTaskIdByModelId(uuid).trim();
|
||||||
}
|
}
|
||||||
return PALRepositoryQueryAPIManager.getInstance().getPublishPortalHtml(me, uuid, taskId, false);
|
return PALRepositoryQueryAPIManager.getInstance().getPublishPortalHtml(me, uuid, taskId, false);
|
||||||
}
|
}
|
||||||
@ -957,9 +957,9 @@ public class PublisherController {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@Mapping("com.actionsoft.apps.coe.pal.publisher.createProcess")
|
@Mapping("com.actionsoft.apps.coe.pal.publisher.createProcess")
|
||||||
public String createProcess(UserContext me,String palUUID) {
|
public String createProcess(UserContext me,String palUUID,String type) {
|
||||||
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
ProcessPublishWeb web = new ProcessPublishWeb(me);
|
||||||
return web.createProcess(palUUID);
|
return web.createProcess(palUUID,type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -5194,12 +5194,16 @@ public class ProcessPublishWeb extends ActionWeb {
|
|||||||
* @param processDefId
|
* @param processDefId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public String createProcess(String palUUID) {
|
public String createProcess(String palUUID,String type) {
|
||||||
ResponseObject responseObject = ResponseObject.newOkResponse();
|
ResponseObject responseObject = ResponseObject.newOkResponse();
|
||||||
|
String processDefId;
|
||||||
//获取发布流程组中运行中的流程
|
//获取工程制度标准运行中的版本
|
||||||
String processDefId = SDK.getRepositoryAPI().getProcessDefIdOfRelease("obj_fb1c7a54b98b412187388c8bab407362");
|
if(type.equals("1")){
|
||||||
|
processDefId = SDK.getRepositoryAPI().getProcessDefIdOfRelease("obj_fb1c7a54b98b412187388c8bab407362");
|
||||||
|
}else{
|
||||||
|
//获取发布流程运行中的版本
|
||||||
|
processDefId = SDK.getRepositoryAPI().getProcessDefIdOfRelease("obj_5042cc444c1944c4aaf99001c23d0e4f\n");
|
||||||
|
}
|
||||||
String optionType = "";//发布类型
|
String optionType = "";//发布类型
|
||||||
String subBoName = "";//子表名称
|
String subBoName = "";//子表名称
|
||||||
//获取文件属性
|
//获取文件属性
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user