| | |
| | | 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.dto.CaseFlowDTO; |
| | | import cn.huge.module.cases.domain.dto.TabButtonDTO; |
| | | import cn.huge.module.cases.domain.dto.TabButtonInfoDTO; |
| | |
| | | import cn.huge.module.cases.domain.po.CaseTask; |
| | | import cn.huge.module.cust.dto.CtUserDTO; |
| | | import cn.huge.module.mediate.constant.CaseBaseConsts; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.google.common.collect.Maps; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * wechat端-查询流程进度 |
| | | * @param caseId 纠纷编号 |
| | | * @return |
| | | */ |
| | | public List<CaseFlowDTO> wechatListCaseFlow(String caseId, String userId){ |
| | | try{ |
| | | // 临时给前端联调数据 |
| | | List<CaseFlowDTO> list = new ArrayList<>(); |
| | | QueryWrapper<CaseTask> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("case_id", caseId); |
| | | queryWrapper.orderByAsc("create_time"); |
| | | List<CaseTask> caseTasks = mapper.selectList(queryWrapper); |
| | | if(ObjectUtils.isNotEmpty(caseTasks)){ |
| | | for (CaseTask caseTask : caseTasks) { |
| | | CaseFlowDTO caseFlowDTO = new CaseFlowDTO(); |
| | | BeanUtils.copyProperties(caseTask, caseFlowDTO); |
| | | list.add(caseFlowDTO); |
| | | } |
| | | } |
| | | return list; |
| | | }catch (Exception e){ |
| | | log.error("[CaseTaskService.wechatListCaseFlow]调用失败,异常信息:"+e, e); |
| | | throw new ServiceException("CaseTaskService.wechatListCaseFlow", e); |
| | | } |
| | | } |
| | | } |