public Map readwriteWord(Map map,String gcid,String deptid) {
//查找word模板
BindContractTemplate bindContractTemplate = new BindContractTemplate();
bindContractTemplate.setGCId(gcid);
bindContractTemplate.setDeptId(deptid);
bindContractTemplate = bindContractTemplateService.get(bindContractTemplate);
//吧服务器的模板下载到本机中
String photoUrl = bindContractTemplate.getContractTemplateUrl();
String fileNames = photoUrl.substring(photoUrl.lastIndexOf("/"));
String filePath = "/var/xxx/webserver/xxx/contract/";
boolean flag = saveUrlAs(photoUrl, filePath +fileNames);
// 读取word模板
FileInputStream in = null;
try {
in = new FileInputStream(new File(filePath + fileNames));
//in = new FileInputStream(new File("F:\\1495206705005.doc"));
} catch (FileN