平台导出-优化
parent
339ad1f58c
commit
d3724eec04
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.core.api.iservice.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLogRoleOperate;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 角色变更操作日志
|
||||
* @Reference :
|
||||
* @Author : yujija
|
||||
* @CreateDate : 2022-12-09 15:21
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ISysLogRoleOperateService {
|
||||
|
||||
/**
|
||||
* 查询指定时间范围内的日志信息
|
||||
* @param startDatetime
|
||||
* @param endDatetime
|
||||
* @return
|
||||
*/
|
||||
List<SysLogRoleOperate> findLogsBetweenDatetime(String startDatetime, String endDatetime);
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package cn.estsh.i3plus.core.api.iservice.busi;
|
||||
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLogUserStatus;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 账号状态变更日志
|
||||
* @Reference :
|
||||
* @Author : yujia
|
||||
* @CreateDate : 2022-12-09 15:20
|
||||
* @Modify:
|
||||
**/
|
||||
public interface ISysLogUserStatusService {
|
||||
|
||||
/**
|
||||
* 查询指定时间范围内的日志信息
|
||||
* @param startDatetime
|
||||
* @param endDatetime
|
||||
* @return
|
||||
*/
|
||||
List<SysLogUserStatus> findLogsBetweenDatetime(String startDatetime, String endDatetime);
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
||||
|
||||
import cn.estsh.i3plus.core.api.iservice.busi.ISysLogRoleOperateService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLogRoleOperate;
|
||||
import cn.estsh.i3plus.pojo.platform.repository.SysLogRoleOperateRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author :
|
||||
* @CreateDate : 2022-12-09 15:26
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
public class SysLogRoleOperateService implements ISysLogRoleOperateService {
|
||||
|
||||
@Autowired
|
||||
private SysLogRoleOperateRepository sysLogRoleOperateRDao;
|
||||
|
||||
/**
|
||||
* 根据时间区间查询用户角色操作变更日志
|
||||
* @param startDatetime
|
||||
* @param endDatetime
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<SysLogRoleOperate> findLogsBetweenDatetime(String startDatetime, String endDatetime) {
|
||||
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
|
||||
DdlPreparedPack.timeBuilder(startDatetime, endDatetime, "createDatetime", true, true, packBean);
|
||||
return sysLogRoleOperateRDao.findByHqlWhere(packBean);
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.core.apiservice.serviceimpl.busi;
|
||||
|
||||
import cn.estsh.i3plus.core.api.iservice.busi.ISysLogUserStatusService;
|
||||
import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
||||
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
||||
import cn.estsh.i3plus.pojo.platform.bean.SysLogUserStatus;
|
||||
import cn.estsh.i3plus.pojo.platform.repository.SysLogUserStatusRepository;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : 账号状态变更日志
|
||||
* @Reference :
|
||||
* @Author : yujia
|
||||
* @CreateDate : 2022-12-09 15:26
|
||||
* @Modify:
|
||||
**/
|
||||
@Service
|
||||
public class SysLogUserStatusService implements ISysLogUserStatusService {
|
||||
|
||||
@Autowired
|
||||
private SysLogUserStatusRepository sysLogUserStatusRDao;
|
||||
|
||||
/**
|
||||
* 根据时间区间查询账号状态变更日志
|
||||
* @param startDatetime
|
||||
* @param endDatetime
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<SysLogUserStatus> findLogsBetweenDatetime(String startDatetime, String endDatetime) {
|
||||
DdlPackBean packBean = DdlPackBean.getDdlPackBean();
|
||||
DdlPreparedPack.timeBuilder(startDatetime, endDatetime, "createDatetime", true, true, packBean);
|
||||
return sysLogUserStatusRDao.findByHqlWhere(packBean);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue