Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
d3ac3728
Commit
d3ac3728
authored
Jan 29, 2021
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加缺失的字段
parent
68b961f2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
12 deletions
+15
-12
src/main/java/com/founder/controller/XxcxController.java
+10
-8
src/main/java/com/founder/service/XxcxService.java
+1
-0
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
+2
-2
src/main/resources/application.yml
+1
-1
src/main/resources/mybatis/mapper/XxcxDaoMapper.xml
+1
-1
No files found.
src/main/java/com/founder/controller/XxcxController.java
View file @
d3ac3728
...
...
@@ -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
(
tbStAsj
List
);
reslt
.
setData
(
tbStAsj
View1
);
reslt
.
setMsg
(
"案件信息查询失败\n"
+
e
.
getMessage
());
reslt
.
setStatus
(
"error"
);
e
.
printStackTrace
();
...
...
src/main/java/com/founder/service/XxcxService.java
View file @
d3ac3728
...
...
@@ -7,4 +7,5 @@ import java.util.List;
public
interface
XxcxService
{
public
List
<
TbStAsjView
>
queryTbStAsj
(
String
asjbh
,
String
sfzh
);
public
TbStAsjView
queryTbStAsjByAsjbh
(
String
asjbh
);
}
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
View file @
d3ac3728
...
...
@@ -27,8 +27,8 @@ public class XxcxServiceImpl implements XxcxService {
}
return
tbStAsjViews
;
}
p
rivate
TbStAsjView
queryTbStAsjByAsjbh
(
String
asjbh
){
@Override
p
ublic
TbStAsjView
queryTbStAsjByAsjbh
(
String
asjbh
){
TbStAsjView
tbStAsjView
=
null
;
TbStAsj
tbStAsj
=
xxcxDao
.
queryTbStAsjByAsjbh
(
asjbh
);
if
(
tbStAsj
!=
null
){
...
...
src/main/resources/application.yml
View file @
d3ac3728
...
...
@@ -26,4 +26,4 @@ ssdw: 140000000000
server
:
port
:
9061
xxcx
:
author
:
9b6c45cfcf3a4a629e3ed90fa3e5d058
author
:
Basic
9b6c45cfcf3a4a629e3ed90fa3e5d058
src/main/resources/mybatis/mapper/XxcxDaoMapper.xml
View file @
d3ac3728
<?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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment