forked from gzzfw/backEnd/gz-dyh

liyj
2024-09-10 abb0d631ffed8b67b0a78205ba127b46a4cb546b
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;
@@ -65,19 +65,7 @@
        // 办理进度,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);
@@ -135,7 +122,7 @@
    /**
     * 小程序端-查看案件详情
     * @url {ctx}/api/v1/caseInfo/getCaseInfo
     * @url {ctx}/api/wechat/caseInfo/getCaseInfo
     */
    @GetMapping("/getCaseInfo")
    public Object getCaseInfo(@RequestParam(value = "id") String id) {