From d69e2171e7b9fd16da8760afe854481c49f58cd8 Mon Sep 17 00:00:00 2001 From: 20918 <2091823062@qq.com> Date: Mon, 25 Mar 2024 17:16:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/webContexts.xml | 1 + src/main/java/com/zky/manager/MenuManageServlet.java | 1 - src/main/java/com/zky/zhyw/smwj/CreateFileIdUtils.java | 10 ++++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.idea/webContexts.xml b/.idea/webContexts.xml index 1b51500..a57f926 100644 --- a/.idea/webContexts.xml +++ b/.idea/webContexts.xml @@ -4,6 +4,7 @@ diff --git a/src/main/java/com/zky/manager/MenuManageServlet.java b/src/main/java/com/zky/manager/MenuManageServlet.java index 15e71b0..68f3da3 100644 --- a/src/main/java/com/zky/manager/MenuManageServlet.java +++ b/src/main/java/com/zky/manager/MenuManageServlet.java @@ -241,7 +241,6 @@ public class MenuManageServlet extends DispatchServlet String menuid = request.getParameter("menuid"); String upMenuid = request.getParameter("upmenuid"); String type = request.getParameter("type"); - log.debug("type=========="+type); if (upMenuid.equals("")) { root.addContent(new OptionsBean("branch").toXML()); } else { diff --git a/src/main/java/com/zky/zhyw/smwj/CreateFileIdUtils.java b/src/main/java/com/zky/zhyw/smwj/CreateFileIdUtils.java index cab24dc..5bbdc69 100644 --- a/src/main/java/com/zky/zhyw/smwj/CreateFileIdUtils.java +++ b/src/main/java/com/zky/zhyw/smwj/CreateFileIdUtils.java @@ -30,7 +30,7 @@ public static String createDepartId(HttpServletRequest request,HttpServletRespon String departId=""; Login login=(Login)request.getSession().getAttribute("login"); try { - conn=DbConn.getConn();//093010 0000 + conn=DbConn.getConn();//0930 10 0000 String queryDepartId="select max(substr(departid,7,4)) departId from tab_department"; String queryFrameworkId="select frameworkid from tab_framework"; String queryAreaId="select areaid from tab_department where departid=?"; @@ -39,6 +39,12 @@ public static String createDepartId(HttpServletRequest request,HttpServletRespon HashFmlBuf areaBuf=(HashFmlBuf)JDBCUtils.query(conn, queryAreaId,new Object[]{login.getDepartid()},new HashFmlBufResultSetHandler()); String framework=frameworkBuf.fget("frameworkid",0); String area=areaBuf.fget("areaid",0); + + + String areaid = request.getParameter("qj"); + String frameworkid = request.getParameter("sj"); + + String departInfo=departBuf.fget("departId",0); String departids=""; int departno=0; @@ -62,7 +68,7 @@ public static String createDepartId(HttpServletRequest request,HttpServletRespon }else{ departids=departno+""; } - departId=framework+area+departids; //0930 10 101 + departId=frameworkid+areaid+departids; //0930 10 101 return departId; } catch (Exception e) { // TODO: handle exception