皋兰网站建设平台有没有专业做艺术品的网站

张小明 2026/1/13 7:27:37
皋兰网站建设平台,有没有专业做艺术品的网站,鞍山市人力资源招聘信息网,工程房地产行业一条龙网站实现场景#xff1a; 目标#xff1a;实现将流程相关资源中附件与文档内容复制到新字段中 使用泛微ESB实现复制相关资源文档#xff0c;附件的docid到新字段中实现附件汇集 附件1 字段存有a.txt,b.pdf; 附件2 字段存有 c.xls,d.ppt; 文档字段3 存有 d.doc在线文档在新增…实现场景目标实现将流程相关资源中附件与文档内容复制到新字段中使用泛微ESB实现复制相关资源文档附件的docid到新字段中实现附件汇集附件1 字段存有a.txt,b.pdf; 附件2 字段存有 c.xls,d.ppt; 文档字段3 存有 d.doc在线文档在新增的自定义字段collectannex通过esb接口实现将以上内容复制到该字段中ESB思路最后更新表单要去除获取到的docid之间的空格实现思路通过 流程requestid 获取表名与流程创建者id通过1中的内容获取流程相关资源的文件docid复制所有相关资源中的docid生成复制后新的docid执行更新SQL实现将以上新生成的docid复制到新字段collectannex中完整代码package com.weaver.esb.package_20251215021826; import com.api.doc.detail.util.DecodeUtil; import com.engine.workflow.biz.workflowCore.RequestBaseBiz; import com.engine.workflow.entity.core.RequestInfoEntity; import weaver.conn.RecordSet; import weaver.docs.webservices.DocAttachment; import weaver.docs.webservices.DocInfo; import weaver.docs.webservices.DocServiceImpl; import weaver.file.ImageFileManager; import weaver.general.Util; import weaver.hrm.User; import weaver.hrm.resource.ResourceComInfo; import weaver.wechat.util.Utils; import weaver.workflow.request.RequestResources; import weaver.workflow.workflow.WorkflowComInfo; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.util.*; public class OperateWorkflowAnnex { /** * param: param(Map collections) * 参数名称不能包含特殊字符,.[]!#$%()*:;?\^{}|~/ 中文字符、标点 U007F U0000到U001F */ public Map execute(MapString,Object params) { MapString,Object ret new HashMap(); String requestid Utils.null2String(params.get(requestid)); //1. obtain tablename by requestid String tableName getWorkflowTablenameByRequestid(requestid); // 2. obtain creater by requestid String creater getCreaterByRequestid(requestid); int useridInt Integer.parseInt(creater) ; User user new User(useridInt) ; // 3. obtain annex files ids by requestid,creater ListString docidList getAnnexfilesList( requestid , creater ); ListString CollectAnnexDocidList new ArrayList(); try { for(String docId : docidList){ MapString, String imageInfo getImageFileidByDocid(docId); String decodeimagefileid Util.null2String(DecodeUtil.decodeByImageFileIdByTianyu(Integer.parseInt(imageInfo.get(imagefileid)))); String imagefilename imageInfo.get(imagefilename); InputStream inputStream ImageFileManager.getInputStreamById(Integer.parseInt(decodeimagefileid)); String relatedDocid createDocument(inputStream,/app/weaver/ecology/Archives,imagefilename,creater,user,imagefilename); CollectAnnexDocidList.add(relatedDocid); } } catch (Exception e) { ret.put(code,400); ret.put(message,erro get files :e.toString()); throw new RuntimeException(e); } RecordSet updateAppendixRS new RecordSet() ; String collectannex String.join(, , CollectAnnexDocidList); collectannex collectannex.replaceAll(\\s, ); String updateWorkflowSQL update tableName set collectannex collectannex where requestidrequestid; updateAppendixRS.execute(updateWorkflowSQL ) ; ret.put(code,200); ret.put(message, tableName; creater:creater docidList:docidList CollectAnnexDocidListCollectAnnexDocidList ***updateWorkflowSQL); return ret; } public String createDocument(InputStream inputStream, String filePath, String fileName, String userid, User user, String wdmc) throws Exception { // System.out.println(进入生成文档方法); String docid ; ListInputStream inputStreams new ArrayList(); byte[] content new byte[102400]; // 上传附件创建html文档 content null; try { int byteread; byte data[] new byte[1024]; // InputStreamReader reader new InputStreamReader(input,UTF-8); ByteArrayOutputStream out new ByteArrayOutputStream(); while ((byteread inputStream.read(data)) ! -1) { out.write(data, 0, byteread); out.flush(); } content out.toByteArray(); inputStream.close(); out.close(); } catch (Exception e) { e.printStackTrace(); } DocAttachment da new DocAttachment(); da.setDocid(0); da.setImagefileid(0); da.setFilecontent(org.apache.axis.encoding.Base64.encode(content)); da.setFilerealpath(filePath); da.setIszip(1); da.setFilename(fileName); da.setIsextfile(1); da.setDocfiletype(3); DocServiceImpl docService new DocServiceImpl(); DocInfo doc new DocInfo();//创建文档 doc.setDoccreaterid(Integer.parseInt(userid));// doc.setDoccreatertype(0); doc.setAccessorycount(1); doc.setMaincategory(Integer.parseInt(92));//主目录id doc.setSeccategory(Integer.parseInt(92));//子目录id doc.setOwnerid(Integer.parseInt(userid)); doc.setDocStatus(1); doc.setId(0); doc.setDocType(2); doc.setDocSubject(wdmc); doc.setDoccontent(); doc.setAttachments(new DocAttachment[]{da}); int newDocid docService.createDocByUser(doc, user); System.out.println(新文档id newDocid); return newDocid ; } public static MapString, String getImageFileidByDocid(String docid) { String sql select imagefileid,imagefilename from docimagefile where docid docid ; RecordSet rs new RecordSet(); rs.executeQuery(sql); MapString, String map new HashMap(); if (rs.next()) { map.put(imagefileid, weaver.general.Util.null2String(rs.getString(imagefileid))); map.put(imagefilename, (weaver.general.Util.null2String(rs.getString(imagefilename))).replace(/,-)); } return map; } static ListString getAnnexfilesList(String requestidStr,String creatoridStr){ ListString docidList new ArrayList() ; int requestid Integer.parseInt(requestidStr) ; int useridInt Integer.parseInt(creatoridStr) ; if(requestidStr.equals()||requestidStrnull){ return null ; } User user new User(useridInt) ; try { RequestInfoEntity infoEntity RequestBaseBiz.loadRequestInfo(requestid); int workflowid infoEntity.getWorkflowId(); WorkflowComInfo comInfo new WorkflowComInfo(); int isbill Util.getIntValue(comInfo.getIsBill(Util.null2String(workflowid))); int formid Util.getIntValue(comInfo.getFormId(Util.null2String(workflowid))); RequestResources reqResources new RequestResources(user, infoEntity.getWorkflowId(), requestid, isbill, formid, , , , 0, 0, 0); // type:资源类型 1:相关流程 2相关文档 3相关附件 String fromSql reqResources.getReqResSqlByType(3); String querySQL select id, resname, restype, creator, creatortype, createdate, docid from fromSql order by id asc; RecordSet rs new RecordSet(); rs.executeQuery(querySQL); while (rs.next()) { int id rs.getInt(id); rs.getString(creator); //文档类型的附件查出来的是docid还要根据docid去查询docImageFileId String docid Util.null2String(rs.getInt(docid)); String imagefileid getDocImageFileIdByDocid(docid).get(imagefileid).toString(); docidList.add( docid); } // type:资源类型 1:相关流程 2相关文档 3相关附件 fromSql reqResources.getReqResSqlByType(2); querySQL select id, resname, restype, creator, creatortype, createdate, docid from fromSql order by id asc; rs.executeQuery(querySQL); while (rs.next()) { int id rs.getInt(id); rs.getString(creator); //文档类型的附件查出来的是docid还要根据docid去查询docImageFileId String docid Util.null2String(rs.getInt(docid)); String imagefileid getDocImageFileIdByDocid(docid).get(imagefileid).toString(); // imagefileidList.add( imagefileid); docidList.add( docid); } }catch (Exception e) { // writeLog(e.getMessage(), e); } return docidList ; } /** * 根据docid获取最新一次的DocImageFileId * param docid * return */ static MapString,Object getDocImageFileIdByDocid(String docid){ MapString,Object map new HashMap(); String zwflag1; int imagefileid0; RecordSet rs new RecordSet(); String sqlselect * from docdetail where iddocid; rs.executeSql(sql); sqlselect * from DocImageFile where docid docid; sql order by id desc ; rs.executeSql(sql); if(rs.next()){ imagefileid Util.getIntValue(rs.getString(imagefileid),0); map.put(imagefilename,rs.getString(imagefilename)); } map.put(imagefileid,imagefileid); return map; } /** * obtain creater by requestid * param requestid * return */ static String getCreaterByRequestid(String requestid){ //get creater by requestid String queryCreaterSQL select creater from workflow_requestbase where requestid ?; RecordSet rs new RecordSet(); rs.executeQuery(queryCreaterSQL,requestid) ; String creater 28525 ; if(rs.next()){ createrrs.getString(creater) ; } //get all annex files about requestid return creater ; } /** * obtain tablename by requestid * param requestid * return tablename */ static String getWorkflowTablenameByRequestid(String requestid){ String queryTableNameSQL SELECT b.tablename\n FROM workflow_requestbase r\n JOIN workflow_base w ON r.workflowid w.id\n JOIN workflow_bill b ON w.formid b.id\n WHERE r.requestid ? ; RecordSet rs new RecordSet(); rs.executeQuery(queryTableNameSQL,requestid) ; String result ; if(rs.next()){ resultrs.getString(tablename) ; } return result ; } }代码解析使用requestid获取流程对应的表名与创建人需要进行多个表的转换queryTableNameSQL获取tablename表名 拆解来源如下select creater from workflow_requestbase where requestid 80095263 -- workflowid 448621 select * from workflow_base where id 448621 --- formid -4654 select tablename from workflow_bill where id -4654 -- tablename获取相关资源在之前的获取流程相关资源文章提到了获取相关流程requestid参数为1参数为2或者3即可获取相关资源的文档和附件docid代码不同数字代表不同资源类型其中 1:相关流程 2相关文档 3相关附件 以下方法通过输入流程requestid与创建人id返回该流程相关资源中所有文档与附件的docidstatic ListString getAnnexfilesList(String requestidStr,String creatoridStr){ ListString docidList new ArrayList() ; int requestid Integer.parseInt(requestidStr) ; int useridInt Integer.parseInt(creatoridStr) ; if(requestidStr.equals()||requestidStrnull){ return null ; } User user new User(useridInt) ; try { RequestInfoEntity infoEntity RequestBaseBiz.loadRequestInfo(requestid); int workflowid infoEntity.getWorkflowId(); WorkflowComInfo comInfo new WorkflowComInfo(); int isbill Util.getIntValue(comInfo.getIsBill(Util.null2String(workflowid))); int formid Util.getIntValue(comInfo.getFormId(Util.null2String(workflowid))); RequestResources reqResources new RequestResources(user, infoEntity.getWorkflowId(), requestid, isbill, formid, , , , 0, 0, 0); // type:资源类型 1:相关流程 2相关文档 3相关附件 String fromSql reqResources.getReqResSqlByType(3); String querySQL select id, resname, restype, creator, creatortype, createdate, docid from fromSql order by id asc; RecordSet rs new RecordSet(); rs.executeQuery(querySQL); while (rs.next()) { int id rs.getInt(id); rs.getString(creator); //文档类型的附件查出来的是docid还要根据docid去查询docImageFileId String docid Util.null2String(rs.getInt(docid)); String imagefileid getDocImageFileIdByDocid(docid).get(imagefileid).toString(); docidList.add( docid); } // type:资源类型 1:相关流程 2相关文档 3相关附件 fromSql reqResources.getReqResSqlByType(2); querySQL select id, resname, restype, creator, creatortype, createdate, docid from fromSql order by id asc; rs.executeQuery(querySQL); while (rs.next()) { int id rs.getInt(id); rs.getString(creator); //文档类型的附件查出来的是docid还要根据docid去查询docImageFileId String docid Util.null2String(rs.getInt(docid)); String imagefileid getDocImageFileIdByDocid(docid).get(imagefileid).toString(); // imagefileidList.add( imagefileid); docidList.add( docid); } }catch (Exception e) { // writeLog(e.getMessage(), e); } return docidList ; }将docid复制后存入新的字段collectannex中前需要复制生成新的文件docidpublic String createDocument(InputStream inputStream, String filePath, String fileName, String userid, User user, String wdmc) throws Exception { // System.out.println(进入生成文档方法); String docid ; ListInputStream inputStreams new ArrayList(); byte[] content new byte[102400]; // 上传附件创建html文档 content null; try { int byteread; byte data[] new byte[1024]; // InputStreamReader reader new InputStreamReader(input,UTF-8); ByteArrayOutputStream out new ByteArrayOutputStream(); while ((byteread inputStream.read(data)) ! -1) { out.write(data, 0, byteread); out.flush(); } content out.toByteArray(); inputStream.close(); out.close(); } catch (Exception e) { e.printStackTrace(); } DocAttachment da new DocAttachment(); da.setDocid(0); da.setImagefileid(0); da.setFilecontent(org.apache.axis.encoding.Base64.encode(content)); da.setFilerealpath(filePath); da.setIszip(1); da.setFilename(fileName); da.setIsextfile(1); da.setDocfiletype(3); DocServiceImpl docService new DocServiceImpl(); DocInfo doc new DocInfo();//创建文档 doc.setDoccreaterid(Integer.parseInt(userid));// doc.setDoccreatertype(0); doc.setAccessorycount(1); doc.setMaincategory(Integer.parseInt(92));//主目录id doc.setSeccategory(Integer.parseInt(92));//子目录id doc.setOwnerid(Integer.parseInt(userid)); doc.setDocStatus(1); doc.setId(0); doc.setDocType(2); doc.setDocSubject(wdmc); doc.setDoccontent(); doc.setAttachments(new DocAttachment[]{da}); int newDocid docService.createDocByUser(doc, user); System.out.println(新文档id newDocid); return newDocid ; } public static MapString, String getImageFileidByDocid(String docid) { String sql select imagefileid,imagefilename from docimagefile where docid docid ; RecordSet rs new RecordSet(); rs.executeQuery(sql); MapString, String map new HashMap(); if (rs.next()) { map.put(imagefileid, weaver.general.Util.null2String(rs.getString(imagefileid))); map.put(imagefilename, (weaver.general.Util.null2String(rs.getString(imagefilename))).replace(/,-)); } return map; }代码中方法getImageFileidByDocid 输入文件docid获取对应的imagefileid与imagefilename作为获取新文档docid方法createDocument的参数具体通过遍历上一步获取到所有资源docid的list循环生成代码如下for(String docId : docidList){ MapString, String imageInfo getImageFileidByDocid(docId); String decodeimagefileid Util.null2String(DecodeUtil.decodeByImageFileIdByTianyu(Integer.parseInt(imageInfo.get(imagefileid)))); String imagefilename imageInfo.get(imagefilename); InputStream inputStream ImageFileManager.getInputStreamById(Integer.parseInt(decodeimagefileid)); String relatedDocid createDocument(inputStream,/app/weaver/ecology/Archives,imagefilename,creater,user,imagefilename); CollectAnnexDocidList.add(relatedDocid); }补充说明当一个
版权声明:本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

