Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
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
杨亮
hnxtbaboot
Commits
6fc591b0
Commit
6fc591b0
authored
Jul 27, 2021
by
liulianglang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
虹膜修改
parent
97edd7cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
15 deletions
+25
-15
src/main/java/com/founder/controller/HmCjController.java
+22
-15
src/main/java/com/founder/model/TbStHm.java
+3
-0
No files found.
src/main/java/com/founder/controller/HmCjController.java
View file @
6fc591b0
...
...
@@ -16,6 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Controller
;
import
org.springframework.ui.Model
;
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.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
...
@@ -445,14 +446,15 @@ public class HmCjController {
*/
@RequestMapping
(
"/irisking/collect/result"
)
@ResponseBody
private
Map
<
String
,
String
>
saveHbhmxx
(
TbStHm
tbStHm
,
HttpServletRequest
request
)
{
private
Map
<
String
,
String
>
saveHbhmxx
(
@RequestBody
TbStHm
tbStHm
,
HttpServletRequest
request
)
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
String
rybh
=
request
.
getParameter
(
"personCode"
);
//String rybh = request.getParameter("personCode");
String
rybh
=
tbStHm
.
getPersonCode
();
if
(
rybh
!=
null
&&!
""
.
equals
(
rybh
)){
tbStHm
.
setRybh
(
rybh
);
}
String
cjjg
=
request
.
getParameter
(
"cjjg"
);
String
xxms
=
request
.
getParameter
(
"xxms"
);
//
String cjjg = request.getParameter("cjjg");
//
String xxms = request.getParameter("xxms");
String
xm
=
request
.
getParameter
(
"xm"
);
if
(
xm
!=
null
&&!
""
.
equals
(
xm
)){
tbStHm
.
setXm
(
xm
);
...
...
@@ -461,15 +463,15 @@ public class HmCjController {
if
(
zjhm
!=
null
&&!
""
.
equals
(
zjhm
)){
tbStHm
.
setGmsfhm
(
zjhm
);
}
String
cjbh
=
request
.
getParameter
(
"cjbh"
);
String
sbbh
=
request
.
getParameter
(
"sbbh"
);
if
(
sbbh
!=
null
&&!
""
.
equals
(
sbbh
)){
tbStHm
.
setSbbh
(
sbbh
);
}
String
sbcsdm
=
request
.
getParameter
(
"sbcsdm"
);
if
(
sbcsdm
!=
null
&&!
""
.
equals
(
sbcsdm
)){
tbStHm
.
setSbcsdm
(
sbcsdm
);
}
//
String cjbh = request.getParameter("cjbh");
//
String sbbh = request.getParameter("sbbh");
//
if(sbbh!=null&&!"".equals(sbbh)){
//
tbStHm.setSbbh(sbbh);
//
}
//
String sbcsdm = request.getParameter("sbcsdm");
//
if(sbcsdm!=null&&!"".equals(sbcsdm)){
//
tbStHm.setSbcsdm(sbcsdm);
//
}
String
hmcjsbxhdm
=
request
.
getParameter
(
"hmcjsbxhdm"
);
if
(
hmcjsbxhdm
!=
null
&&!
""
.
equals
(
hmcjsbxhdm
)){
tbStHm
.
setSbxh
(
hmcjsbxhdm
);
...
...
@@ -482,8 +484,10 @@ public class HmCjController {
if
(
yyqsqkdm
!=
null
&&!
""
.
equals
(
yyqsqkdm
)){
tbStHm
.
setHmqsqkRight
(
yyqsqkdm
);
}
String
hmsjLeft
=
request
.
getParameter
(
"zyhmtp"
);
String
hmsjRight
=
request
.
getParameter
(
"yyhmtp"
);
// String hmsjLeft = request.getParameter("zyhmtp");
String
hmsjLeft
=
tbStHm
.
getZyhmtp
();
String
hmsjRight
=
tbStHm
.
getYyhmtp
();
//String hmsjRight = request.getParameter("yyhmtp");
if
(
hmsjLeft
!=
null
&&!
""
.
equals
(
hmsjLeft
)){
insPic
(
hmsjLeft
,
tbStHm
.
getRybh
(),
"21"
,
request
);
}
...
...
@@ -496,6 +500,9 @@ public class HmCjController {
tbStHm
.
setHmqsqk
(
"2"
);
String
policemanid
=
request
.
getParameter
(
"userid"
);
String
unitcode
=
request
.
getParameter
(
"deptcode"
);
if
(
unitcode
==
null
||
""
.
equals
(
unitcode
)){
unitcode
=
rybh
.
substring
(
rybh
.
length
()-
12
);
}
Date
d
=
new
Date
();
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
String
dateNowStr
=
sdf
.
format
(
d
);
...
...
src/main/java/com/founder/model/TbStHm.java
View file @
6fc591b0
package
com
.
founder
.
model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.io.Serializable
;
import
java.util.Date
;
...
...
@@ -50,6 +52,7 @@ public class TbStHm implements Serializable {
private
Date
gxsj
;
//删除标志
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
cjsj
;
//设备型号
...
...
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