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
49236f94
Commit
49236f94
authored
Dec 07, 2022
by
panaichi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增人查车辆接口
parent
fc23343f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
src/main/java/com/founder/controller/XxcxController.java
+38
-0
src/main/java/com/founder/service/XxcxService.java
+2
-0
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
+12
-0
src/main/java/com/founder/util/KtInterfaceUtils.java
+1
-0
No files found.
src/main/java/com/founder/controller/XxcxController.java
View file @
49236f94
...
@@ -654,4 +654,42 @@ public class XxcxController {
...
@@ -654,4 +654,42 @@ public class XxcxController {
}
}
return
result
;
return
result
;
}
}
//通过身份证号查询车辆信息
@RequestMapping
(
"/getClxxBySfzh"
)
public
Result
getClxxBySfzh
(
HttpServletRequest
requestIp
,
Params
params
){
Result
result
=
new
Result
();
String
xxscPdbz
=
"1"
;
try
{
HttpServletRequest
request
=
IpADdress
.
getRequest
();
String
header
=
request
.
getHeader
(
"founder.authorization"
);
if
(
StringUtils
.
isEmpty
(
header
)
||
!
hmAuthor
.
equals
(
header
)){
result
.
setData
(
new
ArrayList
<>());
result
.
setMsg
(
"没有授权码或者授权码验证未通过,不能查询!"
);
result
.
setStatus
(
"fail"
);
return
result
;
}
String
sfzh
=
params
.
getSfzh
();
if
(
StringUtils
.
isEmpty
(
sfzh
)){
result
.
setStatus
(
"error"
);
result
.
setMsg
(
"请输入身份证号"
);
return
result
;
}
String
data
=
xxcxService
.
getClxx
(
sfzh
);
result
.
setData
(
data
);
result
.
setMsg
(
"人查车辆信息查询成功"
);
result
.
setStatus
(
"success"
);
xxscPdbz
=
"0"
;
}
catch
(
Exception
e
){
result
.
setData
(
params
);
result
.
setMsg
(
"人查车辆信息查询失败\n"
+
e
.
getMessage
());
result
.
setStatus
(
"error"
);
e
.
printStackTrace
();
}
finally
{
sysGnsyrzOpenApiService
.
insertGNSYRZOPENAPI
(
"01"
,
"信息查询-人查车辆信息查询"
,
LogsUtil
.
getNotEmptyFiled
(
params
).
toString
(),
""
,
""
,
"460000000000"
,
"海南刑专电诈骗"
,
""
,
ipADressLock
.
getAddressIp
(
requestIp
),
"1"
,
xxscPdbz
);
}
return
result
;
}
}
}
src/main/java/com/founder/service/XxcxService.java
View file @
49236f94
...
@@ -36,5 +36,7 @@ public interface XxcxService {
...
@@ -36,5 +36,7 @@ public interface XxcxService {
String
getZhgcxx
(
String
cph
)
throws
Exception
;
String
getZhgcxx
(
String
cph
)
throws
Exception
;
//卡口编号过车信息查询
//卡口编号过车信息查询
String
getKkxx
(
String
kkbh
,
String
dateStr
)
throws
Exception
;
String
getKkxx
(
String
kkbh
,
String
dateStr
)
throws
Exception
;
//通过身份证号查询车辆信息
String
getClxx
(
String
sfzh
)
throws
Exception
;
}
}
src/main/java/com/founder/service/impl/XxcxServiceImpl.java
View file @
49236f94
...
@@ -312,4 +312,16 @@ public class XxcxServiceImpl implements XxcxService {
...
@@ -312,4 +312,16 @@ public class XxcxServiceImpl implements XxcxService {
return
resultJson
;
return
resultJson
;
}
}
@Override
public
String
getClxx
(
String
sfzh
)
throws
Exception
{
JSONObject
ret
=
new
JSONObject
();
try
{
ret
.
put
(
"expr"
,
"JDCSYR_JTGLYWDXSFZMHM='"
+
sfzh
+
"'"
);
}
catch
(
JSONException
e
)
{
e
.
printStackTrace
();
}
String
resultJson
=
KtInterfaceUtils
.
getDateByJsonParam
(
KtInterfaceUtils
.
RCCL
,
ret
.
toString
());
return
resultJson
;
}
}
}
src/main/java/com/founder/util/KtInterfaceUtils.java
View file @
49236f94
...
@@ -26,6 +26,7 @@ public class KtInterfaceUtils {
...
@@ -26,6 +26,7 @@ public class KtInterfaceUtils {
public
static
final
String
HCDP
=
"00456"
;
//火车订票查询
public
static
final
String
HCDP
=
"00456"
;
//火车订票查询
public
static
final
String
GKCX
=
"00457"
;
//港口出行查询
public
static
final
String
GKCX
=
"00457"
;
//港口出行查询
public
static
final
String
KYCX
=
"00458"
;
//客运出行查询
public
static
final
String
KYCX
=
"00458"
;
//客运出行查询
public
static
final
String
RCCL
=
"00460"
;
//机动车-人查车辆
public
static
final
String
CLJGKKXX
=
"00463"
;
//车辆经过卡口过车信息查询
public
static
final
String
CLJGKKXX
=
"00463"
;
//车辆经过卡口过车信息查询
public
static
final
String
CLJGKKZHGCXX
=
"00464"
;
//车辆经卡口最后过车信息查询
public
static
final
String
CLJGKKZHGCXX
=
"00464"
;
//车辆经卡口最后过车信息查询
public
static
final
String
KKXX
=
"00465"
;
//卡口编号过车信息查询
public
static
final
String
KKXX
=
"00465"
;
//卡口编号过车信息查询
...
...
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