| | |
| | | |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | | import cn.huge.base.config.CurrentUser; |
| | | import cn.huge.module.cases.domain.po.CaseInfoUnfold; |
| | | import cn.huge.module.cases.service.CaseInfoUnfoldService; |
| | | import com.google.common.collect.Maps; |
| | |
| | | terms.put("updateStart", updateStart); |
| | | terms.put("updateEnd", updateEnd); |
| | | } |
| | | // 更新时间区间 |
| | | String acceptTimeStart = request.getParameter("acceptTimeStart"); |
| | | String acceptTimeEnd = request.getParameter("acceptTimeEnd"); |
| | | if(StringUtils.isNotBlank(acceptTimeStart) && StringUtils.isNotBlank(acceptTimeEnd)) { |
| | | terms.put("acceptTimeStart", acceptTimeStart); |
| | | terms.put("acceptTimeEnd", acceptTimeEnd); |
| | | } |
| | | // 更新时间区间 |
| | | String closeTimeStart = request.getParameter("closeTimeStart"); |
| | | String closeTimeEnd = request.getParameter("closeTimeEnd"); |
| | | if(StringUtils.isNotBlank(closeTimeStart) && StringUtils.isNotBlank(closeTimeEnd)) { |
| | | terms.put("closeTimeStart", closeTimeStart); |
| | | terms.put("closeTimeEnd", closeTimeEnd); |
| | | } |
| | | return terms; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * PC端-选择经办人 |
| | | * @url {ctx}/api/web/caseInfoUnfold/choosePrincipal? |
| | | * @param caseId 纠纷编号 |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/choosePrincipal") |
| | | public Object choosePrincipal(@RequestParam(value = "caseId") String caseId, @RequestParam(value = "userId") String userId) { |
| | | try { |
| | | service.choosePrincipal(caseId, userId); |
| | | return ReturnSucUtils.getRepInfo(); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询办理结果 |
| | | * @url {ctx}/api/web/caseInfoUnfold/getTransactResult |
| | | * @param caseId 事项ID |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/getTransactResult") |
| | | public Object getTransactResult(@RequestParam(value = "caseId") String caseId) { |
| | | try { |
| | | return ReturnSucUtils.getRepInfo(service.getTransactResult(caseId)); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | } |