智慧保安后台管理-外网
Administrator
2022-06-10 b403ba0d0c43bd02456e6f830d7aec06f0b6885b
异常日志查询修改
3 files modified
15 ■■■■ changed files
src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml 11 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/quartz/task/Task.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/service/MyAsyncService.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/log/mapper/HandlerLogMapper.xml
@@ -8,11 +8,14 @@
        left join blade_user bu on bu.id = shl.user_id
        left join blade_dept bd on shl.dept_id = bd.id
        where 1=1
        <if test="handlerLog.deptName!=null and handlerLog.deptName!''">
            bd.dept_name like concat('%',#{handlerLog.deptName},'%')
        <if test="handlerLog.deptName!=null and handlerLog.deptName!=''">
           and bd.dept_name like concat('%',#{handlerLog.deptName},'%')
        </if>
        <if test="handlerLog.deptId!=null and handlerLog.deptId!''">
            shl.dept_id = #{handlerLog.deptId}
        <if test="handlerLog.deptId!=null and handlerLog.deptId!=''">
           and shl.dept_id = #{handlerLog.deptId}
        </if>
        <if test="handlerLog.type!=null">
           and  shl.type = #{handlerLog.type}
        </if>
        order by shl.id desc
    </select>
src/main/java/org/springblade/modules/quartz/task/Task.java
@@ -586,6 +586,8 @@
        //取出培训学校id
        //从redis 中获取用户数据
        String s = redisTemplate.opsForValue().get(uuid).toString();
        //删除
        redisTemplate.delete(uuid);
        if (null!=s && !s.equals("")) {
            //创建集合,存年龄符合要求
            List<String> ageList = new ArrayList<>();
src/main/java/org/springblade/modules/system/service/MyAsyncService.java
@@ -44,6 +44,7 @@
        JSONObject jsonObject = JSONObject.fromObject(userDTO);
        //发送请求
        try {
            System.out.println("发起异步推送qfqk----用户新增");
            HttpClientUtils.httpPostWithjson(requestUrl,jsonObject.toString());
            System.out.println("用户新增请求已发送....");
        } catch (IOException e) {
@@ -72,6 +73,7 @@
        JSONObject jsonObject = JSONObject.fromObject(userDTO);
        //发送请求
        try {
            System.out.println("发起异步推送qfqk----用户更新");
            HttpClientUtils.httpPostWithjson(requestUrl,jsonObject.toString());
        } catch (IOException e) {
            e.printStackTrace();