diff --git a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java index 1bbe0901..b657c880 100644 --- a/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java +++ b/com.actionsoft.apps.coe.pal.publisher/src/com/actionsoft/apps/coe/pal/publisher/PublisherController.java @@ -452,7 +452,10 @@ public class PublisherController { //判断taskId是否为空,空的话则查库更新,应对部门视图不穿taskId的场景 if(UtilString.isEmpty(taskId)){ PublishListHistory pHistory = new PublishListHistory(); - taskId = pHistory.getLastPublishTaskIdByModelId(uuid).trim(); + String result = pHistory.getLastPublishTaskIdByModelId(uuid); + if(UtilString.isNotEmpty(result)){ + taskId = result.trim(); + } } return PALRepositoryQueryAPIManager.getInstance().getPublishPortalHtml(me, uuid, taskId, false); }