Commit 6fc591b0 by liulianglang

虹膜修改

parent 97edd7cf
......@@ -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);
......
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;
//设备型号
......
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