Commit d3ac3728 by 雷紫添

添加缺失的字段

parent 68b961f2
......@@ -7,7 +7,9 @@ import com.founder.service.XxcxService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
......@@ -15,7 +17,7 @@ import java.util.ArrayList;
import java.util.List;
@RestController
@RequestMapping("/xxcx")
@RequestMapping(value="/xxcx",produces = "application/json; charset=utf-8")
public class XxcxController {
@Value("${xxcx.author}")
......@@ -23,9 +25,9 @@ public class XxcxController {
@Autowired
private XxcxService xxcxService;
@ResponseBody
@RequestMapping("/ajxxcx")
public Result queryAsjxx(String asjbh,String zjhm){
public Result queryAsjxx(@RequestBody TbStAsjView tbStAsjView ){
Result reslt = new Result();
HttpServletRequest request = IpADdress.getRequest();
......@@ -36,15 +38,15 @@ public class XxcxController {
reslt.setStatus("fail");
return reslt;
}
List<TbStAsjView> tbStAsjList = new ArrayList<>();
TbStAsjView tbStAsjView1=new TbStAsjView();
try {
tbStAsjList = xxcxService.queryTbStAsj(asjbh,zjhm);
reslt.setData(tbStAsjList);
tbStAsjView1 = xxcxService.queryTbStAsjByAsjbh(tbStAsjView.getAsjbh());
reslt.setData(tbStAsjView1 );
reslt.setMsg("案件信息查询成功");
reslt.setStatus("success");
} catch (Exception e) {
reslt.setData(tbStAsjList);
reslt.setData(tbStAsjView1);
reslt.setMsg("案件信息查询失败\n"+e.getMessage());
reslt.setStatus("error");
e.printStackTrace();
......
......@@ -7,4 +7,5 @@ import java.util.List;
public interface XxcxService {
public List<TbStAsjView> queryTbStAsj(String asjbh,String sfzh);
public TbStAsjView queryTbStAsjByAsjbh(String asjbh);
}
......@@ -27,8 +27,8 @@ public class XxcxServiceImpl implements XxcxService {
}
return tbStAsjViews;
}
private TbStAsjView queryTbStAsjByAsjbh(String asjbh){
@Override
public TbStAsjView queryTbStAsjByAsjbh(String asjbh){
TbStAsjView tbStAsjView = null;
TbStAsj tbStAsj = xxcxDao.queryTbStAsjByAsjbh(asjbh);
if(tbStAsj!=null){
......
......@@ -26,4 +26,4 @@ ssdw: 140000000000
server:
port: 9061
xxcx:
author: 9b6c45cfcf3a4a629e3ed90fa3e5d058
author: Basic 9b6c45cfcf3a4a629e3ed90fa3e5d058
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper>
<mapper namespace="com.founder.dao.XxcxDao">
<select id="queryTbStAsjByAsjbh" parameterType="string" resultType="com.founder.model.TbStAsj">
select ASJBH as asjbh,
JJBH as jjbh,
......
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