From c1e9627f45dcd306150d89aff6652e42072f9994 Mon Sep 17 00:00:00 2001 From: hujl Date: Mon, 10 Jan 2022 17:08:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E6=AF=8F?= =?UTF-8?q?=E6=AC=A1=E5=8F=AC=E5=9B=9E=E5=8E=9F=E5=9B=A0=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=97=85=E6=A1=88=E5=8F=AC=E5=9B=9E=E6=97=A5?= =?UTF-8?q?=E5=BF=97SQL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/emr/controller/LogAopAction.java | 19 ++++++++-- src/main/resources/mapper/Emr_LogMapper.xml | 36 +++++++------------ .../medicalRecallDateDir/recallDateList.jsp | 14 ++++---- 3 files changed, 36 insertions(+), 33 deletions(-) diff --git a/src/main/java/com/emr/controller/LogAopAction.java b/src/main/java/com/emr/controller/LogAopAction.java index 46c6c700..d848c442 100644 --- a/src/main/java/com/emr/controller/LogAopAction.java +++ b/src/main/java/com/emr/controller/LogAopAction.java @@ -1,5 +1,6 @@ package com.emr.controller; import com.emr.annotation.OptionalLog; +import com.emr.entity.Emr_Fault_Detail; import com.emr.entity.Emr_Log; import com.emr.entity.Power_User; import com.emr.service.LogService; @@ -11,6 +12,7 @@ import org.aspectj.lang.Signature; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; +import org.aspectj.lang.reflect.CodeSignature; import org.aspectj.lang.reflect.MethodSignature; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestContextHolder; @@ -48,7 +50,7 @@ public class LogAopAction { String username = user.getUserName();//获取前面登录的用户名 logBo.setCreater(username); // 获取系统当前时间 - SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm"); + SimpleDateFormat fmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); logBo.setCreateDate(fmt.format(new Date())); // 获取访问真实IP String ipAddress = request.getHeader("x-forwarded-for"); @@ -84,6 +86,8 @@ public class LogAopAction { Object target = pjp.getTarget(); // 拦截的方法名称。当前正在执行的方法 String methodName = pjp.getSignature().getName(); + //请求类方法 + String[] paramNames=((CodeSignature)pjp.getSignature()).getParameterNames(); // 拦截的方法参数 Object[] args = pjp.getArgs(); @@ -112,9 +116,20 @@ public class LogAopAction { if (null != method) { // 获取方法(此为自定义注解) OptionalLog op = method.getAnnotation(OptionalLog.class); - // 获取注解的methods 设为执行方法 logBo.setLogContent(op.methods()); + if(op.methods().equals("病案召回")){ + for(int i=0;i \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/medicalRecallDateDir/recallDateList.jsp b/src/main/webapp/WEB-INF/views/medicalRecallDateDir/recallDateList.jsp index c8050767..543d1aad 100644 --- a/src/main/webapp/WEB-INF/views/medicalRecallDateDir/recallDateList.jsp +++ b/src/main/webapp/WEB-INF/views/medicalRecallDateDir/recallDateList.jsp @@ -119,15 +119,15 @@ <%----%> -
+ <%--
-
+
--%>
@@ -310,7 +310,7 @@ name: "" + $("#name").val(), creater:"" + $("#creater").val(), archivestate: archivestate, - state: "" + $("#state").val(), + //state: "" + $("#state").val(), startDate: $("#startDate").val(), endDate: $("#endDate").val() }; @@ -519,15 +519,15 @@ var visitId = "" + $("#visitId").val(); var name = "" + $("#name").val(); var idNo = "" + $("#idNo").val(); - var state = "" + $("#state").val(); + //var state = "" + $("#state").val(); var archivestate = "" + $("#archivestate").val(); var creater=""+$("#creater").val(); var startDate = "" + $("#startDate").val(); var endDate=""+ $("#endDate").val(); var logContent="病案召回"; window.location.href = "${path}/recallDate/exportExcel?inpNo=" + inpNo + "&visitId=" + visitId + - "&name=" + name + "&state=" + state + "&idNo=" + idNo + "&archivestate=" + archivestate+ "&creater="+creater - + "&startDate=" + startDate + "&endDate=" + endDate+ "&logContent="+logContent; + "&name=" + name + "&idNo=" + idNo + "&archivestate=" + archivestate+ "&creater="+creater + + "&startDate=" + startDate + "&endDate=" + endDate+ "&logContent="+logContent;//+ "&state=" + state });