Commit 6cf70b72 by caojingji

Merge remote-tracking branch 'remotes/master/master' into caopeng_bate1

parents 758c5c3e 43ab058b
...@@ -211,7 +211,11 @@ ...@@ -211,7 +211,11 @@
<artifactId>joda-time</artifactId> <artifactId>joda-time</artifactId>
<version>2.3</version> <version>2.3</version>
</dependency> </dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.2</version>
</dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>cqnt</finalName> <finalName>cqnt</finalName>
......
...@@ -84,6 +84,8 @@ public class BkScheduleService { ...@@ -84,6 +84,8 @@ public class BkScheduleService {
@Scheduled(initialDelay = 6000,fixedDelay = 5*60*1000) @Scheduled(initialDelay = 6000,fixedDelay = 5*60*1000)
public void gjzzTask(){ public void gjzzTask(){
List<Bkxx> glgxTasks = getBkTasks("gjzz","02"); List<Bkxx> glgxTasks = getBkTasks("gjzz","02");
System.out.println("listSize================================================="+glgxTasks.size());
System.out.println(glgxTasks);
//更新需要停止的布控任务 //更新需要停止的布控任务
taskBody(glgxTasks); taskBody(glgxTasks);
} }
...@@ -121,7 +123,7 @@ public class BkScheduleService { ...@@ -121,7 +123,7 @@ public class BkScheduleService {
Predicate p2 = criteriaBuilder.notEqual(root.get("bkzt").as(String.class), "03"); Predicate p2 = criteriaBuilder.notEqual(root.get("bkzt").as(String.class), "03");
//增加查询追踪的相关功能 //增加查询追踪的相关功能
Predicate p3 = criteriaBuilder.notEqual(root.get("type").as(String.class), flag); Predicate p3 = criteriaBuilder.equal(root.get("type").as(String.class), flag);
criteriaQuery.where(criteriaBuilder.and(p1,p2,p3)); criteriaQuery.where(criteriaBuilder.and(p1,p2,p3));
return criteriaQuery.getRestriction(); return criteriaQuery.getRestriction();
......
package com.founder.interservice.mapper.xzxt;
import com.founder.interservice.dzgz.filter.DzgzTaskFilter;
import com.founder.interservice.dzgz.model.DzgzTask;
import com.founder.interservice.dzgz.model.DzgzTaskResult;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;
@Repository
public interface WffzkyxsMapper {
Integer saveWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws Exception;
Integer updateWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws Exception;
Integer delWffzkyxs(List<String> xxzjbhList) throws Exception;
TbStWffzkyxs getByXxzjbh(String xxzjbh) throws Exception;
List<TbStWffzkyxs> getWffzkyxsList(Map<String,Object> map) throws Exception;
}
package com.founder.interservice.ryhx.controller; package com.founder.interservice.ryhx.controller;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.model.AutoTbStRy; import com.founder.interservice.model.AutoTbStRy;
import com.founder.interservice.model.Relation;
import com.founder.interservice.model.SysDictitem; import com.founder.interservice.model.SysDictitem;
import com.founder.interservice.service.SysDictService; import com.founder.interservice.service.SysDictService;
import com.founder.interservice.util.Qgckzp; import com.founder.interservice.util.Qgckzp;
...@@ -10,7 +10,6 @@ import org.springframework.stereotype.Controller; ...@@ -10,7 +10,6 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
@Controller @Controller
...@@ -29,7 +28,7 @@ public class RyhxController { ...@@ -29,7 +28,7 @@ public class RyhxController {
ryxx = getryxx.getQgckAllxxXml(zjhm); ryxx = getryxx.getQgckAllxxXml(zjhm);
if(ryxx != null){ if(ryxx != null){
//性别 //性别
String xbdm = "0";//ryxx.getXbdm(); String xbdm = ryxx.getXbdm();
if (xbdm != null && !"".equals(xbdm)){ if (xbdm != null && !"".equals(xbdm)){
if(xbdm.equals("0")){ if(xbdm.equals("0")){
ryxx.setXbdm("未知的性别"); ryxx.setXbdm("未知的性别");
...@@ -42,7 +41,7 @@ public class RyhxController { ...@@ -42,7 +41,7 @@ public class RyhxController {
} }
} }
//职业 //职业
code = "331";//ryxx.getZylbdm(); code = ryxx.getZylbdm();
sysDictitem.setCode(code); sysDictitem.setCode(code);
sysDictitem.setGroupid("CODE_ZY"); sysDictitem.setGroupid("CODE_ZY");
if(code != null && !"".equals(code)){ if(code != null && !"".equals(code)){
...@@ -50,7 +49,7 @@ public class RyhxController { ...@@ -50,7 +49,7 @@ public class RyhxController {
ryxx.setZylbdm(name); ryxx.setZylbdm(name);
} }
//籍贯 //籍贯
code = "150627740000";//ryxx.getJgdm(); code = ryxx.getJgdm();
sysDictitem.setCode(code); sysDictitem.setCode(code);
sysDictitem.setGroupid("CODE_UNIT"); sysDictitem.setGroupid("CODE_UNIT");
if(code != null && !"".equals(code)){ if(code != null && !"".equals(code)){
...@@ -58,7 +57,7 @@ public class RyhxController { ...@@ -58,7 +57,7 @@ public class RyhxController {
ryxx.setJgdm(jgmc); ryxx.setJgdm(jgmc);
} }
//婚姻状况 //婚姻状况
code = "10";//ryxx.getJyzkdm(); code = ryxx.getJyzkdm();
sysDictitem.setCode(code); sysDictitem.setCode(code);
sysDictitem.setGroupid("CODE_HYZK"); sysDictitem.setGroupid("CODE_HYZK");
if(code != null && !"".equals(code)){ if(code != null && !"".equals(code)){
...@@ -66,7 +65,7 @@ public class RyhxController { ...@@ -66,7 +65,7 @@ public class RyhxController {
ryxx.setJyzkdm(jyzkmc); ryxx.setJyzkdm(jyzkmc);
} }
//学历 //学历
code = "10";//ryxx.getXldm(); code = ryxx.getXldm();
sysDictitem.setCode(code); sysDictitem.setCode(code);
sysDictitem.setGroupid("CODE_WHCD"); sysDictitem.setGroupid("CODE_WHCD");
if(code != null && !"".equals(code)){ if(code != null && !"".equals(code)){
...@@ -81,35 +80,15 @@ public class RyhxController { ...@@ -81,35 +80,15 @@ public class RyhxController {
modelAndView.addObject("ryxx",ryxx); modelAndView.addObject("ryxx",ryxx);
return modelAndView; return modelAndView;
} }
/**
* 根据身份证号码查人员常口人员信息 /*虚拟信息查询
* zjhm: 身份证号码 根据身份证编号查询RELATION表查询该用户的相关虚拟信息:QQ、微信、银行卡号等等*/
* @return @RequestMapping(value = "/getXnxx",method = {RequestMethod.GET,RequestMethod.POST})
*/ public Relation getXnxx(String zjhm){
@RequestMapping(value = "/getRyckxx") Relation relation = new Relation();
@ResponseBody
public AutoTbStRy getRyckxx(String zjhm){ return relation;
System.out.print("zjhm==="+zjhm);
AutoTbStRy ryxx = new AutoTbStRy();
Qgckzp getryxx = new Qgckzp();
try{
//ryxx = getryxx.getQgckAllxxXml(zjhm);
ryxx.setCyzjZjhm("61012512451");
ryxx.setXbdm("0");
ryxx.setXm("miko");
ryxx.setLxdh("13565648521");
ryxx.setJgdm("01");
ryxx.setMzdm("25");
ryxx.setJyzkdm("22");
/* String sfzh = ryxx.getCyzjZjhm();
String xm = ryxx.getXm();
String mzdm = ryxx.getMzdm();
String jgdm = ryxx.getJgdm();
String xzzDzmc = ryxx.getXzzDzmc();*/
}catch (InterServiceException e){
e.printStackTrace();
}
return ryxx;
} }
} }
package com.founder.interservice.util;
import java.util.Random;
/**
* Created by changc on 2019/4/11.
*/
public class EncryptUtil {
private static char[] salt = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M',
'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm',
'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
public String encode(String text){
//String slat = getSalt();
//String text1 = text + salt;
char[] oldChar = text.toCharArray();
char[] newChar = new char[oldChar.length];
for (int i=0;i<oldChar.length;i++){
newChar[i] = (char) (oldChar[i]+text.length());
}
return new String(newChar);
}
public String decode(String text){
char[] oldChar = text.toCharArray();
char[] newChar = new char[oldChar.length];
for (int i=0;i<oldChar.length;i++){
newChar[i] = (char) (oldChar[i]-text.length());
}
return new String(newChar);
}
public char[] getOldChar(String text){
char[] chars = text.toCharArray();
int end = chars.length-16;
char[] newChar = new char[end];
for(int i=0;i<end;i++){
newChar[i] = chars[i];
}
return newChar;
}
public String getSalt(){
Random r = new Random();
StringBuilder sb = new StringBuilder(16);
for(int i=0;i<sb.capacity();i++){
sb.append(salt[r.nextInt(16)]);
}
return sb.toString();
}
public static void main(String[] args){
String text = "1a2b3c4d5e6f7g8h9i";
EncryptUtil en = new EncryptUtil();
System.out.println("jia:"+en.encode(text));
System.out.println("jie"+en.decode(en.encode(text)));
}
}
package com.founder.interservice.util; package com.founder.interservice.util;
import org.apache.http.NameValuePair; import org.apache.http.NameValuePair;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.entity.UrlEncodedFormEntity;
import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpGet;
...@@ -62,7 +63,10 @@ public class HttpUtil { ...@@ -62,7 +63,10 @@ public class HttpUtil {
// 创建http GET请求 // 创建http GET请求
HttpGet httpGet = new HttpGet(uri); HttpGet httpGet = new HttpGet(uri);
RequestConfig requestConfig = RequestConfig.custom()
.setConnectTimeout(5000).setConnectionRequestTimeout(1000)
.setSocketTimeout(5000).build();
httpGet.setConfig(requestConfig);
// 执行请求 // 执行请求
response = httpclient.execute(httpGet); response = httpclient.execute(httpGet);
// 判断返回状态是否为200 // 判断返回状态是否为200
...@@ -96,6 +100,10 @@ public class HttpUtil { ...@@ -96,6 +100,10 @@ public class HttpUtil {
try { try {
// 创建Http Post请求 // 创建Http Post请求
HttpPost httpPost = new HttpPost(url); HttpPost httpPost = new HttpPost(url);
RequestConfig requestConfig = RequestConfig.custom()
.setConnectTimeout(5000).setConnectionRequestTimeout(1000)
.setSocketTimeout(5000).build();
httpPost.setConfig(requestConfig);
// 创建参数列表 // 创建参数列表
if (param != null) { if (param != null) {
List<NameValuePair> paramList = new ArrayList<>(); List<NameValuePair> paramList = new ArrayList<>();
......
package com.founder.interservice.wffzkyxs.controller;
import com.alibaba.fastjson.JSONObject;
import com.founder.interservice.VO.ResultVO;
import com.founder.interservice.dzgz.filter.DzgzTaskFilter;
import com.founder.interservice.dzgz.model.DzgzTask;
import com.founder.interservice.dzgz.service.DzgzService;
import com.founder.interservice.enums.ResultEnum;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.user.controller.UserContoller;
import com.founder.interservice.user.model.User;
import com.founder.interservice.util.EasyUIPage;
import com.founder.interservice.util.KeyUtil;
import com.founder.interservice.util.ResultVOUtil;
import com.founder.interservice.util.StringUtil;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import com.founder.interservice.wffzkyxs.service.WffzkyxsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
@Controller
@CrossOrigin //跨域访问
public class WffzkyxsController {
@Autowired
private WffzkyxsService wffzkyxsService;
@Autowired
private UserContoller userContoller;
/**
* 跳转违法犯罪可疑线索新增/修改页面
* @param flag 新增修改判断 :0 新增;1 修改;
* @param asjbh 案事件编号
* @param type 线索类型
* @param xxzjbh 信息主键编号
* @param jh 警号
* @return
*/
@RequestMapping(value="/toWffzkyxsInsertJsp")
public ModelAndView toWffzkyxsInsertJsp(String flag,String asjbh,String type,String xxzjbh,String jh){
ModelAndView andView = new ModelAndView("wffzkyxs/wffzkyxsInsert");
User user = userContoller.queryUserByid(null,jh);
if(flag.equals("1")){
TbStWffzkyxs tbStWffzkyxs = wffzkyxsService.getByXxzjbh(xxzjbh);
andView.addObject("tbStWffzkyxs",tbStWffzkyxs);
andView.addObject("xxzjbh",xxzjbh);
}
andView.addObject("flag",flag);
andView.addObject("asjbh",asjbh);
andView.addObject("type",type);
andView.addObject("user",user);
return andView;
}
/**
* 违法犯罪可疑线索新增方法
* @param tbStWffzkyxs
* @return
*/
@RequestMapping(value = "/toSaveWffzkyxs",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultVO toSaveWffzkyxs(TbStWffzkyxs tbStWffzkyxs){
ResultVO resultVO = null;
try {
tbStWffzkyxs.setXxzjbh(KeyUtil.getUniqueKey("XS"));
boolean flag = wffzkyxsService.saveWffzkyxs(tbStWffzkyxs);
resultVO = ResultVOUtil.success(flag);
}catch (InterServiceException e){
e.printStackTrace();
resultVO = ResultVOUtil.error(e.getCode(),e.getMessage());
}
return resultVO;
}
/**
* 违法犯罪可疑线索更新
* @param tbStWffzkyxs
* @return
*/
@RequestMapping(value = "/toUpdateWffzkyxs")
@ResponseBody
public ResultVO toUpdateWffzkyxs(TbStWffzkyxs tbStWffzkyxs){
ResultVO resultVO = null;
try {
boolean flag = wffzkyxsService.updateWffzkyxs(tbStWffzkyxs);
resultVO = ResultVOUtil.success(flag);
}catch (InterServiceException e){
e.printStackTrace();
resultVO = ResultVOUtil.error(e.getCode(),e.getMessage());
}
return resultVO;
}
/**
* 违法犯罪可疑线索删除
* @param xxzjbhs
* @return
*/
@RequestMapping(value = "/toDelWffzkyxs",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultVO toDelWffzkyxs(String xxzjbhs){
ResultVO resultVO = null;
try {
resultVO = wffzkyxsService.delWffzkyxs(xxzjbhs);
}catch (InterServiceException e){
e.printStackTrace();
resultVO = ResultVOUtil.error(e.getCode(),e.getMessage());
}
return resultVO;
}
/**
* 通过线索类型或案事件编号查询违法犯罪可疑线索
* @param objType 线索类型 (001)
* @param asjbh 案事件编号
* @return
*/
@RequestMapping(value = "/getWffzkyxsList",method = {RequestMethod.GET,RequestMethod.POST})
@ResponseBody
public ResultVO getWffzkyxsList(String objType,String asjbh){
ResultVO resultVO = null;
try {
resultVO = wffzkyxsService.getWffzkyxsList(objType,asjbh);
}catch (InterServiceException e){
e.printStackTrace();
resultVO = ResultVOUtil.error(e.getCode(),e.getMessage());
}
return resultVO;
}
}
package com.founder.interservice.wffzkyxs.model;
import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
@Data
public class TbStWffzkyxs {
private String xxzjbh; //主键
private String asjbh; //案事件编号
private String xslx; //线索类型
private String xslxmc; //线索类型名称
private String xszl; //线索种类
private String xszlmc; //线索种类名称
private String xsvalue; //线索值
private String fxsj; //发现时间
private Date fxsjDate; //发现时间
private String cxyy; //查询原由
private String xxdjrXm; //信息登记人_姓名
private String xxdjrJh; //信息登记人_警号
private String xxdjrSfzh;//信息登记人_身份证号
private String xxdjrGajgjgdm; //信息登记人_公安机关机构代码
private String xxdjrGajgjgmc; //信息登记人_公安机关机构名称
private String xxdjrLxdh; //信息登记人_联系电话
private String djsj; //登记时间
private String xgsj; //修改时间
}
package com.founder.interservice.wffzkyxs.service;
import com.founder.interservice.VO.ResultVO;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import org.springframework.stereotype.Service;
/**
* Created by changc on 2019/4/11.
*/
public interface WffzkyxsService {
boolean saveWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws InterServiceException;
boolean updateWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws InterServiceException;
ResultVO delWffzkyxs(String xxzjbh) throws InterServiceException;
TbStWffzkyxs getByXxzjbh(String xxzjbh) throws InterServiceException;
ResultVO getWffzkyxsList(String objType,String asjbh);
}
package com.founder.interservice.wffzkyxs.service.impl;
import com.founder.interservice.VO.ResultVO;
import com.founder.interservice.enums.ResultEnum;
import com.founder.interservice.exception.InterServiceException;
import com.founder.interservice.mapper.xzxt.WffzkyxsMapper;
import com.founder.interservice.util.ResultVOUtil;
import com.founder.interservice.wffzkyxs.model.TbStWffzkyxs;
import com.founder.interservice.wffzkyxs.service.WffzkyxsService;
import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* Created by changc on 2019/4/11.
*/
@Service
public class WffzkyxsServiceImpl implements WffzkyxsService{
@Autowired
private WffzkyxsMapper wffzkyxsMapper;
@Override
public boolean saveWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws InterServiceException {
boolean flag = false;
try{
Integer count = wffzkyxsMapper.saveWffzkyxs(tbStWffzkyxs);
if(count > 0){
flag = true;
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_SAVEERROR.getCode(),ResultEnum.DB_SAVEERROR.getMessage(),e);
}
return flag;
}
@Override
public boolean updateWffzkyxs(TbStWffzkyxs tbStWffzkyxs) throws InterServiceException {
boolean flag = false;
try{
Integer count = wffzkyxsMapper.updateWffzkyxs(tbStWffzkyxs);
if(count > 0){
flag = true;
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_UPDATEERROR.getCode(),ResultEnum.DB_UPDATEERROR.getMessage(),e);
}
return flag;
}
@Override
@Transactional
public ResultVO delWffzkyxs(String xxzjbh) throws InterServiceException {
ResultVO resultVO = ResultVOUtil.error(ResultEnum.RESULT_ERROR.getCode(),ResultEnum.RESULT_ERROR.getMessage());
try{
List<String> xxzjbhList = new ArrayList<>();
if(xxzjbh != null && !xxzjbh.isEmpty()){
String[] asjbhsArr = xxzjbh.split(",");
CollectionUtils.addAll(xxzjbhList, asjbhsArr);
}
Integer count = wffzkyxsMapper.delWffzkyxs(xxzjbhList);
if(count > 0){
resultVO = ResultVOUtil.success(true);
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_UPDATEERROR.getCode(),ResultEnum.DB_UPDATEERROR.getMessage(),e);
}
return resultVO;
}
@Override
public TbStWffzkyxs getByXxzjbh(String xxzjbh) throws InterServiceException {
TbStWffzkyxs tbStWffzkyxs = null;
try{
tbStWffzkyxs = wffzkyxsMapper.getByXxzjbh(xxzjbh);
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_QUERYERROR.getCode(),ResultEnum.DB_QUERYERROR.getMessage(),e);
}
return tbStWffzkyxs;
}
@Override
public ResultVO getWffzkyxsList(String objType, String asjbh) {
ResultVO resultVO = ResultVOUtil.success();
try{
Map<String,Object> selectMap = new HashMap<>();
selectMap.put("objType",objType);
selectMap.put("asjbh",asjbh);
List<TbStWffzkyxs> wffzkyxsList = wffzkyxsMapper.getWffzkyxsList(selectMap);
if(wffzkyxsList.size()>0){
resultVO.setData(wffzkyxsList);
}
}catch (Exception e){
e.printStackTrace();
throw new InterServiceException(ResultEnum.DB_UPDATEERROR.getCode(),ResultEnum.DB_UPDATEERROR.getMessage(),e);
}
return resultVO;
}
}
<?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.interservice.mapper.xzxt.WffzkyxsMapper">
<insert id="saveWffzkyxs" parameterType="com.founder.interservice.wffzkyxs.model.TbStWffzkyxs">
INSERT INTO TB_ST_WFFZKYXS t
(
t.XXZJBH,
t.ASJBH,
t.XSLX,
t.XSLXMC,
t.XSZL,
t.XSZLMC,
t.XSVALUE,
t.FXSJ,
t.CXYY,
t.XXDJR_XM,
t.XXDJR_JH,
t.XXDJR_SFZH,
t.XXDJR_LXDH,
t.XXDJR_GAJGJGDM,
t.XXDJR_GAJGJGMC,
t.XGSJ,
t.DJSJ
)VALUES (
<if test="xxzjbh != null and xxzjbh !=''">#{xxzjbh},</if>
<if test="xxzjbh == null or xxzjbh ==''">NULL,</if>
<if test="asjbh != null and asjbh !=''">#{asjbh},</if>
<if test="asjbh == null or asjbh ==''">NULL,</if>
<if test="xslx != null and xslx !=''">#{xslx},</if>
<if test="xslx == null or xslx ==''">NULL,</if>
<if test="xslxmc != null and xslxmc !=''">#{xslxmc},</if>
<if test="xslxmc == null or xslxmc ==''">NULL,</if>
<if test="xszl != null and xszl !=''">#{xszl},</if>
<if test="xszl == null or xszl ==''">NULL,</if>
<if test="xszlmc != null and xszlmc !=''">#{xszlmc},</if>
<if test="xszlmc == null or xszlmc ==''">NULL,</if>
<if test="xsvalue != null and xsvalue !=''">#{xsvalue},</if>
<if test="xsvalue == null or xsvalue ==''">NULL,</if>
<if test="fxsj != null and fxsj !=''">to_date(#{fxsj},'yyyy-MM-dd HH24:mi:ss'),</if>
<if test="fxsj == null or fxsj ==''">NULL,</if>
<if test="cxyy != null and cxyy !=''">#{cxyy},</if>
<if test="cxyy == null or cxyy ==''">NULL,</if>
<if test="xxdjrXm != null and xxdjrXm !=''">#{xxdjrXm},</if>
<if test="xxdjrXm == null or xxdjrXm ==''">NULL,</if>
<if test="xxdjrJh != null and xxdjrJh !=''">#{xxdjrJh},</if>
<if test="xxdjrJh == null or xxdjrJh ==''">NULL,</if>
<if test="xxdjrSfzh != null and xxdjrSfzh !=''">#{xxdjrSfzh},</if>
<if test="xxdjrSfzh == null or xxdjrSfzh ==''">NULL,</if>
<if test="xxdjrLxdh != null and xxdjrLxdh !=''">#{xxdjrLxdh},</if>
<if test="xxdjrLxdh == null or xxdjrLxdh ==''">NULL,</if>
<if test="xxdjrGajgjgdm != null and xxdjrGajgjgdm !=''">#{xxdjrGajgjgdm},</if>
<if test="xxdjrGajgjgdm == null or xxdjrGajgjgdm ==''">NULL,</if>
<if test="xxdjrGajgjgmc != null and xxdjrGajgjgmc !=''">#{xxdjrGajgjgmc},</if>
<if test="xxdjrGajgjgmc == null or xxdjrGajgjgmc ==''">NULL,</if>
sysdate,
sysdate
)
</insert>
<update id="updateWffzkyxs" parameterType="com.founder.interservice.wffzkyxs.model.TbStWffzkyxs">
UPDATE TB_ST_WFFZKYXS t SET
<if test="asjbh != null and asjbh !=''">t.ASJBH = #{asjbh},</if>
<if test="asjbh == null or asjbh ==''">t.ASJBH =NULL,</if>
<if test="xslx != null and xslx !=''">t.XSLX =#{xslx},</if>
<if test="xslx == null or xslx ==''">t.XSLX =NULL,</if>
<if test="xslxmc != null and xslxmc !=''">t.XSLXMC =#{xslxmc},</if>
<if test="xslxmc == null or xslxmc ==''">t.XSLXMC =NULL,</if>
<if test="xszl != null and xszl !=''">t.XSZL =#{xszl},</if>
<if test="xszl == null or xszl ==''">t.XSZL =NULL,</if>
<if test="xszlmc != null and xszlmc !=''">t.XSZLMC =#{xszlmc},</if>
<if test="xszlmc == null or xszlmc ==''">t.XSZLMC =NULL,</if>
<if test="xsvalue != null and xsvalue !=''">t.XSVALUE =#{xsvalue},</if>
<if test="xsvalue == null or xsvalue ==''">t.XSVALUE =NULL,</if>
<if test="fxsj != null and fxsj !=''">t.FXSJ =to_date(#{fxsj},'yyyy-MM-dd HH24:mi:ss'),</if>
<if test="fxsj == null or fxsj ==''">t.FXSJ = NULL,</if>
<if test="cxyy != null and cxyy !=''">t.CXYY =#{cxyy},</if>
<if test="cxyy == null or cxyy ==''">t.CXYY =NULL,</if>
<if test="xxdjrXm != null and xxdjrXm !=''">t.XXDJR_XM =#{xxdjrXm},</if>
<if test="xxdjrXm == null or xxdjrXm ==''">t.XXDJR_XM =NULL,</if>
<if test="xxdjrJh != null and xxdjrJh !=''">t.XXDJR_JH =#{xxdjrJh},</if>
<if test="xxdjrJh == null or xxdjrJh ==''">t.XXDJR_JH =NULL,</if>
<if test="xxdjrSfzh != null and xxdjrSfzh !=''">t.XXDJR_SFZH =#{xxdjrSfzh},</if>
<if test="xxdjrSfzh == null or xxdjrSfzh ==''">t.XXDJR_SFZH =NULL,</if>
<if test="xxdjrLxdh != null and xxdjrLxdh !=''">t.XXDJR_LXDH =#{xxdjrLxdh},</if>
<if test="xxdjrLxdh == null or xxdjrLxdh ==''">t.XXDJR_LXDH =NULL,</if>
<if test="xxdjrGajgjgdm != null and xxdjrGajgjgdm !=''">t.XXDJR_GAJGJGDM =#{xxdjrGajgjgdm},</if>
<if test="xxdjrGajgjgdm == null or xxdjrGajgjgdm ==''">t.XXDJR_GAJGJGDM =NULL,</if>
<if test="xxdjrGajgjgmc != null and xxdjrGajgjgmc !=''">t.XXDJR_GAJGJGMC =#{xxdjrGajgjgmc},</if>
<if test="xxdjrGajgjgmc == null or xxdjrGajgjgmc ==''">t.XXDJR_GAJGJGMC =NULL,</if>
t.XGSJ = sysdate,
t.DJSJ = sysdate
WHERE t.XXZJBH = #{xxzjbh}
</update>
<delete id="delWffzkyxs" parameterType="java.util.List">
DELETE FROM TB_ST_WFFZKYXS t WHERE t.XXZJBH in
<foreach collection="list" item="xxzjbhList" index="index" open="("
separator="," close=")" >
#{xxzjbhList}
</foreach>
</delete>
<select id="getByXxzjbh" resultType="com.founder.interservice.wffzkyxs.model.TbStWffzkyxs"
parameterType="java.lang.String">
select
t.XXZJBH as xxzjbh,
t.ASJBH as asjbh,
t.XSLX as xslx,
t.XSLXMC as xslxmc,
t.XSZL as xszl,
t.XSZLMC as xszlmc,
t.XSVALUE as xsvalue,
t.FXSJ as fxsjDate,
t.CXYY as cxyy,
t.XXDJR_XM as xxdjrXm,
t.XXDJR_JH as xxdjrJh,
t.XXDJR_SFZH as xxdjrSfzh,
t.XXDJR_GAJGJGDM as xxdjrGajgjgdm,
t.XXDJR_GAJGJGMC as xxdjrGajgjgmc,
t.XXDJR_LXDH as xxdjrLxdh,
t.XGSJ as xgsj,
t.DJSJ as djsj
from TB_ST_WFFZKYXS t where t.XXZJBH=#{xxzjbh}
</select>
<select id="getWffzkyxsList" parameterType="java.util.Map" resultType="com.founder.interservice.wffzkyxs.model.TbStWffzkyxs">
select
t.XXZJBH as xxzjbh,
t.ASJBH as asjbh,
t.XSLX as xslx,
t.XSLXMC as xslxmc,
t.XSZL as xszl,
t.XSZLMC as xszlmc,
t.XSVALUE as xsvalue,
t.FXSJ as fxsjDate,
t.CXYY as cxyy,
t.XXDJR_XM as xxdjrXm,
t.XXDJR_JH as xxdjrJh,
t.XXDJR_SFZH as xxdjrSfzh,
t.XXDJR_GAJGJGDM as xxdjrGajgjgdm,
t.XXDJR_GAJGJGMC as xxdjrGajgjgmc,
t.XXDJR_LXDH as xxdjrLxdh,
t.XGSJ as xgsj,
t.DJSJ as djsj
from
TB_ST_WFFZKYXS t
<where>
<if test="objType !=null and objType !=''">and t.XSZL = #{objType}</if>
<if test="asjbh !=null and asjbh !=''">and t.ASJBH = #{asjbh}</if>
</where>
</select>
</mapper>
\ No newline at end of file
/**
* autor: xuxiao , zubaoshan
*/
(function () {
//定义一些默认参数
var _options = {
ZH: {
dayNames: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
shortDayNames: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
shortMonthNames: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月']
},
US: {
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
shortDayNames: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
shortMonthNames: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
}
}
//定义一些api
var _date_format_api = {
/**
* 格式化时间
* @param date
* @param fmt
* @returns {*}
*/
format: function (date, fmt) {
var o = {
'M+': date.getMonth() + 1, //月份
'd+': date.getDate(), //日
'h+': date.getHours(), //小时
'm+': date.getMinutes(), //分
's+': date.getSeconds(), //秒
'q+': Math.floor((date.getMonth() + 3) / 3), //季度
'S': date.getMilliseconds() //毫秒
};
if(!this.isNotEmpty(fmt)){
fmt = 'yyyy-MM-dd hh:mm:ss';
}
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
}
for (var k in o) {
if (new RegExp('(' + k + ')').test(fmt)) {
fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (('00' + o[k]).substr(('' + o[k]).length)));
}
}
return fmt;
},
formatToDate: function (dateStr) {
if(this.isNotEmpty(dateStr) ){
return new Date(Date.parse(dateStr.replace(/-/g, "/")));
}
return '';
},
/**
* 得到一天的开始 date类型
* @param date
*/
getDateStart: function (date) {
var fmt = 'yyyy-MM-dd';
var dateStartStr = this.getDateStartStr(date, fmt);
var startTime = new Date(Date.parse(dateStartStr));
return startTime;
},
/**
* 得到一天的开始 str 类型
* @param date
*/
getDateStartStr: function (date, fmt) {
if (typeof fmt == 'undefined') {
fmt = 'yyyy-MM-dd';
}
var dateStr = this.format(date, fmt);
dateStr += ' 00:00:00';
return dateStr;
},
/**
* 得到一天的结束 date类型
* @param date
*/
getDateEnd: function (date) {
var fmt = 'yyyy-MM-dd';
var dateEndStr = this.getDateEndStr(date, fmt);
var endTime = new Date(Date.parse(dateEndStr));
return endTime;
},
/**
* 得到一天的结束 str 类型
* @param date
*/
getDateEndStr: function (date, fmt) {
if (typeof fmt == 'undefined') {
fmt = 'yyyy-MM-dd';
}
var endStr = this.format(date, fmt);
endStr += ' 23:59:59';
return endStr;
},
/**
* 两个时间比较大小
* @param d1
* @param d2
*/
compareDate: function (d1, d2) {
if (d1 && d2) {
if (d1.getTime() > d2.getTime()) {
return 1;
} else if (d1.getTime() == d2.getTime()) {
return 0;
} else if (d1.getTime() < d2.getTime()) {
return -1;
}
}
},
/**
* 得到星期几, 支持中英
* @param date
* @param type
* @returns {string}
*/
getWeek: function (date, type) {
if (date) {
if (!this.isNotEmpty(type)) {
type = 0;
}
var index = date.getDay();
var dateStr = '';
switch (type) {
case this.WEEKTYPE.ZH_DAYNAME:
dateStr = _options.ZH.dayNames[index];
break;
case this.WEEKTYPE.ZH_SDAYNAME:
dateStr = _options.ZH.shortDayNames[index];
break;
case this.WEEKTYPE.US_DAYNAME:
dateStr = _options.US.dayNames[index];
break;
case this.WEEKTYPE.US_SDAYNAME:
dateStr = _options.US.shortDayNames[index];
break;
}
return dateStr;
}
},
/**
* 是否为闰年
* @param date
* @returns {boolean}
*/
isLeapYear: function (date) {
if (date instanceof Date) {
return (0 == date.getYear() % 4 && (( date.getYear() % 100 != 0) || (date.getYear() % 400 == 0)));
}
console.warn('argument format is wrong');
return false;
},
/**
* 字符串是否为正确的时间格式,支持 - /
* @param dateStr
* @returns {boolean}
*/
isValidDate: function (dateStr) {
if (this.isNotEmpty(dateStr)) {
var r= dateStr.match(/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/);
if(r==null){
return false;
}
var d=new Date(r[1],r[3]-1,r[4]);
var num = (d.getFullYear()==r[1]&&(d.getMonth()+1)==r[3]&&d.getDate()==r[4]);
return (num!=0);
}
},
/**
* 增加天数
* @param date
* @param dayNum
*/
addDay: function (date, dayNum) {
if(this.isNotEmpty(date) && this.isNotEmpty(dayNum) && date instanceof Date && typeof dayNum == 'number'){
date.setDate(date.getDate() + dayNum);
}else{
console.warn('date or dayNum format wrong');
}
return date;
},
addDayStr: function (dateStr, dayNum) {
var date ='';
if(this.isNotEmpty(dateStr) && this.isNotEmpty(dayNum) && typeof dayNum == 'number'){
date = this.formatToDate(dateStr);
date.setDate(date.getDate() + dayNum);
}else{
console.warn('dateStr or dayNum format wrong');
}
return date;
},
/**
* 增加月份
* @param date
* @param dayNum
*/
addMonth: function (date, monthNum) {
if(this.isNotEmpty(date) && this.isNotEmpty(monthNum) && date instanceof Date && typeof monthNum == 'number'){
date.setMonth(date.getMonth() + monthNum);
}else{
console.warn('date or monthNum format wrong');
}
return date;
},
addMonthStr: function (dateStr, monthNum) {
var date ='';
if(this.isNotEmpty(dateStr) && this.isNotEmpty(monthNum) && typeof monthNum == 'number'){
date = this.formatToDate(dateStr);
date.setMonth(date.getMonth() + monthNum);
}else{
console.warn('date or monthNum format wrong');
}
return date;
},
/**
* 增加年份
* @param date
* @param dayNum
*/
addYear: function (date, yearNum) {
if(this.isNotEmpty(date) && this.isNotEmpty(yearNum) && date instanceof Date && typeof yearNum == 'number'){
date.setYear(date.getFullYear() + yearNum);
}else{
console.warn('date or yearNum format wrong');
}
return date;
},
addYearStr: function (dateStr, yearNum) {
var date = '';
if(this.isNotEmpty(dateStr) && this.isNotEmpty(yearNum) && typeof yearNum == 'number'){
date = this.formatToDate(dateStr);
date.setYear(date.getFullYear() + yearNum);
}else{
console.warn('date or yearNum format wrong');
}
return date;
},
/**
* 是否为空
* @param str
* @returns {boolean}
*/
isNotEmpty: function (str) {
if (str != '' && str != null && typeof str != 'undefined') {
return true;
}
console.warn('argument format is wrong');
return false;
},
//定义内部常量
WEEKTYPE: {
ZH_DAYNAME: 0,
ZH_SDAYNAME: 1,
US_DAYNAME: 2,
US_SDAYNAME: 3,
}
}
//这里确定了插件的名称
this.DateFormat = _date_format_api;
})();
\ No newline at end of file
//将表单序列化
function serializeObject(form){
var xszlmx = $('#xszl').combobox('getText');//获取下拉框的文本
var o={'xszlmc':xszlmx};
$.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(){
if(type == '0101'){
$("#xslxmc").val("可疑人员");
}else if (type == '0102'){
$("#xslxmc").val("可疑服务标识号");
}else if(type == '0103'){
$("#xslxmc").val("可疑车牌");
}
comboboxXszl();
});
function comboboxXszl(){
if(type == '0101'){
//线索种类
$('#xszl').combobox({
valueField:'id',
textField:'text',
data: [{
"id":"004","text":"身份证号"
} ],
onLoadSuccess:function (){ //默认加载成功后,设置选中第一项
var val = $(this).combobox("getData");
if(val != null){
$(this).combobox("select",val[0].id);
}
}
});
}else if (type == '0102'){
$('#xszl').combobox({
valueField:'id',
textField:'text',
data: [{
"id":"001","text":"手机号"
},{
"id":"002","text":"QQ号"
},{
"id":"003","text":"微信Id"
},{
"id":"006","text":"IMSI"
},{
"id":"007","text":"IMEI"
}]
});
}else if(type == '0103'){
$('#xszl').combobox({
valueField:'id',
textField:'text',
data: [{
"id":"005","text":"车牌号"
}],
onLoadSuccess:function (){ //默认加载成功后,设置选中第一项
var val = $(this).combobox("getData");
if(val != null){
$(this).combobox("select",val[0].id);
}
}
});
}
}
function submit(flag,type){
if(type == 0) {
//标识号
var xsvalue = $("#xsvalue").val();
if (!xsvalue) {
$.messager.alert({title: '提示', msg: '标识号不能为空'});
return;
}
//线索种类
var xszl = $('#xszl').combobox('getText');
if (!xszl) {
$.messager.alert({title: '提示', msg: '线索种类不能为空'});
return;
}
//发现时间
var fxsj = $("#fxsj").val();
if (fxsj == null || fxsj == '') {
$.messager.alert({title: '提示', msg: '发现时间不能为空'});
return;
}
}
var index = layer.load(1, {
content: '数据抓取中...',
shade: [0.35,'#fff'],
success: function(layero) {
layero.find('.layui-layer-content').css({
'padding-top': '40px',
'width': '70px',
'background-position-x': '16px'
});
}
});
var sj = fxsj.replace(/-/g, '/');
var date = new Date(sj);
var preDate = new Date(date.getTime() - 48*60*60*1000);
var nextDate = new Date(date.getTime() + 48*60*60*1000);
var kssj = DateFormat.format(preDate,"yyyy-MM-dd hh:mm:ss");
var jssj = DateFormat.format(nextDate,"yyyy-MM-dd hh:mm:ss");
var asjbh = $("#asjbh").val();
var objValue = $("#xszl").combobox("getText");
var objType = $("#xszl").combobox("getValue");
var cxrXm = $("#xxdjrXm").val();
var cxrSfzh = $("#xxdjrSfzh").val();
var cxrJh = $("#xxdjrJh").val();
var cxrLxdh = $("#xxdjrLxdh").val();
var dldwdm = $("#xxdjrGajgjgdm").val();
var dldwmc = $("#xxdjrGajgjgmc").val();
$.ajax({
url: "/getAndSaveTrack",
type: 'post',
dataType: 'json',
data: {
"yhCate":00,"projectName":01,
"kssj":kssj,"jssj":jssj,
"asjbh":asjbh,"objValue":objValue,
"objType":objType,"cxrXm":cxrXm,
"cxrSfzh":cxrSfzh,"cxrJh":cxrJh,
"cxrLxdh":cxrLxdh,"dldwdm":dldwdm,
"dldwmc":dldwmc
},
success: function (data) {
layer.close(index);
if(data.code==0){
var index1=layer.confirm('操作成功!', {
btn: ['确定'] //按钮
}, function(){
layer.close(index1);
saveOrUpdateWffzkyxs(flag);
});
}else{
var index1= layer.confirm('操作失败!', {
btn: ['重新抓取'] //按钮
}, function(){
layer.close(index1);
submit(flag,1);
});
}
},
error: function (e) {
layer.alert('提示',"操作出错:"+e);
}
});
}
function saveOrUpdateWffzkyxs(flag) {
var url = null;
if(flag == '0'){
url = '/toSaveWffzkyxs?yhCate=00&projectName=01';
}else {
url = '/toUpdateWffzkyxs?yhCate=00&projectName=01';
}
$.ajax({
url: url,
type: 'post',
dataType: 'json',
data: serializeObject($("form[name='wfqdzczlForm']")),
success: function (data) {
if(data.data==true){
$.messager.alert({title:'提示',msg:'操作成功'});
}else{
$.messager.alert({title:'提示',msg:'操作失败'});
}
},
error: function (e) {
$.messager.alert({title:'提示',msg:"出错:"+e});
}
});
}
function doClear(){
$("#xszl").combobox('setValue',"");
$("#fxsj").val("");
$("#xsvalue").val('');
$("#cxyy").val('');
}
INSERT INTO SYS_DBLOG(SID,STATUS)VALUES('S044',0);
INSERT INTO SYS_DBLOG(SID,STATUS)VALUES('S044',0);
COMMIT;
-------------------------------------------------------------------------------------------
--创建违法犯罪可疑线索表(包含可疑人员、可疑机动车、可以标识号)
ALTER TABLE TB_ST_WFFZKYXS
DROP PRIMARY KEY CASCADE;
DROP TABLE TB_ST_WFFZKYXS CASCADE CONSTRAINTS;
CREATE TABLE TB_ST_WFFZKYXS
(
XXZJBH VARCHAR2(23 BYTE),
ASJBH VARCHAR2(50 BYTE),
XSLX VARCHAR2(10 BYTE),
XSLXMC VARCHAR2(50 BYTE),
XSZL VARCHAR2(10 BYTE),
XSZLMC VARCHAR2(50 BYTE),
XSVALUE VARCHAR2(50 BYTE),
FXSJ DATE DEFAULT sysdate,
CXYY VARCHAR2(2000 BYTE),
XXDJR_XM VARCHAR2(10 BYTE),
XXDJR_JH VARCHAR2(18 BYTE),
XXDJR_LXDH VARCHAR2(20 BYTE),
XXDJR_SFZH VARCHAR2(18 BYTE),
XXDJR_GAJGJGDM VARCHAR2(12 BYTE),
XXDJR_GAJGJGMC VARCHAR2(100 BYTE),
XGSJ DATE DEFAULT sysdate,
DJSJ DATE DEFAULT sysdate
)TABLESPACE TBS_BIGDATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
)
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
MONITORING;
COMMENT ON table TB_ST_WFFZKYXS is '违法犯罪可疑线索表';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXZJBH IS '信息主键编号,主键';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XSLX IS '线索类型 0101:可疑人员;0102:可以服务标识号;0103:可疑车辆';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XSLXMC IS '线索类型名称 0101:可疑人员;0102:可疑服务标识号;0103:可疑车辆';
COMMENT ON COLUMN TB_ST_WFFZKYXS.ASJBH IS '案事件编号';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XSZL IS '线索种类,与线索类型对应。(可疑服务标识号:0102)手机号:001;QQ号:002;微信Id:003;IMSI:006;IMEI。(可疑人员)007;身份证号。(可疑车辆)004;车牌号:005;';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XSZLMC IS '线索种类名称:手机号:001;QQ号:002;微信Id:003;IMSI:006;IMEI。007;身份证号。004;车牌号:005;';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XSVALUE IS '线索值';
COMMENT ON COLUMN TB_ST_WFFZKYXS.FXSJ IS '发现时间';
COMMENT ON COLUMN TB_ST_WFFZKYXS.CXYY IS '查询原由';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXDJR_XM IS '信息登记人_姓名';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXDJR_JH IS '信息登记人_警号';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXDJR_SFZH IS '信息登记人_身份证号';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXDJR_GAJGJGDM IS '信息登记人_公安机关机构代码';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XXDJR_GAJGJGMC IS '信息登记人_公安机关机构名称';
COMMENT ON COLUMN TB_ST_WFFZKYXS.XGSJ IS '修改时间';
COMMENT ON COLUMN TB_ST_WFFZKYXS.DJSJ IS '登记时间';
--创建主键
CREATE UNIQUE INDEX PK_TB_ST_WFFZKYXS_XXZJBH ON TB_ST_WFFZKYXS(XXZJBH)
LOGGING
TABLESPACE TBS_INDEX
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
BUFFER_POOL DEFAULT
)
NOPARALLEL;
ALTER TABLE TB_ST_WFFZKYXS ADD (
CONSTRAINT PK_TB_ST_WFFZKYXS_XXZJBH
PRIMARY KEY
(XXZJBH)
USING INDEX
TABLESPACE TBS_INDEX
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
NEXT 1M
MINEXTENTS 1
MAXEXTENTS UNLIMITED
PCTINCREASE 0
));
-------------------------------------------------------------------------------------------
UPDATE SYS_DBLOG SET STATUS=1 WHERE SID='S044';
COMMIT;
\ No newline at end of file
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.atg.com/taglibs/json" prefix="json" %>
<!doctype html>
<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">
<c:if test="${type == '0101'}">
<title>可疑人员信息</title>
</c:if>
<c:if test="${type == '0102'}">
<title>可疑服务标识号信息</title>
</c:if>
<c:if test="${type == '0103'}">
<title>可疑车辆信息</title>
</c:if>
<link rel="icon" href="/images/bkxxInsertFavicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/style_bkxx.css">
<link rel="stylesheet" href="/css/append_bkxx.css">
<link rel="stylesheet" type="text/css" href="/common/layer/skin/layer.css">
<!--- 时间插件-->
<link rel="stylesheet" href="/common/datepicker/skin/WdatePicker.css">
<link rel="stylesheet" href="/common/datepicker/skin/default/datepicker.css">
<!--- 代码框-->
<link rel="stylesheet" href="/css/easyui.css">
<link rel="stylesheet" href="/css/icon.css">
<link rel="stylesheet" href="/css/base_initialize.css">
<style>
.cxtj table input.zdy-wdate{padding:0 !important;height:26px;margin-top:-1px;}
.textbox .textbox{top:0px;}
</style>
</head>
<body style="overflow: auto">
<header class="heade-box">
<c:if test="${type == '0101'}">
<img src="/images/kyry.png" class="header-title-img" alt="">
</c:if>
<c:if test="${type == '0102'}">
<img src="/images/kyfwbsh.png" class="header-title-img" alt="">
</c:if>
<c:if test="${type == '0103'}">
<img src="/images/kycl.png" class="header-title-img" alt="">
</c:if>
</header>
<article class="main-cen-box">
<div class="cxtj">
<form name="wfqdzczlForm" id="form1" class="easyui-form" data-options="novalidate:true">
<fieldset>
<c:if test="${type == '0101'}">
<legend>可疑人员信息 </legend>
</c:if>
<c:if test="${type == '0102'}">
<legend>可疑服务标识号信息 </legend>
</c:if>
<c:if test="${type == '0103'}">
<legend>可疑车辆信息 </legend>
</c:if>
<table>
<tbody>
<input type="hidden" name="xxzjbh" id = "xxzjbh" value="${xxzjbh}" />
<input type="hidden" name="asjbh" id = "asjbh" value="${asjbh}" />
<input type="hidden" name="xslx" id = "xslx" value="${type}" />
<input type="hidden" name="xslxmc" id = "xslxmc" value="${tbStWffzkyxs.xslxmc}" />
<input type="hidden" name="xxdjrSfzh" id = "xxdjrSfzh" value="${user.card_id}" />
<input type="hidden" name="xxdjrXm" id = "xxdjrXm" value="${user.true_name}" />
<input type="hidden" name="xxdjrJh" id = "xxdjrJh" value="${user.username}" />
<input type="hidden" name="xxdjrGajgjgdm" id = "xxdjrGajgjgdm" value="${user.jz_dwdm}" />
<input type="hidden" name="xxdjrGajgjgmc" id = "xxdjrGajgjgmc" value="${user.jz_dwmc}" />
<input type="hidden" name="xxdjrLxdh" id = "xxdjrLxdh" value="${user.phone_no}" />
<tr>
<td class="ar" width="13.3%"><span class="red">*</span>标识号:</td>
<td width="20%">
<span class="textbox">
<input type="text" name="xsvalue" id = "xsvalue" value="${tbStWffzkyxs.xsvalue}">
</span>
</td>
<td class="ar" width="13.3%"><span class="red">*</span>线索种类:</td>
<td width="20%">
<span class="textbox" style="border:none;">
<input type="text" id="xszl" name="xszl" class="val easyui-combotree" value="${tbStWffzkyxs.xszl}" data-options="method:'get',fit:true,textField : 'text', valueField : 'id'"/>
</span>
</td>
<td class="ar" width="13.3%"><span class="red">*</span>发现时间:</td>
<td width="20%">
<span class="textbox" style="border:none;">
<input id="fxsj" name="fxsj" value='<fmt:formatDate value="${tbStWffzkyxs.fxsjDate}" pattern="yyyy-MM-dd HH:mm:ss"/>' class="val easyui-validatebox Wdate zdy-wdate " data-options="required: true" type="text" onkeypress="return checkDateFmt();"
onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" />
</span>
</td>
</tr>
<tr>
<td class="ar" width="13.3%">查询原由:</td>
<td colspan="5">
<textarea rows="5" id="cxyy" name="cxyy" width="100%" style="margin:5px 0;line-height: 20px;" placeholder="最多输2000个字符" class="easyui-validatebox textareabox" data-options="required:true,validType:['maxLength[2000]']">${tbStWffzkyxs.cxyy}</textarea>
</td>
</tr>
<tr>
<td class="ar" width="13.3%">警号:</td>
<td width="20%">
<span class="textbox">
<input type="text" value="${user.username}" disabled="disabled" />
</span>
</td>
<td class="ar" width="13.3%">姓名:</td>
<td width="20%">
<span class="textbox">
<input type="text" value="${user.true_name}" disabled="disabled" />
</span>
</td>
</tr>
<tr>
<td colspan="6" style="text-align: center;height:50px;">
<a class="btn_a btn_search easyui-linkbutton" onclick="submit('${flag}','0')" >保存 </a>
<a class="btn_a btn_empty easyui-linkbutton" onclick="doClear()">重置</a>
</td>
</tr>
</tbody>
</table>
</fieldset>
</form>
</div>
</article>
<script src="/js/jquery.min.js" type="text/javascript"></script>
<!--- 代码框-->
<script type="text/javascript" src="/common/easyui-window/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="/common/easyui-window/js/easyui-lang-zh_CN.js"></script>
<!--- 日期时间-->
<script type="text/javascript" src="/common/datepicker/WdatePicker.js"></script>
<script type="text/javascript" src="/common/datepicker/calendar.js"></script>
<script type="text/javascript" src="/common/dateformat.js"></script>
<script type="text/javascript" src="/common/layer/layer.js"></script>
<script type="text/javascript" src="/js/wffzkyxsInsert.js"></script>
<script type="text/javascript">
var type = "${type}";
</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