seo网站设计工具设计网站公司只找亿企邦

GetQzonehistory完整教程:5分钟学会永久备份QQ空间所有回忆 【免费下载链接】GetQzonehistory 获取QQ空间发布的历史说说 项目地址: https://gitcode.com/GitHub_Trending/ge/GetQzonehistory 还在担心QQ空间里的青春记忆会随着时间流逝而消失吗?…

张小明 2026/1/13 6:52:03 网站建设

百度做网站要多长时间装饰公司营销网站建设

如何在30分钟内成功部署BERT-Large模型:新手避坑指南 【免费下载链接】bert-large-uncased 项目地址: https://ai.gitcode.com/hf_mirrors/google-bert/bert-large-uncased 你是否对BERT模型充满好奇,却被复杂的部署过程吓退?本文将为…

张小明 2026/1/10 11:47:36 网站建设

我的家乡网站建设网站建设与管理课程代码

“AI 写论文哪个软件最好?”—— 毕业季来临,这个灵魂拷问让无数学生在五花八门的工具中迷失方向。有人被 “文献造假” 坑到重写,有人因 “查重超标” 反复返工,有人吐槽 AI 生成的内容 “像机器人背书”。经过对主流 AI 写作工具…

张小明 2026/1/8 7:30:52 网站建设

