Commit 7cf16faf by wang_jiaxing

将证件核查和车牌核查的涉案信息接口单独拆分

parent bfa6a434
package org.springblade.founder.ydjwhc.controller;
import com.alibaba.fastjson.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.springblade.founder.utils.R;
import org.springblade.founder.ydjwhc.entity.TbStAppRxhcrw;
......@@ -11,6 +12,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;
@RestController
......@@ -112,4 +114,19 @@ public class BjHcController {
}
}
@PostMapping("/getSaxx")
public R getSaxx(String hm, String type){
try {
if (StringUtils.isEmpty(hm) || StringUtils.isEmpty(type)){
return R.error("号码或类型不能为空");
}
Map<String, Object> resultMap = bjHcService.getSaxx(hm, type, new HashMap<>());
return R.ok().data(resultMap);
} catch (Exception e){
e.printStackTrace();
return R.error(e.getMessage());
}
}
}
......@@ -4,6 +4,7 @@ import org.springblade.founder.ydjwhc.entity.TbStAppRxhcrw;
import org.springframework.web.multipart.MultipartFile;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutionException;
......@@ -34,4 +35,12 @@ public interface BjHcService {
* 2021/12/16 19:13
*/
Map<String, Object> znjsByHm(String hm) throws Exception;
/**
* getSaxx 查询涉案信息
* @return java.util.Map<java.lang.String,java.lang.Object>
* @author lystar
* 2022/1/17 15:18
*/
Map<String, Object> getSaxx(String hm, String type, HashMap<String, Object> resultMap);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment