From 978e18c8137cc2d59cc215cd99994e7a8bcf0159 Mon Sep 17 00:00:00 2001 From: huanghongfa <huanghongfa123456> Date: 星期三, 29 九月 2021 11:34:40 +0800 Subject: [PATCH] bug修复 --- springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java | 26 ++++++++++++++++---------- 1 files changed, 16 insertions(+), 10 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java index 9993159..483c107 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/service/impl/EventVisitingTasksServiceImpl.java @@ -241,22 +241,28 @@ } @Override - public R detail(Long id) throws Exception { + public R detail(Long id){ EventVisitingTasksDO eventVisitingTasksDO = eventVisitingTasksMapper.selectById(id); if (eventVisitingTasksDO != null) { EventVisitingTasksDetailsVO eventVisitingTasksDetailsVO = new EventVisitingTasksDetailsVO(); BeanUtils.copyProperties(eventVisitingTasksDO, eventVisitingTasksDetailsVO); if (StringUtils.isNotEmpty(eventVisitingTasksDO.getVisiterTele())) { - eventVisitingTasksDetailsVO - .setVisiterPhone(AESUtil.decrypt128(eventVisitingTasksDO.getVisiterTele(), aesKey)); - eventVisitingTasksDetailsVO - .setVisiterTele(AESUtil.decrypt128(eventVisitingTasksDO.getVisiterTele(), aesKey)); + try { + eventVisitingTasksDetailsVO + .setVisiterPhone(AESUtil.decrypt128(eventVisitingTasksDO.getVisiterTele(), aesKey)); + eventVisitingTasksDetailsVO + .setVisiterTele(AESUtil.decrypt128(eventVisitingTasksDO.getVisiterTele(), aesKey)); + }catch (Exception e){ + log.error("手机号码转义失败"); + } } - JSONObject jsonObject = JSONObject.parseObject(eventVisitingTasksDO.getTableContentJson()); - eventVisitingTasksDetailsVO - .setTableContentJson(JSONObject.parseObject(eventVisitingTasksDO.getTableContentJson())); - if (jsonObject != null && jsonObject.get("check") != null) { - eventVisitingTasksDetailsVO.setOption(jsonObject.get("check").toString()); + if(StringUtils.isNotEmpty(eventVisitingTasksDO.getTableContentJson())){ + JSONObject jsonObject = JSONObject.parseObject(eventVisitingTasksDO.getTableContentJson()); + eventVisitingTasksDetailsVO + .setTableContentJson(JSONObject.parseObject(eventVisitingTasksDO.getTableContentJson())); + if (jsonObject != null && jsonObject.get("check") != null) { + eventVisitingTasksDetailsVO.setOption(jsonObject.get("check").toString()); + } } // 查询资源文件 -- Gitblit v1.7.1