From a903065d0a865deec05f1e53f9c096c5e931f786 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Sun, 29 Sep 2024 17:47:51 +0800
Subject: [PATCH] 自动评价定时任务 小程序是否可见接口
---
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/wechat/CaseInfoWechatController.java | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/wechat/CaseInfoWechatController.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/wechat/CaseInfoWechatController.java
index cd86856..7833fe9 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/wechat/CaseInfoWechatController.java
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/controller/wechat/CaseInfoWechatController.java
@@ -7,7 +7,6 @@
import cn.huge.base.config.CurrentUser;
import cn.huge.module.cases.domain.dto.CaseInfoWeChatDTO;
import cn.huge.module.cases.domain.dto.RegisterSaveDTO;
-import cn.huge.module.cases.domain.po.CaseInfo;
import cn.huge.module.cases.service.CaseInfoService;
import cn.huge.module.client.api.impl.UtilsClientImpl;
import com.google.common.collect.Maps;
@@ -20,6 +19,7 @@
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
+import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
@@ -62,22 +62,10 @@
if (StringUtils.isNotBlank(process)){
terms.put("process", process);
}
- // 办理进度,1:待受理,2:办理中,3:已结案,4:不予受理
+ // 办理进度,1:待受理,2:化解中,3:已结案,4:不予受理
String processStatus = request.getParameter("processStatus");
if (StringUtils.isNotBlank(processStatus)){
- if("1".equals(processStatus)){
- List<Integer> processList = Arrays.asList(1,2);
- terms.put("processList", processList);
- }else if("2".equals(processStatus)){
- List<Integer> processList = Arrays.asList(3,4);
- terms.put("processList", processList);
- }else if("3".equals(processStatus)){
- List<Integer> processList = Arrays.asList(5,6);
- terms.put("processList", processList);
- }else{
- List<Integer> processList = Arrays.asList(7);
- terms.put("processList", processList);
- }
+ terms.put("infoProcess", processStatus);
}
return terms;
@@ -92,9 +80,8 @@
* @CurrentUser String userId,
*/
@GetMapping("/pageCard")
- public Object pageCard(@CurrentUser String userId,@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
+ public Object pageCard( @CurrentUser String userId,@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
try {
-// String userId = "2408301111391000";
Map<String, Object> terms = getParameter();
Sort sort = Sort.by(Sort.Direction.DESC, "create_time");
PageRequest pageRequest = PageRequest.of(page-1, size, sort);
@@ -109,8 +96,9 @@
/**
* 小程序端-纠纷登记-保存纠纷信息-正常案件
- * @url {ctx}/api/v1/caseInfo/caseRegister
+ * @url {ctx}/api/wechat/caseInfo/caseRegister
* @param registerSaveDTO 实体对象
+ * @CurrentUser String userId,
*/
@PostMapping("/caseRegister")
public Object caseRegister(@CurrentUser String userId, @RequestBody RegisterSaveDTO registerSaveDTO) {
@@ -135,7 +123,7 @@
/**
* 小程序端-查看案件详情
- * @url {ctx}/api/v1/caseInfo/getCaseInfo
+ * @url {ctx}/api/wechat/caseInfo/getCaseInfo
*/
@GetMapping("/getCaseInfo")
public Object getCaseInfo(@RequestParam(value = "id") String id) {
--
Gitblit v1.8.0