定制封皮选择代码优化
This commit is contained in:
parent
e05a46ca3e
commit
c3efda91b4
@ -25,6 +25,7 @@ import com.actionsoft.bpms.commons.mvc.view.ResponseObject;
|
||||
import com.actionsoft.bpms.org.model.DepartmentModel;
|
||||
import com.actionsoft.bpms.org.model.RoleModel;
|
||||
import com.actionsoft.bpms.org.model.UserModel;
|
||||
import com.actionsoft.bpms.server.AWSServer;
|
||||
import com.actionsoft.bpms.server.DispatcherRequest;
|
||||
import com.actionsoft.bpms.server.UserContext;
|
||||
import com.actionsoft.bpms.server.conf.portal.AWSPortalConf;
|
||||
@ -606,10 +607,21 @@ public class OutputWordUtil {
|
||||
//..\doccenter\com.awspaas.user.apps.coe.pal.output.zd\output\11dd43d0-a3c7-4ba7-860f-6eac3383e0b0\0f4c6420-cd5d-41b6-a5b3-9c4cd5464c64\测试超级大文件_1.0.doc
|
||||
//构建dc对象
|
||||
System.out.println(">>>>>>>>fileURL = " + fileURL);
|
||||
String appId =fileURL.split("/")[2];
|
||||
String groupValue =fileURL.split("/")[4];
|
||||
String fileValue =fileURL.split("/")[5];
|
||||
String dcFileName = fileURL.split("/")[6];
|
||||
//生产环境和测试环境文件路径深度不同,分别处理
|
||||
String appId;String groupValue;String fileValue;String dcFileName;
|
||||
boolean isPrd = SDK.getAppAPI().getPropertyBooleanValue(CoEConstant.APP_ID, "isPrd",true);
|
||||
if(isPrd){
|
||||
//生产环境和测试环境文件路径深度不同,分别处理
|
||||
appId =fileURL.split("/")[4];
|
||||
groupValue =fileURL.split("/")[6];
|
||||
fileValue =fileURL.split("/")[7];
|
||||
dcFileName = fileURL.split("/")[8];
|
||||
}else{
|
||||
appId =fileURL.split("/")[2];
|
||||
groupValue =fileURL.split("/")[4];
|
||||
fileValue =fileURL.split("/")[5];
|
||||
dcFileName = fileURL.split("/")[6];
|
||||
}
|
||||
String dcReposirotyName = "output";
|
||||
System.out.println("dc = " + appId + "|"+groupValue+"|"+fileValue+"|"+dcFileName);
|
||||
DCPluginProfile dcPluginProfile =SDK.getDCAPI().getDCProfile(appId,dcReposirotyName);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user