| | |
| | | import cn.huge.base.common.exception.ServiceException; |
| | | import cn.huge.base.common.utils.DateUtils; |
| | | import cn.huge.base.common.utils.IdUtils; |
| | | import cn.huge.base.common.utils.ObjectUtils; |
| | | import cn.huge.module.cases.domain.po.CaseInfo; |
| | | import cn.huge.module.client.api.impl.UtilsClientImpl; |
| | | import cn.huge.module.cases.dao.mapper.CaseWindupApplyMapper; |
| | | import cn.huge.module.cases.domain.po.CaseWindupApply; |
| | |
| | | |
| | | @Autowired |
| | | private UtilsClientImpl utilsClient; |
| | | @Autowired |
| | | private CaseInfoService caseInfoService; |
| | | |
| | | /** |
| | | * 更新对象 |
| | |
| | | try{ |
| | | QueryWrapper<CaseWindupApply> caseWindupApplyQueryWrapper = new QueryWrapper<>(); |
| | | caseWindupApplyQueryWrapper.eq("case_task_id", caseTaskId); |
| | | return mapper.selectOne(caseWindupApplyQueryWrapper); |
| | | CaseWindupApply caseWindupApply = mapper.selectOne(caseWindupApplyQueryWrapper); |
| | | if (ObjectUtils.isNotEmpty(caseWindupApply)) { |
| | | QueryWrapper<CaseInfo> caseInfoQueryWrapper =new QueryWrapper<>(); |
| | | caseInfoQueryWrapper.eq("id", caseWindupApply.getCaseId()).select("case_level"); |
| | | CaseInfo caseInfo = caseInfoService.getOne(caseInfoQueryWrapper); |
| | | caseWindupApply.setCaseLevel(caseInfo.getCaseLevel()); |
| | | } |
| | | return caseWindupApply; |
| | | }catch (Exception e){ |
| | | log.error("[CaseWindupApplyService.getByCaseTaskId]调用失败,异常信息:"+e, e); |
| | | throw new ServiceException("CaseWindupApplyService.getByCaseTaskId", e); |