Commit aed9e35f by yangliang

添加指纹比中信息管理功能

parent 5f641881
......@@ -16,4 +16,5 @@ import java.util.Map;
@Mapper
public interface AmsisAjzwDao {
List<TbXsjszyZwZwbzCase> getXsjsbdxqAjzw(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqAllAjzw(Map<String, Object> map);
}
......@@ -18,20 +18,10 @@ public interface AmsisDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(Map<String, Object> map);
public List<Rollimg> getRollimgByBarcode(Map<String, Object> map);
public List<Rollimg> getRollTimeByBarcode(Map<String, Object> map);
public List<Rollimg> getOneRollimgByBarcode(Map<String, Object> map);
public List<Plainimg> getPlainimgByBarcode(Map<String, Object> map);
public List<Plainimg> getPlainTimeByBarcode(Map<String, Object> map);
public List<Plainimg> getOnePlainimgByBarcode(Map<String, Object> map);
public List<Rollimg> queryRollInfoList(Map<String,Object> map);
public List<Plainimg> queryPlainInfoList(Map<String,Object> map);
List<TbXsjszyZwZwbzJbxx> getZwbzJbxx(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getCcbzJbxx(Map<String, Object> map);
Integer queryZwbzPageCount(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> queryZwbzPageList(Map<String, Object> map);
Integer queryCcbzPageCount(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> queryCcbzPageList(Map<String, Object> map);
}
package com.founder.ajswtz.amsisRyzwDao;
import com.founder.model.amsis.Plainimg;
import com.founder.model.amsis.Rollimg;
import com.founder.model.amsis.TbXsjszyZwZwbzPerson;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
......@@ -16,4 +18,20 @@ import java.util.Map;
@Mapper
public interface AmsisRyzwDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqRyzw(Map<String, Object> map);
public List<Rollimg> getRollimgByBarcode(Map<String, Object> map);
public List<Rollimg> getRollTimeByBarcode(Map<String, Object> map);
public List<Rollimg> getOneRollimgByBarcode(Map<String, Object> map);
public List<Plainimg> getPlainimgByBarcode(Map<String, Object> map);
public List<Plainimg> getPlainTimeByBarcode(Map<String, Object> map);
public List<Plainimg> getOnePlainimgByBarcode(Map<String, Object> map);
public List<Rollimg> queryRollInfoList(Map<String,Object> map);
public List<Plainimg> queryPlainInfoList(Map<String,Object> map);
}
......@@ -20,6 +20,7 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;
/**
* Created by founder on 2019/10/10.
......@@ -98,8 +99,10 @@ public class AjswtzController {
//imgstrs = hu.getJsonString("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+zwbh);
//imgstrs = hu.getJsonString("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh=" + zwbh);
String imgStr = getZwImagedata("http://65.38.37.118:8081/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
System.out.println("株洲捺印指纹图片="+imgStr);
if(imgStr==null||"".equals(imgStr)){
imgStr = getZwImagedata("http://10.142.16.171:8082/data/getPSNRollByRybh?rybh="+personList.get(0).getBarcode(),nyzw);
System.out.println("省厅捺印指纹图片="+imgStr);
}
personList.get(0).setRybzzwtpBase64(imgStr);
}
......@@ -146,9 +149,9 @@ public class AjswtzController {
position = (num - 10) + "";
}
if(position.equals(zwbh)){
image = obj.getString("image");
}
image = obj.getString("image");
System.out.println("指位="+position+"; 指纹图片="+(image==null)+"-"+("".equals(image)));
}
}
return image;
......@@ -245,4 +248,48 @@ public class AjswtzController {
return returnMap;
}
/**
* 根据现场指纹编号查询详情信息
* @return
*/
@RequestMapping("/toAjdaxx")
@ResponseBody
public ModelAndView toAjdaxx(HttpServletRequest request, String xczwbh, ModelAndView modelAndView){
List<TbXsjszyZwZwbzCase> caseList = new ArrayList<TbXsjszyZwZwbzCase>();
if(xczwbh!=null&&!"".equals(xczwbh)){
caseList = xsjsbdService.getXsjsbdxqCase(xczwbh);
}
modelAndView.addObject("zwxxzs",0);
modelAndView.addObject("zwxxzhs",0);
if(caseList.size()>0){
List<TbXsjszyZwZwbzCase> caseZwList = xsjsbdService.getXsjsbdxqCaseZwAll(xczwbh);
if(caseZwList!=null&&caseZwList.size()>0){
modelAndView.addObject("zwxxzs",caseZwList.size());
}
modelAndView.addObject("casexx",caseList.get(0));
}else{
modelAndView.addObject("casexx",new TbXsjszyZwZwbzCase());
}
modelAndView.setViewName("ajswtz/ajswtzxx");
return modelAndView;
}
/**
* 根据现场指纹编号查询详情信息
* @return
*/
@ResponseBody
@RequestMapping("/getXczwtp")
public Map<String,Object> getXczwtp(HttpServletRequest request, String xczwbh) throws ExecutionException, InterruptedException {
Map<String,Object> returnMap=new HashMap<>();
BASE64Encoder encoder = new BASE64Encoder();
List<TbXsjszyZwZwbzCase> caseZwList = xsjsbdService.getXsjsbdxqCaseZwAll(xczwbh);
if(caseZwList!=null&&caseZwList.size()>0&&caseZwList.get(0).getAjbzzwtp()!=null&&caseZwList.get(0).getAjbzzwtp().length>0){
for(int i=0;i<caseZwList.size();i++){
returnMap.put(caseZwList.get(i).getXczwxh().toString(),encoder.encode(caseZwList.get(i).getAjbzzwtp()));
}
}
return returnMap;
}
}
package com.founder.ajswtz.service;
import com.founder.model.AfisQualityCcrw;
import com.founder.model.amsis.*;
import com.founder.service.IService;
import com.founder.utils.EasyUIPage;
import java.util.List;
......@@ -31,6 +33,15 @@ public interface IAjswtzService {
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(String nyzwbh, String xczwbh);
/**
* 根据指纹比中的指纹编号查询详情信息
* @return
*/
List<TbXsjszyZwZwbzJbxx> getZwbzJbxx(TbXsjszyZwZwbzJbxx entity);
List<TbXsjszyZwZwbzJbxx> getCcbzJbxx(TbXsjszyZwZwbzJbxx entity);
public EasyUIPage queryZwbzPage(EasyUIPage page, TbXsjszyZwZwbzJbxx entity);
public EasyUIPage queryCcbzPage(EasyUIPage page, TbXsjszyZwZwbzJbxx entity);
/**
* 根据指纹比中的指纹编号查询详情信息(人员)
* @param nyzwbh,nyzw
* @return
......@@ -43,6 +54,7 @@ public interface IAjswtzService {
* @return
*/
List<TbXsjszyZwZwbzCase> getXsjsbdxqCaseZw(String xczwbh,String zwxh);
List<TbXsjszyZwZwbzCase> getXsjsbdxqCaseZwAll(String xczwbh);
/**
* 根据主键编号查询指纹比中信息-
......
......@@ -7,12 +7,18 @@ import com.founder.ajswtz.service.IAjswtzService;
import com.founder.ajswtz.stamsisAjzwDao.StAmsisAjzwDao;
import com.founder.ajswtz.stamsisDao.StAmsisDao;
import com.founder.ajswtz.stamsisRyzwDao.StAmsisRyzwDao;
import com.founder.model.AfisQualityCcrw;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.*;
import com.founder.service.impl.BaseService;
import com.founder.utils.EasyUIPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -68,6 +74,38 @@ public class AjswtzServiceImpl implements IAjswtzService {
return list;
}
@Override
public List<TbXsjszyZwZwbzJbxx> getZwbzJbxx(TbXsjszyZwZwbzJbxx entity){
Map<String, Object> map = new HashMap<String, Object>();
map.put("entity", entity);
List<TbXsjszyZwZwbzJbxx> list = null;
try {
list = amsisDao.getZwbzJbxx(map);
if(list == null||list.size()<=0){
list = stamsisDao.getZwbzJbxx(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询基本详情信息异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzJbxx> getCcbzJbxx(TbXsjszyZwZwbzJbxx entity){
Map<String, Object> map = new HashMap<String, Object>();
map.put("entity", entity);
List<TbXsjszyZwZwbzJbxx> list = null;
try {
list = amsisDao.getCcbzJbxx(map);
if(list == null||list.size()<=0){
list = stamsisDao.getCcbzJbxx(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询基本详情信息异常"+e);
}
return list;
}
@Override
public List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(String nyzwbh, String xczwbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("nyzwbh", nyzwbh);
......@@ -86,6 +124,54 @@ public class AjswtzServiceImpl implements IAjswtzService {
}
@Override
public EasyUIPage queryZwbzPage(EasyUIPage page, TbXsjszyZwZwbzJbxx entity) {
Map<String, Object> map = new HashMap<>();
map.put("begin", page.getBegin());
map.put("end", page.getEnd());
String sort = page.getSort();
String order = page.getOrder();
if (StringUtils.isEmpty(sort)) { // 默认排序
sort = "AFFIRMTIME";
order = "desc";
}
map.put("sort", sort);
map.put("order", order);
map.put("entity", entity);
map.put("entity", entity);
page.setTotal(amsisDao.queryZwbzPageCount(map));
if (page.getTotal() == 0) {
page.setRows(new ArrayList<>());
} else {
page.setRows(amsisDao.queryZwbzPageList(map));
}
return page;
}
@Override
public EasyUIPage queryCcbzPage(EasyUIPage page, TbXsjszyZwZwbzJbxx entity) {
Map<String, Object> map = new HashMap<>();
map.put("begin", page.getBegin());
map.put("end", page.getEnd());
String sort = page.getSort();
String order = page.getOrder();
if (StringUtils.isEmpty(sort)) { // 默认排序
sort = "AFFIRMTIME";
order = "desc";
}
map.put("sort", sort);
map.put("order", order);
map.put("entity", entity);
map.put("entity", entity);
page.setTotal(amsisDao.queryCcbzPageCount(map));
if (page.getTotal() == 0) {
page.setRows(new ArrayList<>());
} else {
page.setRows(amsisDao.queryCcbzPageList(map));
}
return page;
}
@Override
public List<TbXsjszyZwZwbzPerson> getXsjsbdxqPersonZw(String nyzwbh,String nyzw){
Map<String, Object> map = new HashMap<String, Object>();
map.put("nyzwbh", nyzwbh);
......@@ -121,6 +207,23 @@ public class AjswtzServiceImpl implements IAjswtzService {
}
@Override
public List<TbXsjszyZwZwbzCase> getXsjsbdxqCaseZwAll(String xczwbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("xczwbh", xczwbh);
List<TbXsjszyZwZwbzCase> list = null;
try {
list = amsisAjzwDao.getXsjsbdxqAllAjzw(map);
if(list == null||list.size()<=0){
list = stamsisAjzwDao.getXsjsbdxqAllAjzw(map);
}
} catch (Exception e) {
System.out.println("根据指纹比中的指纹编号查询指纹图片异常"+e);
}
return list;
}
@Override
public TbXsjszyZwZwbzJbxx getZwBzxx(String xxzjbh){
Map<String, Object> map = new HashMap<String, Object>();
map.put("xxzjbh", xxzjbh);
......
......@@ -16,4 +16,5 @@ import java.util.Map;
@Mapper
public interface StAmsisAjzwDao {
List<TbXsjszyZwZwbzCase> getXsjsbdxqAjzw(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqAllAjzw(Map<String, Object> map);
}
......@@ -20,4 +20,8 @@ public interface StAmsisDao {
List<TbXsjszyZwZwbzPerson> getXsjsbdxqPerson(Map<String, Object> map);
List<TbXsjszyZwZwbzCase> getXsjsbdxqCase(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getXsjsbdxqJbxx(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getZwbzJbxx(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> getCcbzJbxx(Map<String, Object> map);
Integer queryPageCount(Map<String, Object> map);
List<TbXsjszyZwZwbzJbxx> queryPageList(Map<String, Object> map);
}
......@@ -23,6 +23,8 @@ public class DefaultViewConfig implements WebMvcConfigurer {
registry.addViewController("/catchimg").setViewName("rygl/demo");
registry.addViewController("/iframe1").setViewName("zlcc/iframe1");
registry.addViewController("/iframe2").setViewName("zlcc/iframe2");
registry.addViewController("/iframe3").setViewName("zwbzgl/iframe1");
registry.addViewController("/iframe4").setViewName("zwbzgl/iframe2");
registry.addViewController("/xj").setViewName("zlcc/xj");
registry.addViewController("/report").setViewName("zlcc/report");
registry.addViewController("/sheb").setViewName("cjqx/sheb");
......
......@@ -18,7 +18,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
registry.addInterceptor(InterceptorConfig).
addPathPatterns("/**").
excludePathPatterns("/","/toLogin","/getSjcntDetail","/noLogin","/saveSwSjXx",
"/saveHmSjXx","/getSwSjXx","/getYthcjryxxByZjhm","/getYthcjUser","/getZfbaUser",
"/saveHmSjXx","/getSwSjXx","/getYthcjryxxByZjhm","/getYthcjUser","/getZfbaUser","/getZwbzJbxxCnt","/getCcbzJbxxCnt",
"/doLogin","/toHome","/static*//**","/refreshCodeCache","/qxdoLogin","/queryNameByCode","/queryTypeCode","/toFjxz","/toCzsmxz","/download/**","/toObjectKJ","/catchimg","/iframe1","/iframe2","/xj","/report","/SavePersonInfo4Nmtc","/singleLoginAct");
......
package com.founder.controller;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import com.alibaba.fastjson.JSONObject;
import com.founder.model.AutoTbStRy;
......@@ -390,6 +391,8 @@ public class HmCjController {
public boolean sendHmxxToHongba(Model model, String asjxgrybh,HttpServletRequest request){
List<TbStHm> hmxxs = hmCjService.getHmxxInfoList(asjxgrybh);
AutoTbStRy xyrC = rycjService.getRyxxByRybh(asjxgrybh);
Param param = paramService.getParamById("0098");
String urlstr = param.getParamvalue();
User user = (User) request.getSession().getAttribute("User");
Map<String, Object> res = new HashMap<>();
res.put("client_id", "neimengxingzhuan");
......@@ -406,7 +409,24 @@ public class HmCjController {
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
JSONObject sbbhjson = FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);
if(sbbhjson!=null){
System.out.println("sbbhjson====="+sbbhjson);
JSONObject jso = sbbhjson.getJSONObject("info");
if(jso!=null){
String csdm = jso.getString("vendorCode");
String sbxh = jso.getString("deviceType");
String sbbm = jso.getString("deviceNum");
res.put("sbbh",sbbm);
}
}
}else if(hmxxs.get(0).getSbbh().length()>30){
res.put("sbbh",hmxxs.get(0).getSbbh().substring(hmxxs.get(0).getSbbh().length()-30,hmxxs.get(0).getSbbh().length()));
}else{
res.put("sbbh",hmxxs.get(0).getSbbh());
}
res.put("cjcd","11");
res.put("dzmc","内蒙古呼和浩特市");
res.put("jd","");
......@@ -446,7 +466,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64());
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/api/xingzhuan/v1/regIris",res);
JSONObject jsonResult= FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......@@ -457,6 +477,8 @@ public class HmCjController {
public boolean hmxxCy(Model model, String asjxgrybh,HttpServletRequest request){
List<TbStHm> hmxxs = hmCjService.getHmxxInfoList(asjxgrybh);
AutoTbStRy xyrC = rycjService.getRyxxByRybh(asjxgrybh);
Param param = paramService.getParamById("0098");
String urlstr = param.getParamvalue();
User user = (User) request.getSession().getAttribute("User");
Map<String, Object> res = new HashMap<>();
res.put("client_id", "neimengxingzhuan");
......@@ -473,7 +495,24 @@ public class HmCjController {
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
JSONObject sbbhjson = FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);
if(sbbhjson!=null){
System.out.println("sbbhjson====="+sbbhjson);
JSONObject jso = sbbhjson.getJSONObject("info");
if(jso!=null){
String csdm = jso.getString("vendorCode");
String sbxh = jso.getString("deviceType");
String sbbm = jso.getString("deviceNum");
res.put("sbbh",sbbm);
}
}
}else if(hmxxs.get(0).getSbbh().length()>30){
res.put("sbbh",hmxxs.get(0).getSbbh().substring(hmxxs.get(0).getSbbh().length()-30,hmxxs.get(0).getSbbh().length()));
}else{
res.put("sbbh",hmxxs.get(0).getSbbh());
}
res.put("cjcd","11");
res.put("dzmc","内蒙古呼和浩特市");
res.put("jd","");
......@@ -493,7 +532,7 @@ public class HmCjController {
}
}
res.put("cjtphs","1.825");
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/iris/irisInspection",res);
JSONObject jsonResult= FileUtils.requestByPost(urlstr+"/iris/irisInspection",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......@@ -504,6 +543,8 @@ public class HmCjController {
public boolean hmxxHy(Model model, String asjxgrybh,HttpServletRequest request){
List<TbStHm> hmxxs = hmCjService.getHmxxInfoList(asjxgrybh);
AutoTbStRy xyrC = rycjService.getRyxxByRybh(asjxgrybh);
Param param = paramService.getParamById("0098");
String urlstr = param.getParamvalue();
User user = (User) request.getSession().getAttribute("User");
Map<String, Object> res = new HashMap<>();
res.put("client_id", "neimengxingzhuan");
......@@ -520,7 +561,24 @@ public class HmCjController {
res.put("user_deptname",unitname);
res.put("sbcsdm",hmxxs.get(0).getSbcsdm());
res.put("hmcjsbxhdm","01");
res.put("sbbh",hmxxs.get(0).getSbxh());
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
JSONObject sbbhjson = FileUtils.requestByPost(urlstr+"/api/xingzhuan/v1/regIris",res);
if(sbbhjson!=null){
System.out.println("sbbhjson====="+sbbhjson);
JSONObject jso = sbbhjson.getJSONObject("info");
if(jso!=null){
String csdm = jso.getString("vendorCode");
String sbxh = jso.getString("deviceType");
String sbbm = jso.getString("deviceNum");
res.put("sbbh",sbbm);
}
}
}else if(hmxxs.get(0).getSbbh().length()>30){
res.put("sbbh",hmxxs.get(0).getSbbh().substring(hmxxs.get(0).getSbbh().length()-30,hmxxs.get(0).getSbbh().length()));
}else{
res.put("sbbh",hmxxs.get(0).getSbbh());
}
res.put("cjcd","11");
res.put("dzmc","内蒙古呼和浩特市");
res.put("jd","");
......@@ -558,7 +616,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64());
JSONObject jsonResult= FileUtils.requestByPost("http://10.2.89.141/iris/irisCheck",res);
JSONObject jsonResult= FileUtils.requestByPost(urlstr+"/iris/irisCheck",res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......
package com.founder.controller;
import com.founder.ajswtz.service.IAjswtzService;
import com.founder.model.*;
import com.founder.model.amsis.Plainimg;
import com.founder.model.amsis.Rollimg;
import com.founder.model.amsis.TbXsjszyZwZwbzJbxx;
import com.founder.module.redis.service.IDicItemService;
import com.founder.service.*;
import com.founder.util.TestTask;
import com.founder.utils.*;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.util.CellRangeAddress;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import sun.misc.BASE64Decoder;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
@Controller
public class XsjsbzController {
private Logger log= LoggerFactory.getLogger(this.getClass());
@Autowired
private IDicItemService dicItemService;
@Autowired
private IAjswtzService ajswtzService;
@Autowired
private TestTask asyncTask;
@RequestMapping("/toZwbzgl")
public String toZwbzgl(Model model, HttpServletRequest request){
User user = (User)request.getSession().getAttribute("User");
model.addAttribute("username",user.getUsername());
return "zwbzgl/cxlist";
}
@RequestMapping("/queryZwbzList")
@ResponseBody
public EasyUIPage queryZwbzList(@ModelAttribute TbXsjszyZwZwbzJbxx zwbz,
EasyUIPage easyUIPage, Integer rows, HttpServletRequest request, Model model){
easyUIPage.setPagePara(rows);
User user = (User)request.getSession().getAttribute("User");
if(user==null){
System.out.println("登录已失效");
model.addAttribute("ifdl","0");
}
//ryxx.setLrr(user.getUnitcode());
easyUIPage=ajswtzService.queryZwbzPage(easyUIPage,zwbz);
return easyUIPage;
}
@RequestMapping("/queryCcbzList")
@ResponseBody
public EasyUIPage queryZlccrwPage(@ModelAttribute TbXsjszyZwZwbzJbxx zwbz,
EasyUIPage easyUIPage, Integer rows, HttpServletRequest request, Model model){
easyUIPage.setPagePara(rows);
User user = (User)request.getSession().getAttribute("User");
if(user==null){
System.out.println("登录已失效");
model.addAttribute("ifdl","0");
}
//ryxx.setLrr(user.getUnitcode());
easyUIPage=ajswtzService.queryCcbzPage(easyUIPage,zwbz);
return easyUIPage;
}
@RequestMapping("/getZwbzJbxxCnt")
@ResponseBody
public String getZwbzJbxxCnt(Model model, HttpServletRequest request,String fbzsj,String ebzsj,String bzdwdm){
User user = (User)request.getSession().getAttribute("User");
TbXsjszyZwZwbzJbxx zwbz = new TbXsjszyZwZwbzJbxx();
zwbz.setFbzsj(fbzsj);
zwbz.setEbzsj(ebzsj);
zwbz.setAffirmunitcode(bzdwdm);
List<TbXsjszyZwZwbzJbxx> zwbzs = ajswtzService.getZwbzJbxx(zwbz);
if(zwbzs!=null){
return zwbzs.size()+"";
}else{
return "0";
}
}
@RequestMapping("/getCcbzJbxxCnt")
@ResponseBody
public String getCcbzJbxxCnt(Model model, HttpServletRequest request,String fbzsj,String ebzsj,String bzdwdm){
User user = (User)request.getSession().getAttribute("User");
TbXsjszyZwZwbzJbxx zwbz = new TbXsjszyZwZwbzJbxx();
zwbz.setFbzsj(fbzsj);
zwbz.setEbzsj(ebzsj);
zwbz.setAffirmunitcode(bzdwdm);
List<TbXsjszyZwZwbzJbxx> zwbzs = ajswtzService.getCcbzJbxx(zwbz);
if(zwbzs!=null){
return zwbzs.size()+"";
}else{
return "0";
}
}
}
......@@ -58,6 +58,7 @@ public class TbStHm implements Serializable {
private String request_id;
private String sbcsdm;
private String xxzldf;
private String sbbh;
public String getXxzldf() {
return xxzldf;
......@@ -218,4 +219,12 @@ public class TbStHm implements Serializable {
public void setSbcsdm(String sbcsdm) {
this.sbcsdm = sbcsdm;
}
public String getSbbh() {
return sbbh;
}
public void setSbbh(String sbbh) {
this.sbbh = sbbh;
}
}
......@@ -70,6 +70,7 @@ public class TbXsjszyZwZwbzCase implements Serializable {
private byte[] ajbzzwtp; //案件比中指纹图片
private String ajbzzwtpBase64;
private String xczwxh; //案件比中指纹序号
public static long getSerialVersionUID() {
return serialVersionUID;
......@@ -530,4 +531,12 @@ public class TbXsjszyZwZwbzCase implements Serializable {
public void setAjbzzwtpBase64(String ajbzzwtpBase64) {
this.ajbzzwtpBase64 = ajbzzwtpBase64;
}
public String getXczwxh() {
return xczwxh;
}
public void setXczwxh(String xczwxh) {
this.xczwxh = xczwxh;
}
}
......@@ -57,6 +57,9 @@ public class TbXsjszyZwZwbzJbxx implements Serializable {
private String datasource; //数据来源,默认为0AMSIS,1高科
private String hunttime; //抓获时间
private String huntunitcode; //抓获单位
private String fbzsj; //比中时间开始时间
private String ebzsj; //比中时间结束时间
private String sourcebarcode; //查重源条码
public static long getSerialVersionUID() {
return serialVersionUID;
......@@ -421,4 +424,28 @@ public class TbXsjszyZwZwbzJbxx implements Serializable {
public void setHuntunitcode(String huntunitcode) {
this.huntunitcode = huntunitcode;
}
public String getFbzsj() {
return fbzsj;
}
public void setFbzsj(String fbzsj) {
this.fbzsj = fbzsj;
}
public String getEbzsj() {
return ebzsj;
}
public void setEbzsj(String ebzsj) {
this.ebzsj = ebzsj;
}
public String getSourcebarcode() {
return sourcebarcode;
}
public void setSourcebarcode(String sourcebarcode) {
this.sourcebarcode = sourcebarcode;
}
}
package com.founder.service.impl;
import com.founder.ajswtz.amsisDao.AmsisDao;
import com.founder.ajswtz.amsisRyzwDao.AmsisRyzwDao;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Plainimg;
import com.founder.service.AmsisPlainImgService;
......@@ -15,7 +15,7 @@ import java.util.Map;
public class AmsisPlainImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisPlainImgService {
@Autowired
private AmsisDao mapper;
private AmsisRyzwDao mapper;
@Override
public Plainimg getAmsisPlainImgService(String szzwbh) {
......
package com.founder.service.impl;
import com.founder.ajswtz.amsisDao.AmsisDao;
import com.founder.ajswtz.amsisRyzwDao.AmsisRyzwDao;
import com.founder.model.AutoTbStRy;
import com.founder.model.amsis.Rollimg;
import com.founder.service.AmsisRollImgService;
......@@ -15,7 +15,7 @@ import java.util.Map;
public class AmsisRollImgServiceImpl extends BaseService<AutoTbStRy> implements AmsisRollImgService {
@Autowired
private AmsisDao mapper;
private AmsisRyzwDao mapper;
@Override
public Rollimg getAmsisImgService(String szzwbh) {
......
<?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 namespace="com.founder.ajswtz.amsisDao.AmsisDao">
<mapper namespace="com.founder.ajswtz.amsisRyzwDao.AmsisRyzwDao">
<select id="getRollimgByBarcode" resultType="com.founder.model.amsis.Rollimg" parameterType="map">
select
......
......@@ -6,4 +6,9 @@
<select id="getXsjsbdxqAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} and t.hpseqno= #{xczwxh}
</select>
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqAllAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select barcode as barcode, hpseqno as xczwxh, hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} order by xczwxh
</select>
</mapper>
\ No newline at end of file
......@@ -16,4 +16,57 @@
<select id="getXsjsbdxqJbxx" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx">
select t.* from LA_MATCHCAND t where (t.SRCBARCODE= #{xczwbh} and t.DESTBARCODE= #{nyzwbh} and t.LA_TYPE ='LA') or (t.SRCBARCODE= #{nyzwbh} and t.DESTBARCODE= #{xczwbh} and t.LA_TYPE ='AL')
</select>
<!--查询指纹比中信息详情-->
<select id="getZwbzJbxx" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx">
select t.* from LA_MATCHCAND t where
1=1
<include refid="queryWhere"/>
</select>
<!--查询指纹比中信息详情-->
<select id="getCcbzJbxx" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx">
select ID,SOURCEBARCODE,DESTBARCODE,AFFIRMUNITCODE,AFFIRMTIME,AFFIRMUSERID from AA_MATCHCAND t where
1=1
<include refid="queryWhere"/>
</select>
<sql id="queryWhere">
<if test="entity.srcbarcode != null and entity.srcbarcode != ''"> AND SRCBARCODE = #{entity.srcbarcode , jdbcType=VARCHAR } </if>
<if test="entity.sourcebarcode != null and entity.sourcebarcode != ''"> AND SOURCEBARCODE = #{entity.sourcebarcode , jdbcType=VARCHAR } </if>
<if test="entity.destbarcode != null and entity.destbarcode != ''"> AND DESTBARCODE = #{entity.destbarcode , jdbcType=VARCHAR } </if>
<if test="entity.affirmunitcode != null and entity.affirmunitcode != ''"> AND AFFIRMUNITCODE = #{entity.affirmunitcode , jdbcType=VARCHAR } </if>
<if test="entity.la_type != null and entity.la_type != ''"> AND LA_TYPE = #{entity.la_type , jdbcType=VARCHAR } </if>
<if test="entity.fbzsj != null and entity.fbzsj != ''"> AND AFFIRMTIME <![CDATA[>=]]> to_date(#{entity.fbzsj , jdbcType=VARCHAR },'yyyy-mm-dd') </if>
<if test="entity.ebzsj != null and entity.ebzsj != ''"> AND AFFIRMTIME <![CDATA[<]]> to_date(#{entity.ebzsj , jdbcType=VARCHAR },'yyyy-mm-dd')+1 </if>
</sql>
<select id="queryZwbzPageCount" resultType="int" parameterType="map">
select count(1) from LA_MATCHCAND where
1=1
<include refid="queryWhere"/>
</select>
<select id="queryZwbzPageList" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx" parameterType="map">
<![CDATA[SELECT t.* FROM (
SELECT a.* , rownum r FROM (]]>
SELECT t.*
from LA_MATCHCAND t where 1=1
<include refid="queryWhere"/>
<![CDATA[ order by ${sort} ${order} ) a
WHERE ROWNUM <= #{ end } ) t
WHERE r > #{ begin } ]]>
</select>
<select id="queryCcbzPageCount" resultType="int" parameterType="map">
select count(1) from AA_MATCHCAND t where
1=1
<include refid="queryWhere"/>
</select>
<select id="queryCcbzPageList" resultType="com.founder.model.amsis.TbXsjszyZwZwbzJbxx" parameterType="map">
<![CDATA[SELECT t.* FROM (
SELECT a.* , rownum r FROM (]]>
SELECT ID,SOURCEBARCODE,DESTBARCODE,AFFIRMUNITCODE,AFFIRMTIME,AFFIRMUSERID from AA_MATCHCAND t where 1=1
<include refid="queryWhere"/>
<![CDATA[ order by ${sort} ${order} ) a
WHERE ROWNUM <= #{ end } ) t
WHERE r > #{ begin } ]]>
</select>
</mapper>
\ No newline at end of file
......@@ -6,4 +6,8 @@
<select id="getXsjsbdxqAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} and t.hpseqno= #{xczwxh}
</select>
<!--查询指纹比中信息人员详情-->
<select id="getXsjsbdxqAllAjzw" parameterType="java.util.Map" resultType="com.founder.model.amsis.TbXsjszyZwZwbzCase">
select barcode as barcode, hpseqno as xczwxh, hdc as ajbzzwtp from lathp_org t where t.barcode = #{xczwbh} order by xczwxh
</select>
</mapper>
\ No newline at end of file
......@@ -75,11 +75,10 @@
<li id="H10A03">
<a onclick="ryxxgl()">人员信息管理</a>
</li>
-->
<li id="H10A03">
<a onclick="swtzbdfk()">人员生物特征比对反馈</a>
<a onclick="zwbzgl()">指纹比中管理</a>
</li>
-->
</ul>
</div>
</div>
......@@ -319,6 +318,10 @@
window.open("/toZlccrwList?isfirst=1",'_blank');
}
function zwbzgl(){
window.open("/toZwbzgl?isfirst=1",'_blank');
}
function ryxxgl(){
window.open("/toRyxxList?isfirst=1",'_blank');
}
......
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>指纹比中信息管理</title>
<link rel="icon" href="static/xtba/zlcc/favicon.ico" type="image/x-icon">
<!--- 用采合一-->
<link rel="stylesheet" href="static/xtba/zlcc/css/ychy.css">
<!--- 时间插件-->
<link rel="stylesheet" href="static/xtba/zlcc/css/datepicker/skin/WdatePicker.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/datepicker/skin/default/datepicker.css">
<!--- 代码框-->
<link rel="stylesheet" href="static/xtba/zlcc/easyui-window/css/easyui.css">
<link rel="stylesheet" href="static/xtba/zlcc/easyui-window/css/icon.css">
<link rel="stylesheet" href="static/xtba/zlcc/layer/skin/layer.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/bootstrap.min.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/font-awesome.min.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/base_initialize.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/style.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/append.css">
</head>
<body style="overflow: auto">
<header class="heade-box">
<img src="/static/xtba/zlcc/img/title_zwbzxxgl.png" class="header-title-img" alt="">
<!--
<div style="width: 500px;height: 300px;padding-top: 20px;">
<span style="font-size:32px;font-weight:bold;text-align:center;margin-left: 50px;margin-top: 5px;width: 300px;height: 100px;padding-top: 20px;color: #ffffff;">指纹比中信息管理</span>
</div>
-->
</header>
<aside class="left-menu-box">
<ul class="left-list">
<li id="B0601" class="posi" flag="0" onclick="changeContent(this)">
<a id="left_gmajgl" class="left-list-ftitle current">
<i class="fa fa-search" style="font-size:12px;"></i> 正倒查比中
</a>
<i class="fa fa-caret-left zdy-icon zdy-icon2" style="display: inherit;"></i>
</li>
<li id="B0602" class="posi" flag="1" onclick="changeContent(this)">
<a id="left_gmajspgl" class="left-list-ftitle">
<i class="fa fa-book" style="font-size:12px;"></i> 查重比中
</a>
<i class="fa fa-caret-left zdy-icon zdy-icon2"></i>
</li>
</ul>
</aside>
<article class="main-cen-box" style="margin-left: 230px;">
<div id="content0" class="content-box" style="display: block;">
<iframe name="myiframe" id="f1" src="iframe3" frameborder="0" align="left" width="100%" height="100%" scrolling="yes"></iframe>
</div>
<div id="content1" class="content-box" style="display: block;">
<iframe name="myiframe" id="f2" src="iframe4" frameborder="0" align="left" width="100%" height="100%" scrolling="yes"></iframe>
</div>
</article>
<script src="static/xtba/zlcc/js/jquery.min.js" type="text/javascript"></script>
<script src="static/xtba/zlcc/layer/layer.js" type="text/javascript"></script>
<!--- 代码框-->
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/function-zdy.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/easyui-lang-zh_CN.js"></script>
<!--- 日期时间-->
<script type="text/javascript" src="static/xtba/zlcc/css/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/css/datepicker/calendar.js"></script>
<script>
$('#zczlxxtable').datagrid({
striped : true,
singleSelect:true,
nowrap:true,
scrollbarSize: 0,
selectOnCheck : false,
checkOnSelect : false,
fit:false,
fitColumns:false,
pagination : true,
//pageSize : 5,
//pageList : [5,10,15,20], //rows
//pageNumber : 1 //显示在第几页
});
//新建弹框
function newDialog(){
var dialogId='new';
openUrlForm({
id:dialogId,
url:'xj',
title:'新建',
width:600,
height:300,
cache:false,
onClose:function(){
}
},[
{
//确定生成表头配置信息,并重新加载表格数据
text:'保存',
handler:function(){
$('#new').dialog('close');
}
},{
text:'取消',
handler:function(){
$('#new').dialog('close');
}
}
])
}
function changeContent(obj){
var _this=obj;
var ind=$(_this).attr("flag");
$(".main-cen-box>div.content-box,.zdy-icon").hide();
$(".left-list-ftitle").removeClass("current");
$(_this).find("a").addClass("current");
$(_this).find(".zdy-icon").show()
$("#content"+ind).show();
}
window.onload=function (){
$(".content-box").hide();
$("#content0").show();
}
</script>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>抽查任务查询</title>
<link rel="icon" href="static/xtba/zlcc/favicon.ico" type="image/x-icon">
<!--- 用采合一-->
<link rel="stylesheet" href="static/xtba/zlcc/css/ychy.css">
<!--- 时间插件-->
<link rel="stylesheet" href="static/xtba/zlcc/css/datepicker/skin/WdatePicker.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/datepicker/skin/default/datepicker.css">
<!--- 代码框-->
<link rel="stylesheet" href="static/xtba/zlcc/easyui-window/css/easyui.css">
<link rel="stylesheet" href="static/xtba/zlcc/easyui-window/css/icon.css">
<link rel="stylesheet" href="static/xtba/zlcc/layer/skin/layer.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/bootstrap.min.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/font-awesome.min.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/base_initialize.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/style.css">
<link rel="stylesheet" href="static/xtba/zlcc/css/append.css">
</head>
<body style="overflow: auto">
<div class="cxtj">
<input type="hidden" id="flg" name="flg" value="1"/>
<form name="zlccrwForm">
<fieldset>
<legend>查询条件</legend>
<table>
<tbody>
<tr>
<td colspan="6" style="height:20px;"></td>
</tr>
<tr>
<td class="ar" width="13.3%">源条码:</td>
<td width="20%">
<span class="textbox">
<input type="text" name="sourcebarcode">
</span>
</td>
<td class="ar" width="13.3%">目标条码:</td>
<td width="20%">
<span class="textbox">
<input type="text" name="destbarcode">
</span>
</td>
<td class="ar" width="13.3%">比中单位:</td>
<td width="20%">
<span class="textbox">
<input type="text" style="height: 30px;" id="affirmunitcode" name="affirmunitcode" class="val easyui-combobox" data-options="url: '/queryTypeCode?type=CODE_UNIT',method:'get',textField : 'text', valueField : 'id'"/>
</span>
</td>
</tr>
<tr>
<td class="ar" width="13.3%">比中时间:</td>
<td width="20%">
<span class="textbox">
<input id="fbzsj" name="fbzsj" class="Wdate" type="text" onkeypress="return checkDateFmt();" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
</span>
</td>
<td class="ar" width="13.3%">至:</td>
<td width="20%">
<span class="textbox">
<input id="ebzsj" name="ebzsj" class="Wdate" type="text" onkeypress="return checkDateFmt();" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"/>
</span>
</td>
<td class="ar" width="13.3%"></td>
<td width="20%">
</td>
</tr>
<tr>
<td colspan="6">
<div style="width: 100%; float: left; text-align: center;height: 44px;line-height: 44px;">
<a class="btn_a btn_search" onclick="doQuery()">查询</a>
<a class="btn_a btn_empty" onclick="doClear()">清空</a>
</div>
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</div>
<div class="main-table-div">
<div class="statistics">列表展示</div>
<div style="margin-top:10px">
<table class="easyui-datagrid" style="border-top:1px dashed #ccc;" id="zczlxxtable">
</table>
</div>
</div>
<script src="static/xtba/zlcc/js/jquery.min.js" type="text/javascript"></script>
<script src="static/xtba/zlcc/layer/layer.js" type="text/javascript"></script>
<!--- 代码框-->
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/function-zdy.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/easyui-window/js/easyui-lang-zh_CN.js"></script>
<!--- 日期时间-->
<script type="text/javascript" src="static/xtba/zlcc/css/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/css/datepicker/calendar.js"></script>
<script type="text/javascript" src="static/xtba/zlcc/js/echarts-zdy.js"></script>
<script>
openCombotree('affirmunitcode');
$('#zczlxxtable').datagrid({
striped : true,
singleSelect:true,
nowrap:true,
scrollbarSize: 0,
selectOnCheck : false,
checkOnSelect : false,
fit:false,
fitColumns:false,
pagination : true,
//pageSize : 5,
//pageList : [5,10,15,20], //rows
//pageNumber : 1 //显示在第几页
});
function doQuery(){
$.ajax({
url:"/getLoginUser",
type:"POST",
success:function(data){
if(data==null||data==undefined||data=="undefined"||data.username==null||data.username==undefined||data.username==""||data.username=="undefined"){
//$.messager.alert( '提示',"用户信息已失效,请重新登录!");
window.open('/noLogin',"_parent");
}
}
});
var table_title = [
{title:"源条码",field:"sourcebarcode",align:'center',width:180,formatter:function(val,row,index){
var sourcebarcode=row.sourcebarcode;
return sourcebarcode;
}},
{title:"目标条码",field:"destbarcode",align:'center',width:180,formatter:function(val,row,index){
var destbarcode=row.destbarcode;
return destbarcode;
}},
{title:"比中类型",field:"affirmuserid",align:'center',width:100,formatter:function(val,row,index){
return "查重";
}},
{title:"比中时间",field:"affirmtime",align:'center',width:150,formatter:function(val,row,index){
var affirmtime=row.affirmtime;
return affirmtime;
}},
{title:"比中单位",field:"affirmunitcode",align:'center',width:250,formatter:function(val,row,index){
var affirmunitcode=row.affirmunitcode;
var affirmunitname="";
affirmunitname=codeFormatter(affirmunitcode,"CODE_UNIT");
return affirmunitname;
}}
];
debugger;
$('#zczlxxtable').datagrid({
url: "queryCcbzList",
columns : [table_title],
striped : true,
queryParams:serializeObject($("form[name='zlccrwForm']")),
singleSelect:true,
nowrap:true, //设置是否换行,false换行,true不换行
fitColumns:true,
scrollbarSize: 0,
selectOnCheck : false,
checkOnSelect : false,
fit:false,
pagination : true,
pageSize : 20,
pageList : [10,20,50,100,200], //rows
pageNumber : 1,
loadFilter: function(data){
return data;
}
});
}
//将表单序列化
function serializeObject(form){
var o={};
$.each(form.serializeArray(),function(index){
if(o[this['name'] ]){
o[this['name'] ] = o[this['name'] ] + "," + this['value'];
}else{
o[this['name'] ]=this['value'];
}
})
return o;
}
function doClear(){
$("form[name='zlccrwForm']") .find("input").val('');
$("#affirmunitcode").combotree("setValue",'');
}
$(function(){
doQuery();
});
//格式化字典
function codeFormatter(val,type){
var codeName="";
$.ajax({
url:"/queryNameByCode",
data:{"codeId":val,"codeType":type},
async:false,
type:"post",
dataType:"text",
success:function(data){
codeName=data;
},
error:function(e){
console.log("error="+JSON.stringify(e));
}
});
return codeName;
}
</script>
</body>
</html>
\ No newline at end of file
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