Browse Source

Merge remote-tracking branch 'origin/yantai_zhengwu_master' into yantai_zhengwu_master

dev
yinzuomei 2 years ago
parent
commit
6d3496d78a
  1. 7
      epmet-admin/epmet-admin-server/src/main/java/com/epmet/mq/listener/listener/AuthOperationLogListener.java
  2. 4
      epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml

7
epmet-admin/epmet-admin-server/src/main/java/com/epmet/mq/listener/listener/AuthOperationLogListener.java

@ -1,6 +1,7 @@
package com.epmet.mq.listener.listener; package com.epmet.mq.listener.listener;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.epmet.auth.constants.AuthOperationConstants;
import com.epmet.auth.constants.AuthOperationEnum; import com.epmet.auth.constants.AuthOperationEnum;
import com.epmet.commons.rocketmq.constants.MQUserPropertys; import com.epmet.commons.rocketmq.constants.MQUserPropertys;
import com.epmet.commons.rocketmq.messages.LoginMQMsg; import com.epmet.commons.rocketmq.messages.LoginMQMsg;
@ -77,7 +78,11 @@ public class AuthOperationLogListener implements MessageListenerConcurrently {
logEntity.setOperatorName(operatorInfo.getName()); logEntity.setOperatorName(operatorInfo.getName());
logEntity.setOperatorMobile(operatorInfo.getMobile()); logEntity.setOperatorMobile(operatorInfo.getMobile());
logEntity.setOperatingTime(msgObj.getLoginTime()); logEntity.setOperatingTime(msgObj.getLoginTime());
logEntity.setContent("成功登录系统"); if(AuthOperationConstants.LOGIN.equals(logEntity.getType())){
logEntity.setContent("成功登录系统");
}else{
logEntity.setContent("成功退出系统");
}
DistributedLock distributedLock = null; DistributedLock distributedLock = null;
RLock lock = null; RLock lock = null;

4
epmet-module/gov-project/gov-project-server/src/main/resources/mapper/IcEventDao.xml

@ -28,6 +28,7 @@
<if test="orgType == 'grid'"> <if test="orgType == 'grid'">
and e.GRID_ID=#{orgId} and e.GRID_ID=#{orgId}
</if> </if>
and e.DEL_FLAG = '0'
and CUSTOMER_ID = #{customerId} and CUSTOMER_ID = #{customerId}
and HAPPEN_TIME >= #{queryStartTime} and HAPPEN_TIME >= #{queryStartTime}
and HAPPEN_TIME <![CDATA[<=]]> #{queryEndTime} and HAPPEN_TIME <![CDATA[<=]]> #{queryEndTime}
@ -81,7 +82,8 @@
select date_format(e.HAPPEN_TIME, '%Y-%m') monthName select date_format(e.HAPPEN_TIME, '%Y-%m') monthName
from ic_event e from ic_event e
<where> <where>
e.HAPPEN_TIME >= date_format(#{queryStartTime}, '%Y-%m') e.DEL_FLAG = '0'
and e.HAPPEN_TIME >= date_format(#{queryStartTime}, '%Y-%m')
and e.HAPPEN_TIME <![CDATA[ <= ]]> date_format(#{queryEndTime}, '%Y-%m') and e.HAPPEN_TIME <![CDATA[ <= ]]> date_format(#{queryEndTime}, '%Y-%m')
<if test="orgType == 'grid'"> <if test="orgType == 'grid'">
and e.GRID_ID =#{orgId} and e.GRID_ID =#{orgId}

Loading…
Cancel
Save