做羞羞的专门网站域名注册过后怎么使用

麒麟云打印:跨平台打印的终极解决方案 【免费下载链接】麒麟云打印windows服务端与linux客户端 麒麟云打印是一款高效便捷的跨平台打印解决方案,支持Windows服务端与Linux客户端的无缝协作。通过该工具,用户可以轻松实现不同操作系统之间的打…

张小明 2026/1/8 7:30:53 网站建设

怎么查网站的备案wordpress仿站教程2016

Windows Server 2016 系统管理与安全防护指南 1. WSUS 配置与管理 1.1 WSUS 初始同步 在完成 Windows Server Update Services 配置向导的“完成”页面后,勾选“开始初始同步”复选框并点击“完成”,WSUS 便会开始与上游服务器同步,并下载可用更新的相关信息。 1.2 配置…

张小明 2026/1/8 7:30:53 网站建设

网站开发技术可行性分析怎么写网站浮动代码

我们平时是自己再创景里的Canvas上创建一个物体 物体上有Image组件 然后把美术给的Sprite拖进去 现在这个编辑器工具 直接批量选中 一键再场景生成好物体 上面挂载了相应精灵 以下脚本赋值以后 放到 Editor文件夹下 再工具栏的tools下面就有了 using UnityEditor; using UnityE…

张小明 2026/1/12 1:45:40 网站建设