Commit 0903bab9 by wuchengwu

1、比中信息显示及提醒:

在程序中增加定时任务,每隔一段时间查询一下指纹比中信息,如果有信息的比中信息,则在对应的账号的浏览器右下角进行弹窗提示.
2、人像比中信息进行实时的保存,以便后续进行查询体现。
parent ca38cebd
...@@ -137,7 +137,7 @@ public class AjswtzServiceImpl implements IAjswtzService { ...@@ -137,7 +137,7 @@ public class AjswtzServiceImpl implements IAjswtzService {
map.put("sort", sort); map.put("sort", sort);
map.put("order", order); map.put("order", order);
map.put("entity", entity); map.put("entity", entity);
map.put("entity", entity); // map.put("entity", entity);
page.setTotal(amsisDao.queryZwbzPageCount(map)); page.setTotal(amsisDao.queryZwbzPageCount(map));
if (page.getTotal() == 0) { if (page.getTotal() == 0) {
page.setRows(new ArrayList<>()); page.setRows(new ArrayList<>());
......
...@@ -20,7 +20,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter { ...@@ -20,7 +20,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
excludePathPatterns("/","/toLogin","/hncsLogin","/hnzzLogin","/hnxtLogin","/hnhyLogin","/hnsyLogin","/hnyueyLogin","/hnzjjLogin","/hncdLogin","/hnyiyLogin","/hnczLogin","/hnyzLogin","/hnhhLogin","/hnldLogin","/hnxxLogin","/hainanLogin","/neimengLogin","/getSjcntDetail","/noLogin","/saveSwSjXx", excludePathPatterns("/","/toLogin","/hncsLogin","/hnzzLogin","/hnxtLogin","/hnhyLogin","/hnsyLogin","/hnyueyLogin","/hnzjjLogin","/hncdLogin","/hnyiyLogin","/hnczLogin","/hnyzLogin","/hnhhLogin","/hnldLogin","/hnxxLogin","/hainanLogin","/neimengLogin","/getSjcntDetail","/noLogin","/saveSwSjXx",
"/saveHmSjXx","/getSwSjXx","/getYthcjryxxByZjhm","/getYthcjUser","/getZfbaUser","/getZwbzJbxxCnt","/getCcbzJbxxCnt","/toswcj", "/saveHmSjXx","/getSwSjXx","/getYthcjryxxByZjhm","/getYthcjUser","/getZfbaUser","/getZwbzJbxxCnt","/getCcbzJbxxCnt","/toswcj",
"/doLogin","/toHome","/static*//**","/refreshCodeCache","/qxdoLogin","/queryNameByCode","/queryTypeCode","/toFjxz","/toCzsmxz","/download/**","/toObjectKJ","/catchimg","/iframe1","/iframe2","/xj","/report","/SavePersonInfo4Nmtc","/singleLoginAct","/getZjxxbdjg","/toShowScan","/ajaxGettoAfisStr","/getTime","/savePersonScanBackInfo", "/doLogin","/toHome","/static*//**","/refreshCodeCache","/qxdoLogin","/queryNameByCode","/queryTypeCode","/toFjxz","/toCzsmxz","/download/**","/toObjectKJ","/catchimg","/iframe1","/iframe2","/xj","/report","/SavePersonInfo4Nmtc","/singleLoginAct","/getZjxxbdjg","/toShowScan","/ajaxGettoAfisStr","/getTime","/savePersonScanBackInfo",
"/getYhkDetail","/getSwDetail","/getRyzjzpimages","/getRyzpimages","/getPmimages","/getGdimages","/zipurlzw","/dataAssess","/sendMessage" "/getYhkDetail","/getSwDetail","/getRyzjzpimages","/getRyzpimages","/getPmimages","/getGdimages","/zipurlzw","/dataAssess","/sendMessage","/toSavaRybdxx","/queryZwbzds"
); );
......
...@@ -3,15 +3,18 @@ package com.founder.controller; ...@@ -3,15 +3,18 @@ package com.founder.controller;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.founder.ajswtz.service.IAjswtzService;
import com.founder.domain.TbFwXxdl; import com.founder.domain.TbFwXxdl;
import com.founder.hnxzasj.TbStasjService; import com.founder.hnxzasj.TbStasjService;
import com.founder.model.*; import com.founder.model.*;
import com.founder.model.amsis.TbXsjszyZwZwbzJbxx;
import com.founder.news.service.INewsService; import com.founder.news.service.INewsService;
import com.founder.ryswtz.service.RyxxService; import com.founder.ryswtz.service.RyxxService;
import com.founder.service.AfisQualityService; import com.founder.service.AfisQualityService;
import com.founder.socketio.service.IMessageService; import com.founder.socketio.service.IMessageService;
import com.founder.util.HttpClientUtil; import com.founder.util.HttpClientUtil;
import com.founder.util.Maputil; import com.founder.util.Maputil;
import com.founder.utils.EasyUIPage;
import com.founder.utils.PropertiesUtil; import com.founder.utils.PropertiesUtil;
import com.founder.utils.Qgckzp; import com.founder.utils.Qgckzp;
import com.founder.ztry.service.TbywztryService; import com.founder.ztry.service.TbywztryService;
...@@ -50,6 +53,8 @@ public class RyfkController { ...@@ -50,6 +53,8 @@ public class RyfkController {
private IMessageService messageService; private IMessageService messageService;
@Autowired @Autowired
private INewsService newsService; private INewsService newsService;
@Autowired
private IAjswtzService ajswtzService;
@GetMapping("/toRyfkDetail/{zjhm}") @GetMapping("/toRyfkDetail/{zjhm}")
...@@ -135,30 +140,37 @@ public class RyfkController { ...@@ -135,30 +140,37 @@ public class RyfkController {
int bzcs = 0; int bzcs = 0;
User user =(User)request.getSession().getAttribute("User"); User user =(User)request.getSession().getAttribute("User");
TbZwbzxx tbZwbzxx = new TbZwbzxx(); TbZwbzxx tbZwbzxx = new TbZwbzxx();
EasyUIPage easyUIPage = new EasyUIPage();
easyUIPage.setPagePara("10000");
easyUIPage.setEnd(10000);
//根据zjhm查询ryxxlist //根据zjhm查询ryxxlist
ResultMap resultMap=rycjService.getRycjInfoByzjhmorder(zjhm); ResultMap resultMap=rycjService.getRycjInfoByzjhmorder(zjhm);
List<AutoTbStRy> lryxx = (List<AutoTbStRy>)resultMap.getData(); List<AutoTbStRy> lryxx = (List<AutoTbStRy>)resultMap.getData();
List<TbZwbzxx> lzwbzxx = new ArrayList<>(); List<TbXsjszyZwZwbzJbxx> result = new ArrayList<>();
for(AutoTbStRy stry : lryxx){ for(AutoTbStRy stry : lryxx){
//根据人员编号查询比中任务和比中信息 //根据人员编号查询比中任务和比中信息
String zwbh = stry.getSzzwbh(); String zwbh = stry.getSzzwbh();
String rwbhStr = stry.getRwbh(); TbXsjszyZwZwbzJbxx zwbz = new TbXsjszyZwZwbzJbxx();
if(rwbhStr!=null&&!"".equals(rwbhStr)){ //当为倒查时,指纹编号赋值到原条码中
rwbh = rwbhStr; zwbz.setLa_type("AL");
}else if(zwbh!=null&&!zwbh.equals("")){ zwbz.setSrcbarcode(zwbh);
rwbh = this.getZwrwxx(zwbh,user); EasyUIPage dc=ajswtzService.queryZwbzPage(easyUIPage,zwbz);
}else{ if (dc.getRows().size() > 0){
rwbh = "";
continue;
}
if (rwbh!=null&&!rwbh.equals("")){
tbZwbzxx = this.getZwbzxx(rwbh,user);
if(tbZwbzxx!=null&&tbZwbzxx.getRwbh()!=null&&!"".equals(tbZwbzxx.getRwbh())){
bzcs ++; bzcs ++;
tbZwbzxx.setNyzw_jzrybh(zwbh); dc.getRows().stream().forEach(p ->{
tbZwbzxx.setRwbh(rwbh); result.add((TbXsjszyZwZwbzJbxx) p);
lzwbzxx.add(tbZwbzxx); });
} }
//当为正查时,指纹编号赋值到原条码中
TbXsjszyZwZwbzJbxx zwbz2 = new TbXsjszyZwZwbzJbxx();
zwbz2.setLa_type("LA");
zwbz2.setDestbarcode(zwbh);
EasyUIPage zc=ajswtzService.queryZwbzPage(easyUIPage,zwbz2);
if (zc.getRows().size() > 0){
bzcs ++;
zc.getRows().stream().forEach(p ->{
result.add((TbXsjszyZwZwbzJbxx) p);
});
} }
} }
if(bzcs>0){ if(bzcs>0){
...@@ -175,7 +187,7 @@ public class RyfkController { ...@@ -175,7 +187,7 @@ public class RyfkController {
} }
ResultMap lzwbzMap=new ResultMap(); ResultMap lzwbzMap=new ResultMap();
lzwbzMap.setCount(bzcs); lzwbzMap.setCount(bzcs);
lzwbzMap.setData(lzwbzxx); lzwbzMap.setData(result);
return lzwbzMap; return lzwbzMap;
} }
......
...@@ -48,6 +48,7 @@ import java.awt.image.BufferedImage; ...@@ -48,6 +48,7 @@ import java.awt.image.BufferedImage;
import java.io.*; import java.io.*;
import java.net.HttpURLConnection; import java.net.HttpURLConnection;
import java.net.URL; import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.text.DateFormat; import java.text.DateFormat;
import java.text.ParseException; import java.text.ParseException;
...@@ -240,6 +241,29 @@ public class TbXwRycjController { ...@@ -240,6 +241,29 @@ public class TbXwRycjController {
return bool; return bool;
} }
@RequestMapping("/toSavaRybdxx")
@ResponseBody
public boolean toSavaRybdxx(Model model,String asjxgrybh,String zjhm,String yrxtpStr,String bdrxtpStr,String xsd,String xm
,String rybq,String ryzz,String ztbh){
Rybdxx rybdxx = new Rybdxx();
rybdxx.setId(SequenceUtil.getNextId());
rybdxx.setZjhm(zjhm);
try {
rybdxx.setYrxtp(URLDecoder.decode(yrxtpStr).getBytes("ISO-8859-1"));
rybdxx.setBdrxtp(URLDecoder.decode(bdrxtpStr).getBytes("ISO-8859-1"));
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
rybdxx.setXsd(xsd);
rybdxx.setXm(xm);
rybdxx.setRybq(rybq);
rybdxx.setRyzz(ryzz);
rybdxx.setRybh(asjxgrybh);
rybdxx.setZtbh(ztbh);
boolean bool = rycjService.insertRybdxx(rybdxx);
return bool;
}
@RequestMapping("/toSavaRxbdjg") @RequestMapping("/toSavaRxbdjg")
@ResponseBody @ResponseBody
public boolean toSavaRxbdjg(Model model,String asjxgrybh){ public boolean toSavaRxbdjg(Model model,String asjxgrybh){
......
...@@ -2,15 +2,23 @@ package com.founder.controller; ...@@ -2,15 +2,23 @@ package com.founder.controller;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference; import com.alibaba.fastjson.TypeReference;
import com.founder.ajswtz.service.IAjswtzService;
import com.founder.domain.TbFwXxdl; import com.founder.domain.TbFwXxdl;
import com.founder.model.AfisDataAssess; import com.founder.login.service.LoginService;
import com.founder.model.AfisManage; import com.founder.model.*;
import com.founder.model.DataAssessResult; import com.founder.model.amsis.TbXsjszyZwZwbzJbxx;
import com.founder.module.redis.service.IDicItemService;
import com.founder.news.service.INewsService;
import com.founder.service.AfisQualityCcrwService; import com.founder.service.AfisQualityCcrwService;
import com.founder.service.AfisQualityService;
import com.founder.service.AutoTbXwRycjService;
import com.founder.socketio.service.IMessageService;
import com.founder.util.HttpClientUtil; import com.founder.util.HttpClientUtil;
import com.founder.util.TestTask;
import com.founder.utils.DateFormatUtils; import com.founder.utils.DateFormatUtils;
import com.founder.utils.DateUtil; import com.founder.utils.DateUtil;
import com.founder.utils.EasyUIPage; import com.founder.utils.EasyUIPage;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -35,6 +43,18 @@ public class TimedTaskController { ...@@ -35,6 +43,18 @@ public class TimedTaskController {
private Logger log = LoggerFactory.getLogger(this.getClass()); private Logger log = LoggerFactory.getLogger(this.getClass());
@Resource @Resource
private AfisQualityCcrwService afisQualityCcrwService; private AfisQualityCcrwService afisQualityCcrwService;
@Autowired
private IAjswtzService ajswtzService;
@Autowired
private AfisQualityService afisQualityService;
@Autowired
private AutoTbXwRycjService rycjService;
@Autowired
private IMessageService messageService;
@Autowired
private INewsService newsService;
@Autowired
private LoginService loginService;
//定时任务:每天凌晨触发 //定时任务:每天凌晨触发
@Scheduled(cron = "0 0 1 * * ?") @Scheduled(cron = "0 0 1 * * ?")
...@@ -77,6 +97,58 @@ public class TimedTaskController { ...@@ -77,6 +97,58 @@ public class TimedTaskController {
} }
/** /**
* 指纹比对定时推送
*/
@RequestMapping("/queryZwbzds")
@Scheduled(cron = "0 0 1 * * ?")
public void queryZwbzds() {
TbXsjszyZwZwbzJbxx zwbz = new TbXsjszyZwZwbzJbxx();
EasyUIPage easyUIPage = new EasyUIPage();
easyUIPage.setPagePara("10000");
easyUIPage.setEnd(10000);
Date date = new Date();
//查询条件:比重开始时间,比重结束时间两者相差一天
zwbz.setFbzsj(DateFormatUtils.dateToStr(DateUtil.lastDays(-1)));
zwbz.setEbzsj(DateFormatUtils.dateToStr(date));
log.info("比重开始时间:{},比重结束时间:{}", zwbz.getFbzsj(), zwbz.getEbzsj());
easyUIPage = ajswtzService.queryZwbzPage(easyUIPage, zwbz);
List<TbXsjszyZwZwbzJbxx> list = (List<TbXsjszyZwZwbzJbxx>) easyUIPage.getRows();
// 当指纹比重确定有的时候
if (list.size() > 0) {
list.stream().forEach(p -> {
log.info("指纹比重信息参数:{}", p.toString());
AfisQualityCk afisQualityCk = null;
String zwbh = "AL".equals(p.getLa_type()) ? p.getSrcbarcode() : p.getDestbarcode();
afisQualityCk = afisQualityService.getAfisQuality(zwbh);
log.info("质量检查表查询数据:{}",afisQualityCk.toString());
// 根据返回指纹编号去查询检查表,若任务编号没有则将指纹编号更新进检查表,然后推送。若也有任务编号则不操作
if (StringUtils.isBlank(afisQualityCk.getRwbh())) {
AutoTbStRy ryxx = rycjService.getRyxxByRybh(afisQualityCk.getRRybh());
String zjhm = StringUtils.isBlank(ryxx.getZjhm()) ? ryxx.getGmsfhm() : ryxx.getZjhm();
User userByUsername = loginService.getUserByUsername(ryxx.getLrr());
boolean flg = newsService.ifNews(zjhm);
if (!flg) {
TbFwXxdl tbFwXxdl = new TbFwXxdl();
tbFwXxdl.setJsdwDm(userByUsername.getUnitcode());
// tbFwXxdl.setJsrZjhm(userByUsername.getIdentitycard());
tbFwXxdl.setFsrName(ryxx.getLrr());
tbFwXxdl.setXxbt(zjhm + ":指纹比中");
tbFwXxdl.setXxlx("1");
tbFwXxdl.setXxnr("身份证号码为:" + zjhm + "的嫌疑人有指纹比中信息!");
log.info("发送信息对象:{},发送信息参数:{}",zjhm,tbFwXxdl.toString());
String Message = messageService.sendMessage(tbFwXxdl);
if (Message.indexOf("失败") == -1) {
afisQualityCk.setRwbh(zwbh);
boolean b = afisQualityService.addAfisQualityRwbh(afisQualityCk);
}
}
}
});
}
}
/**
* 根据单位代码将不合格信息推送给该单位管理员 * 根据单位代码将不合格信息推送给该单位管理员
* *
* @param dataAssess * @param dataAssess
...@@ -110,7 +182,7 @@ public class TimedTaskController { ...@@ -110,7 +182,7 @@ public class TimedTaskController {
TbFwXxdl xxdl = new TbFwXxdl(); TbFwXxdl xxdl = new TbFwXxdl();
xxdl.setXxlx("1"); xxdl.setXxlx("1");
xxdl.setXxbt("数据考核"); xxdl.setXxbt("数据考核");
xxdl.setXxnr(result.getName() + "采集从" + dataAssess.getRwkssjStr().substring(0, 10) + "到当天的考核时间段为:任务时间"+ finalTimeStr +"段。其中实际采集率为:" xxdl.setXxnr(result.getName() + "采集从" + dataAssess.getRwkssjStr().substring(0, 10) + "到当天的考核时间段为:任务时间" + finalTimeStr + "段。其中实际采集率为:"
+ result.getReality() + ",考核设定值为:" + result.getAssess() + ",未达到考核设定值!"); + result.getReality() + ",考核设定值为:" + result.getAssess() + ",未达到考核设定值!");
xxdl.setJsrZjhm(p.getIdcard()); xxdl.setJsrZjhm(p.getIdcard());
xxdl.setFsrName("系统"); xxdl.setFsrName("系统");
......
...@@ -3,19 +3,24 @@ package com.founder.controller; ...@@ -3,19 +3,24 @@ package com.founder.controller;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.founder.ajswtz.service.IAjswtzService; import com.founder.ajswtz.service.IAjswtzService;
import com.founder.domain.TbFwXxdl;
import com.founder.model.*; import com.founder.model.*;
import com.founder.model.amsis.*; import com.founder.model.amsis.*;
import com.founder.module.redis.service.IDicItemService; import com.founder.module.redis.service.IDicItemService;
import com.founder.news.service.INewsService;
import com.founder.service.*; import com.founder.service.*;
import com.founder.socketio.service.IMessageService;
import com.founder.util.HttpClientUtil; import com.founder.util.HttpClientUtil;
import com.founder.util.TestTask; import com.founder.util.TestTask;
import com.founder.utils.*; import com.founder.utils.*;
import org.apache.commons.lang.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellRangeAddress;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.Model; import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.ModelAttribute;
...@@ -46,7 +51,6 @@ public class XsjsbzController { ...@@ -46,7 +51,6 @@ public class XsjsbzController {
private TestTask asyncTask; private TestTask asyncTask;
@Autowired @Autowired
private IAjswtzService xsjsbdService; private IAjswtzService xsjsbdService;
@RequestMapping("/toZwbzgl") @RequestMapping("/toZwbzgl")
public String toZwbzgl(Model model, HttpServletRequest request){ public String toZwbzgl(Model model, HttpServletRequest request){
User user = (User)request.getSession().getAttribute("User"); User user = (User)request.getSession().getAttribute("User");
...@@ -54,6 +58,7 @@ public class XsjsbzController { ...@@ -54,6 +58,7 @@ public class XsjsbzController {
return "zwbzgl/cxlist"; return "zwbzgl/cxlist";
} }
@RequestMapping("/queryZwbzList") @RequestMapping("/queryZwbzList")
@ResponseBody @ResponseBody
public EasyUIPage queryZwbzList(@ModelAttribute TbXsjszyZwZwbzJbxx zwbz, public EasyUIPage queryZwbzList(@ModelAttribute TbXsjszyZwZwbzJbxx zwbz,
......
...@@ -22,6 +22,8 @@ public interface AfisQualityCkDao extends MyMapper<AfisQualityCk> { ...@@ -22,6 +22,8 @@ public interface AfisQualityCkDao extends MyMapper<AfisQualityCk> {
public boolean addAfisQualityCcfs(Map<String, Object> map); public boolean addAfisQualityCcfs(Map<String, Object> map);
public boolean addAfisQualityRwbh(Map<String, Object> map);
public boolean cutAfisQualityCcfs(Map<String, Object> map); public boolean cutAfisQualityCcfs(Map<String, Object> map);
public boolean updateCloseCheckSql2(Map<String, Object> map); public boolean updateCloseCheckSql2(Map<String, Object> map);
......
package com.founder.dao; package com.founder.dao;
import com.founder.model.AutoTbStRy; import com.founder.model.AutoTbStRy;
import com.founder.model.Rybdxx;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -31,6 +32,7 @@ public interface TbXwRycjDao { ...@@ -31,6 +32,7 @@ public interface TbXwRycjDao {
public boolean toSavaRxbdjg(Map<String, Object> map); public boolean toSavaRxbdjg(Map<String, Object> map);
public boolean deleteRyxx(Map<String, Object> map); public boolean deleteRyxx(Map<String, Object> map);
public boolean deleteRyxx_new(Map<String, Object> map); public boolean deleteRyxx_new(Map<String, Object> map);
...@@ -49,4 +51,6 @@ public interface TbXwRycjDao { ...@@ -49,4 +51,6 @@ public interface TbXwRycjDao {
public List<AutoTbStRy> getRycjInfoByzjhmorder(String zjhm); public List<AutoTbStRy> getRycjInfoByzjhmorder(String zjhm);
public boolean insertRybdxx(Rybdxx rybdxx);
} }
...@@ -539,4 +539,68 @@ public class AfisQualityCk implements Serializable { ...@@ -539,4 +539,68 @@ public class AfisQualityCk implements Serializable {
public void setGmsfhm(String gmsfhm) { public void setGmsfhm(String gmsfhm) {
this.gmsfhm = gmsfhm; this.gmsfhm = gmsfhm;
} }
@Override
public String toString() {
return "AfisQualityCk{" +
"RRybh='" + RRybh + '\'' +
", RXm='" + RXm + '\'' +
", RCsrq=" + RCsrq +
", RCsrqStr='" + RCsrqStr + '\'' +
", RCjr='" + RCjr + '\'' +
", RCjdw='" + RCjdw + '\'' +
", RCjsj=" + RCjsj +
", RCjsjStr='" + RCjsjStr + '\'' +
", RSfzljc='" + RSfzljc + '\'' +
", RWzxx='" + RWzxx + '\'' +
", RPmzw='" + RPmzw + '\'' +
", RGdzw='" + RGdzw + '\'' +
", RZw='" + RZw + '\'' +
", RRx='" + RRx + '\'' +
", RZj='" + RZj + '\'' +
", RDna='" + RDna + '\'' +
", RZwbh='" + RZwbh + '\'' +
", RDnabh='" + RDnabh + '\'' +
", RZjbh='" + RZjbh + '\'' +
", RCjcs='" + RCjcs + '\'' +
", jcjg='" + jcjg + '\'' +
", rksj=" + rksj +
", rksjStr='" + rksjStr + '\'' +
", scbz='" + scbz + '\'' +
", jcr='" + jcr + '\'' +
", jcdw='" + jcdw + '\'' +
", jcsj=" + jcsj +
", jcsjStr='" + jcsjStr + '\'' +
", qdzljcjs='" + qdzljcjs + '\'' +
", zwbjFpddw='" + zwbjFpddw + '\'' +
", zwbjFpdr='" + zwbjFpdr + '\'' +
", zwbjFpsj=" + zwbjFpsj +
", zwzt='" + zwzt + '\'' +
", zwbjFpdw='" + zwbjFpdw + '\'' +
", zwbjFpr='" + zwbjFpr + '\'' +
", zwbjdw='" + zwbjdw + '\'' +
", zwbjr='" + zwbjr + '\'' +
", zwbjsj=" + zwbjsj +
", bz='" + bz + '\'' +
", zwsx='" + zwsx + '\'' +
", zwfkxx='" + zwfkxx + '\'' +
", spsjrqsj='" + spsjrqsj + '\'' +
", r_sjlxdh='" + r_sjlxdh + '\'' +
", djssj='" + djssj + '\'' +
", zjhm='" + zjhm + '\'' +
", eRCjsjStr='" + eRCjsjStr + '\'' +
", fRCjsjStr='" + fRCjsjStr + '\'' +
", fjcsjStr='" + fjcsjStr + '\'' +
", ejcsjStr='" + ejcsjStr + '\'' +
", hjd='" + hjd + '\'' +
", ccbh='" + ccbh + '\'' +
", ccr='" + ccr + '\'' +
", ccdw='" + ccdw + '\'' +
", ccsj=" + ccsj +
", ccsjStr='" + ccsjStr + '\'' +
", rwbh='" + rwbh + '\'' +
", fssj='" + fssj + '\'' +
", gmsfhm='" + gmsfhm + '\'' +
'}';
}
} }
\ No newline at end of file
package com.founder.model;
import java.io.Serializable;
import java.util.Arrays;
import java.util.Date;
/**
* 人员比对信息
*
* @author wcw
* @version 1.0
* @date 2021-10-26
*/
public class Rybdxx implements Serializable {
private String id;
private String zjhm;
private byte[] yrxtp;
private byte[] bdrxtp;
private String yrxtpStr;
private String bdrxtpStr;
private String xsd;
private String xm;
private String rybq;
private String ryzz;
private String rybh;
private String ztbh;
private String scbz;
public String getYrxtpStr() {
return yrxtpStr;
}
public void setYrxtpStr(String yrxtpStr) {
this.yrxtpStr = yrxtpStr;
}
public String getBdrxtpStr() {
return bdrxtpStr;
}
public void setBdrxtpStr(String bdrxtpStr) {
this.bdrxtpStr = bdrxtpStr;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getZjhm() {
return zjhm;
}
public void setZjhm(String zjhm) {
this.zjhm = zjhm;
}
public byte[] getYrxtp() {
return yrxtp;
}
public void setYrxtp(byte[] yrxtp) {
this.yrxtp = yrxtp;
}
public byte[] getBdrxtp() {
return bdrxtp;
}
public void setBdrxtp(byte[] bdrxtp) {
this.bdrxtp = bdrxtp;
}
public String getXsd() {
return xsd;
}
public void setXsd(String xsd) {
this.xsd = xsd;
}
public String getXm() {
return xm;
}
public void setXm(String xm) {
this.xm = xm;
}
public String getRybq() {
return rybq;
}
public void setRybq(String rybq) {
this.rybq = rybq;
}
public String getRyzz() {
return ryzz;
}
public void setRyzz(String ryzz) {
this.ryzz = ryzz;
}
public String getRybh() {
return rybh;
}
public void setRybh(String rybh) {
this.rybh = rybh;
}
public String getZtbh() {
return ztbh;
}
public void setZtbh(String ztbh) {
this.ztbh = ztbh;
}
public String getScbz() {
return scbz;
}
public void setScbz(String scbz) {
this.scbz = scbz;
}
@Override
public String toString() {
return "Rybdxx{" +
"id='" + id + '\'' +
", zjhm='" + zjhm + '\'' +
", yrxtp=" + Arrays.toString(yrxtp) +
", bdrxtp=" + Arrays.toString(bdrxtp) +
", xsd='" + xsd + '\'' +
", xm='" + xm + '\'' +
", rybq='" + rybq + '\'' +
", ryzz='" + ryzz + '\'' +
", rybh='" + rybh + '\'' +
", ztbh='" + ztbh + '\'' +
", scbz='" + scbz + '\'' +
'}';
}
}
\ No newline at end of file
...@@ -3,7 +3,8 @@ package com.founder.model.amsis; ...@@ -3,7 +3,8 @@ package com.founder.model.amsis;
import java.io.Serializable; import java.io.Serializable;
/** /**
*刑事技术资源指纹比中信息 * 刑事技术资源指纹比中信息
*
* @author yangliang * @author yangliang
* @date 2019/6/20 * @date 2019/6/20
*/ */
...@@ -13,8 +14,8 @@ public class TbXsjszyZwZwbzJbxx implements Serializable { ...@@ -13,8 +14,8 @@ public class TbXsjszyZwZwbzJbxx implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private String id; //序号 private String id; //序号
private String srcbarcode; //源条码 private String srcbarcode; //源条码 倒查人员的指纹编号
private String destbarcode; //目标条码 private String destbarcode; //目标条码 正查人员的指纹编号
private String affirmunitcode; //认定单位代码 private String affirmunitcode; //认定单位代码
private String affirmuserid; //认定用户ID private String affirmuserid; //认定用户ID
private String affirmtime; //认定时间 private String affirmtime; //认定时间
......
...@@ -44,4 +44,6 @@ public interface AfisQualityService extends IService<AfisQualityCk> { ...@@ -44,4 +44,6 @@ public interface AfisQualityService extends IService<AfisQualityCk> {
public boolean updateAfisQualityCk_zwcx(AfisQualityCk afisQualityCk); public boolean updateAfisQualityCk_zwcx(AfisQualityCk afisQualityCk);
public boolean addAfisQualityRwbh(AfisQualityCk afisQualityCk);
} }
package com.founder.service; package com.founder.service;
import com.founder.model.AutoTbStRy; import com.founder.model.AutoTbStRy;
import com.founder.model.Rybdxx;
import com.founder.utils.EasyUIPage; import com.founder.utils.EasyUIPage;
import java.util.List; import java.util.List;
...@@ -41,4 +42,5 @@ public interface AutoTbXwRycjService extends IService<AutoTbStRy> { ...@@ -41,4 +42,5 @@ public interface AutoTbXwRycjService extends IService<AutoTbStRy> {
public List<AutoTbStRy> queryRyxxList(AutoTbStRy entity); public List<AutoTbStRy> queryRyxxList(AutoTbStRy entity);
public boolean insertRybdxx(Rybdxx rybdxx);
} }
...@@ -115,6 +115,15 @@ public class AfisQualityServiceImpl extends BaseService<AfisQualityCk> implement ...@@ -115,6 +115,15 @@ public class AfisQualityServiceImpl extends BaseService<AfisQualityCk> implement
boolean bool = this.mapper.updateAfisQualityCk_zwcx(map); boolean bool = this.mapper.updateAfisQualityCk_zwcx(map);
return bool; return bool;
} }
@Override
public boolean addAfisQualityRwbh(AfisQualityCk afisQualityCk) {
Map map = new HashMap();
map.put("entity", afisQualityCk);
boolean bool = this.mapper.addAfisQualityRwbh(map);
return bool;
}
@Override @Override
public boolean chexiao(String zwbh) public boolean chexiao(String zwbh)
{ {
......
...@@ -3,6 +3,7 @@ package com.founder.service.impl; ...@@ -3,6 +3,7 @@ package com.founder.service.impl;
import com.founder.dao.TbXwRycjDao; import com.founder.dao.TbXwRycjDao;
import com.founder.jwzhDao.JwzhDao; import com.founder.jwzhDao.JwzhDao;
import com.founder.model.AutoTbStRy; import com.founder.model.AutoTbStRy;
import com.founder.model.Rybdxx;
import com.founder.service.AutoTbXwRycjService; import com.founder.service.AutoTbXwRycjService;
import com.founder.utils.EasyUIPage; import com.founder.utils.EasyUIPage;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -97,6 +98,11 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements ...@@ -97,6 +98,11 @@ public class AutoTbXwRycjServiceImpl extends BaseService<AutoTbStRy> implements
} }
@Override @Override
public boolean insertRybdxx(Rybdxx rybdxx) {
return mapper.insertRybdxx(rybdxx);
}
@Override
public Object fzth(String asjxgrybh) { public Object fzth(String asjxgrybh) {
//先找出嫌疑人的同案人员 //先找出嫌疑人的同案人员
List<String> asjbhs=new ArrayList<>(); List<String> asjbhs=new ArrayList<>();
......
...@@ -85,6 +85,15 @@ public class DateUtil { ...@@ -85,6 +85,15 @@ public class DateUtil {
return date; return date;
} }
public static Date lastDays(int num){
Date date=new Date();
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
calendar.add(Calendar.DAY_OF_MONTH, num);
date = calendar.getTime();
return date;
}
public static final Date convertStringToDateTime(String strDate){ public static final Date convertStringToDateTime(String strDate){
SimpleDateFormat df = null; SimpleDateFormat df = null;
Date date = null; Date date = null;
...@@ -498,11 +507,12 @@ public class DateUtil { ...@@ -498,11 +507,12 @@ public class DateUtil {
// long a =(l/3)*3; // long a =(l/3)*3;
// System.out.println(864000000+864000000); // System.out.println(864000000+864000000);
double v = Double.parseDouble("46.48"); // double v = Double.parseDouble("46.48");
double v1 = v * (1 / 3.0); // double v1 = v * (1 / 3.0);
BigDecimal bd = new BigDecimal(v1); // BigDecimal bd = new BigDecimal(v1);
BigDecimal bd2 = bd.setScale(2, BigDecimal.ROUND_HALF_UP); // BigDecimal bd2 = bd.setScale(2, BigDecimal.ROUND_HALF_UP);
System.out.println(bd2); // System.out.println(bd2);
// Date date = lastDays(+2);
} }
} }
\ No newline at end of file
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
</sql> </sql>
<select id="getAfisQuality" resultMap="baseMap" parameterType="map"> <select id="getAfisQuality" resultMap="baseMap" parameterType="map">
select select
R_RYBH,
R_GDZW, R_GDZW,
R_WZXX, R_WZXX,
R_PMZW, R_PMZW,
...@@ -93,6 +94,11 @@ ...@@ -93,6 +94,11 @@
WHERE XXBH=#{entity.ccbh , jdbcType=VARCHAR } WHERE XXBH=#{entity.ccbh , jdbcType=VARCHAR }
</update> </update>
<update id="addAfisQualityRwbh" parameterType="map">
update AFIS_QUALITY_CK SET RWBH = #{entity.rwbh , jdbcType=VARCHAR }
WHERE R_RYBH=#{entity.RRybh , jdbcType=VARCHAR }
</update>
<update id="cutAfisQualityCcfs" parameterType="map"> <update id="cutAfisQualityCcfs" parameterType="map">
update AFIS_QUALITY_CCRW SET JCFS=JCFS-1 update AFIS_QUALITY_CCRW SET JCFS=JCFS-1
WHERE XXBH=#{ccbh , jdbcType=VARCHAR } WHERE XXBH=#{ccbh , jdbcType=VARCHAR }
......
...@@ -303,6 +303,33 @@ ...@@ -303,6 +303,33 @@
UPDATE TB_RY_RYCJ SET RXBDJG='1' where RYBH = #{rybh , jdbcType=VARCHAR } UPDATE TB_RY_RYCJ SET RXBDJG='1' where RYBH = #{rybh , jdbcType=VARCHAR }
</update> </update>
<insert id="insertRybdxx" parameterType="com.founder.model.Rybdxx">
insert into TB_XW_YTHCJ_RYBDXX (
ID,
ZJHM,
YRXTP,
BDRXTP,
XSD,
XM,
RYBQ,
RYZZ,
RYBH,
ZTBH
) values (
#{id ,jdbcType=VARCHAR},
#{zjhm ,jdbcType=VARCHAR},
#{yrxtp ,jdbcType=VARCHAR},
#{bdrxtp ,jdbcType=VARCHAR},
#{xsd ,jdbcType=VARCHAR},
#{xm ,jdbcType=VARCHAR},
#{rybq ,jdbcType=VARCHAR},
#{ryzz,jdbcType=VARCHAR},
#{rybh,jdbcType=VARCHAR},
#{ztbh,jdbcType=VARCHAR}
)
</insert>
<insert id="insertRyxx" parameterType="map"> <insert id="insertRyxx" parameterType="map">
insert into TB_RY_RYCJ insert into TB_RY_RYCJ
(RYBH, (RYBH,
......
...@@ -200,9 +200,9 @@ ...@@ -200,9 +200,9 @@
XXSC_PDBZ='1',SCSJ=sysdate where xxid = #{value,jdbcType=VARCHAR} XXSC_PDBZ='1',SCSJ=sysdate where xxid = #{value,jdbcType=VARCHAR}
</update> </update>
<update id="ifNews" parameterType="java.lang.String"> <select id="ifNews" parameterType="java.lang.String" resultType="com.founder.domain.TbFwXxdl">
select * from TB_FW_XXDL where xxbt like '%指纹比中%' and (XXSC_PDBZ=0 or XXSC_PDBZ is null) and xxnr like '%'||#{value,jdbcType=VARCHAR}||'%' and fssj > sysdate-3 select * from TB_FW_XXDL where xxbt like '%指纹比中%' and (XXSC_PDBZ=0 or XXSC_PDBZ is null) and xxnr like '%'||#{value,jdbcType=VARCHAR}||'%' and fssj > sysdate-3
</update> </select>
<!-- 根据单位代码查询本单位用户列表 --> <!-- 根据单位代码查询本单位用户列表 -->
<select id="getUserListByUnitCode" parameterType="java.lang.String" resultType="com.founder.model.User"> <select id="getUserListByUnitCode" parameterType="java.lang.String" resultType="com.founder.model.User">
......
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