| | |
| | | #refreshToken过期时间:13小时,比token时间长一点 |
| | | expire-time: 46800000 |
| | | #不进行token拦截 |
| | | auth-skip-urls: /dyh-cust/api/web/ctAccount/login,/dyh-sys/api/v1/sync/universalSync,/dyh-utils/api/web/caseUtils/getNewTimeId,/dyh-utils/api/web/caseUtils/getNewTimeCaseId,/dyh-sys/api/web/fileInfo/show,/dyh-sys/api/web/fileInfo/down,/dyh-sys/api/wechat/fileInfo/show,/dyh-sys/api/wechat/fileInfo/down,/dyh-cust/api/wechat/paAccount/empower,/dyh-cust/api/web/ctAccount/gridLogin |
| | | auth-skip-urls: /dyh-cust/api/web/ctAccount/login,/dyh-sys/api/v1/sync/universalSync,/dyh-utils/api/web/caseUtils/getNewTimeId,/dyh-utils/api/web/caseUtils/getNewTimeCaseId,/dyh-sys/api/web/fileInfo/show,/dyh-sys/api/web/fileInfo/down,/dyh-sys/api/wechat/fileInfo/show,/dyh-sys/api/wechat/fileInfo/down,/dyh-cust/api/wechat/paAccount/empower,/dyh-cust/api/web/ctAccount/gridLogin,/dyh-mediate/api/web/caseInfo/exportQueryAll |
| | | |
| | |
| | | for (CasePageDTO casePageDTO : caseInfoPage.getContent()) { |
| | | CaseInfoWeExcelDTO caseInfoWeExcelDTO = new CaseInfoWeExcelDTO(); |
| | | BeanUtils.copyProperties(casePageDTO,caseInfoWeExcelDTO); |
| | | caseInfoWeExcelDTO.setCloseTime(DateUtils.DateToString(casePageDTO.getCloseTime(), DateUtils.YYYY_MM_DD)); |
| | | if(ObjectUtils.isNotEmpty(casePageDTO.getPlaintiffList())){ |
| | | StringBuffer sb = new StringBuffer(); |
| | | for (CasePersonWeDTO casePersonWeDTO : casePageDTO.getPlaintiffList()) { |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | </resultMap> |
| | | <resultMap id="dataResult-all" type="cn.huge.module.cases.domain.dto.CasePageDTO"> |
| | | |
| | | <result property="id" column="id"/> |
| | | <result property="status" column="status"/> |
| | | <result property="statusName" column="status_name"/> |
| | | <result property="canal" column="canal"/> |
| | | <result property="canalName" column="canal_name"/> |
| | | <result property="caseLevel" column="case_level"/> |
| | | <result property="caseType" column="case_type"/> |
| | | <result property="caseTypeName" column="case_type_name"/> |
| | | <result property="inputUnitId" column="input_unit_id"/> |
| | | <result property="inputUnitName" column="input_unit_name"/> |
| | | <result property="mediResult" column="medi_result"/> |
| | | <result property="mediResultName" column="medi_result_name"/> |
| | | <result property="mediateDeptId" column="mediate_dept_id"/> |
| | | <result property="mediateDeptName" column="mediate_dept_name"/> |
| | | <result property="assistUnitId" column="assist_unit_id"/> |
| | | <result property="assistUnitName" column="assist_unit_name"/> |
| | | <result property="closeTime" column="close_time"/> |
| | | <result property="agreeType" column="agree_type"/> |
| | | <result property="agreeTypeName" column="agree_type_name"/> |
| | | <result property="agreeContent" column="agree_content"/> |
| | | </resultMap> |
| | | <!-- 表 --> |
| | | <sql id='table-name'>dyh_case_info</sql> |
| | |
| | | a.case_type_name, |
| | | a.input_unit_id, |
| | | a.input_unit_name, |
| | | b.medi_result, |
| | | b.medi_result_name, |
| | | b.mediate_dept_id, |
| | | b.mediate_dept_name |
| | | b.mediate_dept_name, |
| | | b.assist_unit_id, |
| | | b.assist_unit_name, |
| | | b.close_time, |
| | | b.agree_type, |
| | | b.agree_type_name, |
| | | b.agree_content |
| | | </sql> |
| | | <!-- 字段 --> |
| | | <sql id="column-part"> |
| | |
| | | private String isEvaluate; |
| | | |
| | | /** |
| | | * 达成协议类型 |
| | | */ |
| | | private String agreeType; |
| | | |
| | | /** |
| | | * 达成协议类型名称 |
| | | */ |
| | | private String agreeTypeName; |
| | | |
| | | /** |
| | | * 已达成协议 |
| | | */ |
| | | private String agreeContent; |
| | | |
| | | /** |
| | | * 申请人集合 |
| | | * */ |
| | | private List<CasePersonWechatDTO> plaintiffList; |
| | |
| | | private Integer caseLevel; |
| | | @ExcelProperty(value="纠纷类型") |
| | | private String caseTypeName; |
| | | @ExcelProperty(value="调解结果") |
| | | private String mediResultName; |
| | | @ExcelProperty(value="实际调解部门") |
| | | @ExcelProperty(value="承办部门") |
| | | private String mediateDeptName; |
| | | @ExcelProperty(value="登记组织") |
| | | private String inputUnitName; |
| | | @ExcelProperty(value="配合部门") |
| | | private String assistUnitName; |
| | | @ExcelProperty(value="化解结果") |
| | | private String mediResultName; |
| | | @ExcelProperty(value="办结时间") |
| | | private String closeTime; |
| | | @ExcelProperty(value="申请人") |
| | | private String plaintiffStr; |
| | | @ExcelProperty(value="被申请人") |
| | | private String defendantStr; |
| | | @ExcelProperty(value="登记机构") |
| | | private String inputUnitName; |
| | | } |
| | |
| | | package cn.huge.module.cases.domain.dto; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | * 登记组织名称 |
| | | */ |
| | | private String inputUnitName; |
| | | /** |
| | | * 办结时间 |
| | | */ |
| | | private Date closeTime; |
| | | /** |
| | | * 达成协议类型 |
| | | */ |
| | | private String agreeType; |
| | | |
| | | /** |
| | | * 达成协议类型名称 |
| | | */ |
| | | private String agreeTypeName; |
| | | |
| | | /** |
| | | * 已达成协议 |
| | | */ |
| | | private String agreeContent; |
| | | |
| | | /** |
| | | * 申请人集合 |
| | |
| | | */ |
| | | private String evaluateUserName; |
| | | |
| | | |
| | | |
| | | /** |
| | | * 流程步骤 1-提交申请,2-事项办理,3-事项办结,4-事项评价 |
| | | * */ |
| | | private Integer processStep; |
| | | } |
| | |
| | | caseInfoWeChatDTO.setMediResultName(caseInfoUnfold.getMediResultName()); |
| | | caseInfoWeChatDTO.setMediateDeptId(caseInfoUnfold.getMediateDeptId()); |
| | | caseInfoWeChatDTO.setMediateDeptName(caseInfoUnfold.getMediateDeptName()); |
| | | caseInfoWeChatDTO.setAgreeType(caseInfoUnfold.getAgreeType()); |
| | | caseInfoWeChatDTO.setAgreeTypeName(caseInfoUnfold.getAgreeTypeName()); |
| | | caseInfoWeChatDTO.setAgreeContent(caseInfoUnfold.getAgreeContent()); |
| | | } |
| | | |
| | | QueryWrapper<CasePerson> personWrapper1 = new QueryWrapper<>(); |
| | |
| | | * @return |
| | | */ |
| | | public List<WechatCaseFlowDTO> wechatListCaseFlow(String caseId, String userId){ |
| | | try{ |
| | | // 封装办理流程 |
| | | List<WechatCaseFlowDTO> list = new ArrayList<>(); |
| | | CaseInfo caseInfo = caseInfoService.getById(caseId); |
| | |
| | | tjsq.setVisitWayName(caseInfo.getVisitWayName()); |
| | | tjsq.setShowTime(caseInfo.getCreateTime()); |
| | | tjsq.setCaseTypeName(caseInfo.getCaseTypeName()); |
| | | tjsq.setProcessStep(1); |
| | | list.add(tjsq); |
| | | // 办理中 |
| | | if (caseInfo.getInfoProcess() == CaseInfoProcessBaseConstsEnum.CASE_INFO_PROCESS_2.getIndex()){ |
| | | CaseInfoUnfold caseInfoUnfold = caseInfoUnfoldService.getById(caseId); |
| | | // 办理中 |
| | | if (caseInfo.getInfoProcess() >= CaseInfoProcessBaseConstsEnum.CASE_INFO_PROCESS_2.getIndex()){ |
| | | WechatCaseFlowDTO sxbl = new WechatCaseFlowDTO(); |
| | | sxbl.setProcessName("事项办理"); |
| | | sxbl.setShowTime(caseInfoUnfold.getAcceptTime()); |
| | | sxbl.setMediateUnitName(caseInfoUnfold.getMediateUnitName()); |
| | | sxbl.setProcessStep(2); |
| | | list.add(sxbl); |
| | | } |
| | | // 已结案 |
| | | if (caseInfo.getInfoProcess() == CaseInfoProcessBaseConstsEnum.CASE_INFO_PROCESS_2.getIndex()){ |
| | | CaseInfoUnfold caseInfoUnfold = caseInfoUnfoldService.getById(caseId); |
| | | if (caseInfo.getInfoProcess() >= CaseInfoProcessBaseConstsEnum.CASE_INFO_PROCESS_3.getIndex()){ |
| | | WechatCaseFlowDTO sxbj = new WechatCaseFlowDTO(); |
| | | sxbj.setProcessName("事项办结"); |
| | | sxbj.setShowTime(caseInfoUnfold.getCloseTime()); |
| | | sxbj.setMediResult(caseInfoUnfold.getMediResult()); |
| | | sxbj.setMediResultName(caseInfoUnfold.getMediResultName()); |
| | | sxbj.setProcessStep(3); |
| | | list.add(sxbj); |
| | | } |
| | | // 评价 |
| | |
| | | sxpj.setEvaluateUserName(caseEvaluate.getEvaluateUserName()); |
| | | sxpj.setEvaluateGrade(caseEvaluate.getEvaluateGrade()); |
| | | sxpj.setEvaluateRemark(caseEvaluate.getEvaluateRemark()); |
| | | sxpj.setProcessStep(4); |
| | | list.add(sxpj); |
| | | } |
| | | return list; |
| | | }catch (Exception e){ |
| | | log.error("[CaseTaskService.wechatListCaseFlow]调用失败,异常信息:"+e, e); |
| | | throw new ServiceException("CaseTaskService.wechatListCaseFlow", e); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | service.deleteFileById(id); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | log.error("controller接口[FileInfoWechatController.deleteFileById]请求异常:"+e, e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.listByMainId(mainId)); |
| | | } catch (Exception e) { |
| | | log.error("controller接口[FileInfoWechatController.listByMainId]请求异常:"+e, e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据多个所属编号查询附件 |
| | | * @url {ctx}/api/wechat/fileInfo/listByMainIdAndType?mainId=&ownerType= |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/listByMainIdAndType") |
| | | public Object listByMainIdAndType(@RequestParam(value = "mainId") String mainId,@RequestParam(value = "ownerType") String ownerType) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.listByMainIdAndType(mainId,ownerType)); |
| | | } catch (Exception e) { |
| | | log.error("controller接口[FileInfoWechatController.listByMainIdAndType]请求异常:"+e, e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | |
| | | * @return List |
| | | */ |
| | | public List<FileInfoBaseDTO> listByMainId(String mainId){ |
| | | try { |
| | | List<FileInfoBaseDTO> fileList = new ArrayList<>(); |
| | | Map<String, Object> terms = new HashMap<>(); |
| | | terms.put("mainId", mainId); |
| | |
| | | } |
| | | } |
| | | return fileList; |
| | | }catch (Exception e){ |
| | | log.error("[FileInfoService.listByMainId]调用失败,异常信息:"+e, e); |
| | | throw new ServiceException("FileInfoService.listByMainId", e); |
| | | } |
| | | |
| | | /** |
| | | * 根据多个所属编号查询附件 |
| | | * @param mainId,ownerType |
| | | * @return List |
| | | */ |
| | | public List<FileInfoBaseDTO> listByMainIdAndType(String mainId,String ownerType){ |
| | | List<FileInfoBaseDTO> fileList = new ArrayList<>(); |
| | | Map<String, Object> terms = new HashMap<>(); |
| | | terms.put("mainId", mainId); |
| | | terms.put("types", ownerType); |
| | | List<FileInfo> fileInfoList = mapper.listFile(terms); |
| | | if(CollectionUtils.isNotEmpty(fileInfoList)){ |
| | | for (FileInfo fileInfo : fileInfoList) { |
| | | FileInfoBaseDTO fileInfoBaseDTO = new FileInfoBaseDTO(); |
| | | BeanUtils.copyProperties(fileInfo, fileInfoBaseDTO); |
| | | fileInfoBaseDTO.setOwnerCatName(FileOwnerTypeBaseEnum.getDes(fileInfo.getOwnerCat())); |
| | | fileInfoBaseDTO.setOwnerTypeName(FileOwnerTypeBaseEnum.getDes(fileInfo.getOwnerType())); |
| | | fileList.add(fileInfoBaseDTO); |
| | | } |
| | | |
| | | } |
| | | return fileList; |
| | | } |
| | | |
| | | } |