Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨亮
hnxtbaboot
Commits
799e7aa5
Commit
799e7aa5
authored
Jul 12, 2021
by
wuchengwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zip定时解压读取指纹,人像,足迹等数据
parent
0b6a359f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
843 additions
and
50 deletions
+843
-50
src/main/java/com/founder/XtbaBootApplication.java
+4
-0
src/main/java/com/founder/controller/TbXwRycjController.java
+457
-9
src/main/java/com/founder/model/Goods.java
+22
-0
src/main/java/com/founder/model/PersonDto.java
+102
-0
src/main/java/com/founder/utils/FileUtils.java
+147
-40
src/main/java/com/founder/utils/ZipUtils.java
+94
-0
src/main/resources/application.properties
+3
-0
src/main/resources/mapper/AutoTbXwRycjSqlMap.xml
+14
-1
No files found.
src/main/java/com/founder/XtbaBootApplication.java
View file @
799e7aa5
...
...
@@ -5,6 +5,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import
org.springframework.boot.web.servlet.MultipartConfigFactory
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
javax.servlet.annotation.MultipartConfig
;
...
...
@@ -17,6 +18,9 @@ import javax.servlet.MultipartConfigElement;
@SpringBootApplication
@EnableCaching
//进行定时任务
@EnableScheduling
public
class
XtbaBootApplication
{
public
static
void
main
(
String
[]
args
)
{
...
...
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
799e7aa5
...
...
@@ -29,6 +29,7 @@ import org.dom4j.io.XMLWriter;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.scheduling.annotation.AsyncResult
;
import
org.springframework.scheduling.annotation.Scheduled
;
...
...
@@ -85,6 +86,9 @@ public class TbXwRycjController {
@Autowired
private
IXxwcjsmService
xxwcjsmService
;
@Value
(
"${ftpUrl}"
)
private
String
ftpUrl
;
private
String
no_finger
;
// 没有滚动指纹
private
String
no_pmfinger
;
// 没有平面指纹
private
String
no_zw
;
// 没有掌纹
...
...
@@ -1517,6 +1521,450 @@ public class TbXwRycjController {
return
"rygl/addryxx.html"
;
}
//进行zip文件解压
// @RequestMapping("/exportExcelToRyxx")
// @ResponseBody
@Scheduled
(
cron
=
"0 0 */1 * * *"
)
// 每隔1小时执行一次
public
String
zipzwandzj
(){
// User user = (User) request.getSession().getAttribute("User");
HttpServletRequest
request
=
null
;
try
{
//pctinfo = pCTInfoServiceImpl.findPCTInfoById(pctInfoFilter);
//Param param = paramService.getParamById("0008");
boolean
photoflag
=
true
;
Param
param
=
new
Param
();
String
servlUrl
=
StringUtil
.
checknull
(
param
.
getParamvalue
());
List
<
File
>
zipList
=
FileUtils
.
searchFiles
(
new
File
(
ftpUrl
),
"zip"
);
if
(
zipList
.
size
()>
0
)
{
for
(
File
file:
zipList
)
{
//进行解压操作
String
unZipFiles
=
ZipUtils
.
unZipFiles
(
file
,
ftpUrl
);
String
xmlToString
=
PraseXML
.
xmlToString
(
new
File
(
unZipFiles
+
"/Person.xml"
));
Map
map
=
PraseXML
.
parse_XMLMap
(
xmlToString
);
if
(
map
!=
null
)
{
PersonDto
personDto
=
JSON
.
parseObject
(
JSONObject
.
toJSONString
(
map
),
PersonDto
.
class
);
String
map_barcode
=
StringUtil
.
checknull
(
map
.
get
(
"BARCODE"
));
//人员条码号
String
map_name
=
StringUtil
.
checknull
(
map
.
get
(
"NAME"
));
//姓名
String
map_sex
=
StringUtil
.
checknull
(
map
.
get
(
"SEX"
));
//性别
String
map_idnumber
=
StringUtil
.
checknull
(
map
.
get
(
"IDNUMBER"
));
//身份证号
String
map_birthdate
=
StringUtil
.
checknull
(
map
.
get
(
"BIRTHDATE"
));
//生日
String
map_birthaddcode
=
StringUtil
.
checknull
(
map
.
get
(
"BIRTHADDCODE"
));
//籍贯
String
map_address
=
StringUtil
.
checknull
(
map
.
get
(
"ADDRESS"
));
//住址
String
map_collectunitname
=
StringUtil
.
checknull
(
map
.
get
(
"COLLECTUNITNAME"
));
//收集单位
String
map_collectpsn
=
StringUtil
.
checknull
(
map
.
get
(
"COLLECTPSN"
));
//捺印收集人
String
map_collectdate
=
StringUtil
.
checknull
(
map
.
get
(
"COLLECTDATE"
));
//捺印日期
String
map_casetype1
=
StringUtil
.
checknull
(
map
.
get
(
"CASETYPE1"
));
//案件类别1
String
map_casetype2
=
StringUtil
.
checknull
(
map
.
get
(
"CASETYPE2"
));
//案件类别2
String
map_casetype3
=
StringUtil
.
checknull
(
map
.
get
(
"CASETYPE3"
));
//案件类别3
String
map_casedetails
=
StringUtil
.
checknull
(
map
.
get
(
"CASEDETAILS"
));
//犯罪描述
String
map_useredname
=
StringUtil
.
checknull
(
map
.
get
(
"USEREDNAME"
));
//曾用名
String
map_idnumbertype
=
StringUtil
.
checknull
(
map
.
get
(
"IDNUMBERTYPE"
));
//证件类型
String
map_nationality
=
StringUtil
.
checknull
(
map
.
get
(
"NATIONALITY"
));
//国籍
String
map_nation
=
StringUtil
.
checknull
(
map
.
get
(
"NATION"
));
//民族
String
map_deucation
=
StringUtil
.
checknull
(
map
.
get
(
"DEUCATION"
));
//文化程度
String
map_height
=
StringUtil
.
checknull
(
map
.
get
(
"HEIGHT"
));
//身高
String
map_weight
=
StringUtil
.
checknull
(
map
.
get
(
"WEIGHT"
));
//体重
String
map_houseregcode
=
StringUtil
.
checknull
(
map
.
get
(
"HOUSEREGCODE"
));
//户籍地区划
String
map_housereg
=
StringUtil
.
checknull
(
map
.
get
(
"HOUSEREG"
));
//户籍地详址
String
map_addrdsscode
=
StringUtil
.
checknull
(
map
.
get
(
"ADDRESSCODE"
));
//现住址区划
String
map_addrdss
=
StringUtil
.
checknull
(
map
.
get
(
"ADDRESS"
));
//现住址详址
User
user
=
new
User
();
user
.
setUnitcode
(
personDto
.
getCREATEUNIT
());
user
.
setUsername
(
personDto
.
getCREATEUSER
());
user
.
setUnitname
(
personDto
.
getCOLLECTUNITNAME
());
AutoTbStRy
ryxx
=
new
AutoTbStRy
();
String
rrbh
=
SequenceUtil
.
getNextId
();
//TODO 后续修改
ryxx
.
setRybh
(
personDto
.
getBARCODE
());
ryxx
.
setRybh
(
rrbh
.
substring
(
0
,
23
));
ryxx
.
setXm
(
personDto
.
getPNAME
());
ryxx
.
setXbdm
(
personDto
.
getPSEX
());
ryxx
.
setGmsfhm
(
personDto
.
getIDCARDNUM
());
ryxx
.
setCsrqQsrqStr
(
personDto
.
getBIRTHDATE
());
ryxx
.
setXzzDzmc
(
personDto
.
getADDRESS
());
ryxx
.
setTbbz
(
"0"
);
//录入单位
ryxx
.
setLrdwdm
(
personDto
.
getCREATEUNIT
());
// ryxx.setLrdwdm("440100000000");
ryxx
.
setLrdwmc
(
personDto
.
getCOLLECTUNITNAME
());
ryxx
.
setZwcjdwdm
(
personDto
.
getCOLLECTUNITCODE
());
//todo 采集人
ryxx
.
setZwcjr
(
personDto
.
getCOLLECTPSN
());
ryxx
.
setZwcjsjStr
(
personDto
.
getCOLLECTDATE
());
ryxx
.
setSzzwbh
(
personDto
.
getBARCODE
().
substring
(
1
));
//todo 后续根据文件修改
ryxx
.
setZwfkxx
(
"A1B1111111111C1111111111D11E11F10000000G10000000H10000000"
);
//指纹反馈信息
ryxx
.
setLrr
(
personDto
.
getCREATEUSER
());
ryxx
.
setLrsjStr
(
personDto
.
getDEATHTIME
());
//todo 案件类别
ryxx
.
setAjlbdmStr
(
personDto
.
getCASETYPE1
());
ryxx
.
setWffzjlms
(
personDto
.
getCASEDETAILS
());
ryxx
.
setCym
(
personDto
.
getUSEREDNAME
());
ryxx
.
setCyzjdm
(
personDto
.
getIDNUMBERTYPE
());
ryxx
.
setGjdm
(
personDto
.
getNATIONALITY
());
ryxx
.
setMzdm
(
personDto
.
getNATION
());
ryxx
.
setXldm
(
personDto
.
getDEUCATION
());
ryxx
.
setSgsx
(
personDto
.
getHEIGHT
());
ryxx
.
setTzsx
(
personDto
.
getWEIGHT
());
ryxx
.
setHjdzXzqhdm
(
personDto
.
getHOUSEREGCODE
());
ryxx
.
setJgssxdm
(
personDto
.
getADDRESSCODE
());
ryxx
.
setHjdzDzmc
(
personDto
.
getHOUSEREG
());
ryxx
.
setXzzXzqhdm
(
personDto
.
getADDRESSCODE
());
ryxx
.
setXzzDzmc
(
personDto
.
getADDRESS
());
ryxx
.
setZc
(
personDto
.
getFOOTLENGTH
());
//案件详情
ryxx
.
setWffzjlms
(
personDto
.
getCASEDETAILS
());
ryxx
.
setJyaq
(
personDto
.
getCASEDETAILS
());
ryxx
.
setDnabh
(
personDto
.
getDNABARCODE
());
//二代证 1
String
edzzpxxbh
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/IdCardPic.jpg"
));
if
(
edzzpxxbh
!=
null
)
{
String
num
=
insPicRx
(
edzzpxxbh
,
ryxx
.
getRybh
(),
user
,
"1"
,
ryxx
.
getEdzzpxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setEdzzpxxbh
(
num
);
}
}
//正面照 2
String
zmzpxxbh
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/41.jpg"
));
if
(
zmzpxxbh
!=
null
)
{
String
num
=
insPicRx
(
zmzpxxbh
,
ryxx
.
getRybh
(),
user
,
"2"
,
ryxx
.
getZmzpxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setZmzpxxbh
(
num
);
}
}
//左侧面 3
String
cmzpxxbh
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/42.jpg"
));
if
(
cmzpxxbh
!=
null
)
{
String
num
=
insPicRx
(
cmzpxxbh
,
ryxx
.
getRybh
(),
user
,
"3"
,
ryxx
.
getCmzpxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setCmzpxxbh
(
num
);
}
}
//右侧面 4
String
ycmzpxxbh
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/43.jpg"
));
if
(
ycmzpxxbh
!=
null
)
{
String
num
=
insPicRx
(
ycmzpxxbh
,
ryxx
.
getRybh
(),
user
,
"4"
,
ryxx
.
getYcmzpxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setYcmzpxxbh
(
num
);
}
}
// 右足迹
String
yzj
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/RightFoot.jpg"
));
String
yzjzp
=
"RightFoot"
;
if
(
yzj
!=
null
)
{
String
num
=
insPicByZuJi
(
yzj
,
ryxx
.
getRybh
(),
user
,
yzjzp
,
"11"
,
ryxx
,
ryxx
.
getZjrightxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setZjrightxxbh
(
num
);
}
}
// 左足迹
String
zzj
=
FileUtils
.
fileToByte
(
new
File
(
unZipFiles
+
"/LeftFoot.jpg"
));
String
zzjzp
=
"LightFoot"
;
if
(
yzj
!=
null
)
{
String
num
=
insPicByZuJi
(
zzj
,
ryxx
.
getRybh
(),
user
,
zzjzp
,
"12"
,
ryxx
,
ryxx
.
getZjrightxxbh
());
if
(
num
==
"-1"
)
{
photoflag
=
false
;
}
else
{
ryxx
.
setZjleftxxbh
(
num
);
}
}
rycjService
.
insertRyxx
(
ryxx
);
String
xzRylx
=
ryxx
.
getBzw
();
String
xtZwcjr
=
ryxx
.
getZwcjr
();
Date
zwcjsj
=
ryxx
.
getZwcjsj
();
String
xtZwcjsj
=
DateUtil
.
convertDateToString
(
zwcjsj
);
String
xtIp
=
ryxx
.
getIp
();
String
xtCjrLxdh
=
ryxx
.
getCjRlxdh
();
String
xtZwcjdwdm
=
ryxx
.
getZwcjdwdm
();
String
whcd
=
ryxx
.
getXldm
();
String
zjlx
=
ryxx
.
getCyzjdm
();
String
ajlb
=
ryxx
.
getAjlbdm
();
String
bmch
=
ryxx
.
getBmch
();
String
jyaq
=
ryxx
.
getJyaq
();
String
zwwfcjsm
=
ryxx
.
getZwwfcjsm
();
String
wzjyydm
=
ryxx
.
getWzjyydm
();
PCTInfo
pctinfo
=
new
PCTInfo
();
pctinfo
.
setBarcode
(
map_barcode
);
pctinfo
.
setName
(
map_name
);
pctinfo
.
setSex
(
map_sex
);
if
(
map_idnumbertype
==
null
||
""
.
equals
(
map_idnumbertype
))
{
pctinfo
.
setIdnumbertype
(
zjlx
);
}
else
{
pctinfo
.
setIdnumbertype
(
map_idnumbertype
);
}
pctinfo
.
setIdnumber
(
map_idnumber
);
pctinfo
.
setBirthdate
(
map_birthdate
);
pctinfo
.
setBirthaddress
(
map_birthaddcode
);
pctinfo
.
setAddress
(
map_address
);
pctinfo
.
setCollectunitname
(
map_collectunitname
);
pctinfo
.
setCollectorname
(
map_collectpsn
);
pctinfo
.
setCollectdate
(
map_collectdate
);
pctinfo
.
setCaseclass1
(
map_casetype1
);
pctinfo
.
setCaseclass2
(
map_casetype2
);
pctinfo
.
setCaseclass3
(
map_casetype3
);
if
(
jyaq
==
null
||
""
.
equals
(
jyaq
))
{
pctinfo
.
setScrimedescription
(
map_casedetails
);
}
else
{
pctinfo
.
setScrimedescription
(
jyaq
);
}
if
(
map_useredname
==
null
||
""
.
equals
(
map_useredname
))
{
pctinfo
.
setUseredname
(
bmch
);
}
else
{
pctinfo
.
setUseredname
(
map_useredname
);
}
pctinfo
.
setNationality
(
map_nationality
);
pctinfo
.
setNation
(
map_nation
);
if
(
map_deucation
==
null
||
""
.
equals
(
map_deucation
))
{
pctinfo
.
setDeucation
(
whcd
);
}
else
{
pctinfo
.
setDeucation
(
map_deucation
);
}
pctinfo
.
setHeight
(
map_height
);
pctinfo
.
setWeight
(
map_weight
);
pctinfo
.
setHouseregcode
(
map_houseregcode
);
pctinfo
.
setHousereg
(
map_housereg
);
pctinfo
.
setAddresscode
(
map_addrdsscode
);
pctinfo
.
setAddress
(
map_addrdss
);
pctinfo
.
setXtRylx
(
xzRylx
);
pctinfo
.
setXtZwcjsj
(
xtZwcjsj
);
pctinfo
.
setXtZwcjr
(
xtZwcjr
);
pctinfo
.
setXtIp
(
xtIp
);
pctinfo
.
setXtCjrLxdh
(
xtCjrLxdh
);
pctinfo
.
setXtZwcjdwdm
(
xtZwcjdwdm
);
pctinfo
.
setCaseclasscode1
(
ajlb
);
pctinfo
.
setXtWczwsm
(
zwwfcjsm
);
pctinfo
.
setXtWzjyydm
(
wzjyydm
);
}
AfisQualityCk
afisQualityCk
=
new
AfisQualityCk
();
}
}
// afisQualityCk.setRZwbh(barcode);
//afisQualityCk = afisQualityServiceImpl.getAfisQuality(afisQualityCk);
}
catch
(
Exception
e
)
{
System
.
out
.
println
(
e
.
getStackTrace
());
System
.
out
.
println
(
"人员质量检查:【人员基本信息出错】:"
+
e
);
}
return
"SUCCESS"
;
}
// 图片下载、并且存入数据库
public
String
insPicByZuJi
(
String
R_EDZZP64
,
String
rybh
,
User
user
,
String
zjzp
,
String
zpbw
,
AutoTbStRy
ryxx
,
String
zpxxbh
)
{
String
fileName
=
rybh
+
zjzp
+
".jpg"
;
AutoTbRyZp
ryzp
=
new
AutoTbRyZp
();
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
boolean
xxbhflag
=
false
;
Param
param
=
paramService
.
getParamById
(
"0100"
);
try
{
String
zplj
=
param
.
getParamvalue
();
// ServletContext context = request.getSession().getServletContext();
String
savePathS
=
"/personphoto"
;
String
filePathS
=
zplj
;
filePathS
=
filePathS
+
savePathS
;
File
filejiaS
=
new
File
(
filePathS
);
// 如果文件夹不存在则创建
if
(!
filejiaS
.
exists
())
{
filejiaS
.
mkdir
();
}
String
savePathNY
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
);
String
filePathNY
=
zplj
;
filePathNY
=
filePathNY
+
savePathNY
;
File
filejiaNY
=
new
File
(
filePathNY
);
// 如果文件夹不存在则创建
if
(!
filejiaNY
.
exists
())
{
filejiaNY
.
mkdir
();
}
//保存路径
String
savePath
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
)
+
"/"
+
rybh
.
substring
(
rybh
.
length
()
-
3
,
rybh
.
length
());
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
File
filejia
=
new
File
(
filePath
);
// 如果文件夹不存在则创建
if
(!
filejia
.
exists
())
{
filejia
.
mkdir
();
}
byte
[]
content
=
GenerateImage
(
R_EDZZP64
,
filePath
+
"/"
+
fileName
);
if
(
"31"
.
equals
(
zpbw
)
||
"32"
.
equals
(
zpbw
))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"rybh"
,
rybh
);
map
.
put
(
"zpbw"
,
zpbw
);
ryzp_pd
=
tbRyRyzpService
.
getTbRyTstzzpByRybh
(
map
,
user
.
getUnitcode
());
}
else
if
(
"11"
.
equals
(
zpbw
)
||
"12"
.
equals
(
zpbw
))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"rybh"
,
rybh
);
map
.
put
(
"zpbw"
,
zpbw
);
ryzp_pd
=
tbRyRyzpService
.
getTbRyZjzpByRybh
(
map
,
user
.
getUnitcode
());
}
else
if
(
zpxxbh
!=
null
&&
!
""
.
equals
(
zpxxbh
))
{
ryzp_pd
=
tbRyRyzpService
.
getTbRyRyzpById
(
zpxxbh
,
user
.
getUnitcode
());
}
if
(
ryzp_pd
==
null
)
{
zpxxbh
=
""
;
}
else
{
zpxxbh
=
ryzp_pd
.
getXxbh
();
}
if
(
zpxxbh
!=
null
&&
!
zpxxbh
.
equals
(
""
))
{
ryzp
.
setXxbh
(
zpxxbh
);
ryzp
.
setGxsj
(
new
Date
());
ryzp
.
setGxr
(
user
.
getUsername
());
ryzp
.
setGxdwdm
(
user
.
getUnitcode
());
ryzp
.
setGxdwmc
(
user
.
getUnitname
());
}
else
{
String
xxbhString
=
rybh
+
zpbw
;
ryzp
.
setXxbh
(
xxbhString
);
ryzp
.
setLrr
(
user
.
getUsername
());
ryzp
.
setLrsj
(
new
Date
());
ryzp
.
setLrdwdm
(
user
.
getUnitcode
());
ryzp
.
setLrdwmc
(
user
.
getUnitname
());
}
ryzp
.
setRybh
(
rybh
);
ryzp
.
setXm
(
ryxx
.
getXm
());
ryzp
.
setGmsfhm
(
ryxx
.
getGmsfhm
());
ryzp
.
setDzwjnr
(
content
);
ryzp
.
setDzwjcjsjRqsj
(
new
Date
());
ryzp
.
setDzwjdx
(
String
.
valueOf
(
content
.
length
));
ryzp
.
setDzwjgs
(
fileName
.
substring
(
fileName
.
lastIndexOf
(
"."
)
+
1
));
ryzp
.
setDzwjwz
(
filePath
+
"/"
+
fileName
);
ryzp
.
setDzwjmc
(
fileName
);
ryzp
.
setZpbw
(
zpbw
);
ryzp
.
setTmtzms
(
ryxx
.
getTmtzms
());
ryzp
.
setZjlxdm
(
ryxx
.
getZjlxdm
());
ryzp
.
setXdhwdm
(
ryxx
.
getXdhwdm
());
ryzp
.
setXydm
(
ryxx
.
getXydm
());
if
(
zpxxbh
!=
null
&&
!
zpxxbh
.
equals
(
""
))
{
if
(
"31"
.
equals
(
zpbw
)
||
"32"
.
equals
(
zpbw
))
{
xxbhflag
=
tbRyRyzpService
.
updateTbRyTstzzp
(
ryzp
,
user
.
getUnitcode
());
}
else
if
(
"11"
.
equals
(
zpbw
)
||
"12"
.
equals
(
zpbw
))
{
xxbhflag
=
tbRyRyzpService
.
updateTbRyZjzp
(
ryzp
,
user
.
getUnitcode
());
}
else
{
xxbhflag
=
tbRyRyzpService
.
updateTbRyRyzp
(
ryzp
,
user
.
getUnitcode
());
}
}
else
{
if
(
"31"
.
equals
(
zpbw
)
||
"32"
.
equals
(
zpbw
))
{
xxbhflag
=
tbRyRyzpService
.
insertTbRyTstzzp
(
ryzp
,
user
.
getUnitcode
());
}
else
if
(
"11"
.
equals
(
zpbw
)
||
"12"
.
equals
(
zpbw
))
{
xxbhflag
=
tbRyRyzpService
.
insertTbRyZjzp
(
ryzp
,
user
.
getUnitcode
());
}
else
{
xxbhflag
=
tbRyRyzpService
.
insertTbRyRyzp
(
ryzp
,
user
.
getUnitcode
());
}
}
}
catch
(
Exception
e
)
{
return
"-1"
;
}
finally
{
if
(
xxbhflag
)
{
return
ryzp
.
getXxbh
();
}
else
{
return
"-1"
;
}
}
}
// 图片下载、并且存入数据库
public
String
insPicRx
(
String
R_EDZZP64
,
String
rybh
,
User
user
,
String
zpbw
,
String
zpxxbh
){
String
fileName
=
rybh
+
zpbw
+
".jpg"
;
AutoTbRyZp
ryzp
=
new
AutoTbRyZp
();
AutoTbRyZp
ryzp_pd
=
null
;
// 判断照片编号是否有对应照片
boolean
xxbhflag
=
false
;
try
{
Param
param
=
paramService
.
getParamById
(
"0100"
);
String
zplj
=
param
.
getParamvalue
();
String
savePathS
=
"/personphoto"
;
String
filePathS
=
zplj
;
filePathS
=
filePathS
+
savePathS
;
File
filejiaS
=
new
File
(
filePathS
);
// 如果文件夹不存在则创建
if
(!
filejiaS
.
exists
())
{
filejiaS
.
mkdir
();
}
String
savePathNY
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
);
String
filePathNY
=
zplj
;
filePathNY
=
filePathNY
+
savePathNY
;
File
filejiaNY
=
new
File
(
filePathNY
);
// 如果文件夹不存在则创建
if
(!
filejiaNY
.
exists
())
{
filejiaNY
.
mkdir
();
}
String
savePath
=
"/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
)
+
"/"
+
rybh
.
substring
(
rybh
.
length
()
-
3
,
rybh
.
length
());
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
File
filejia
=
new
File
(
filePath
);
// 如果文件夹不存在则创建
if
(!
filejia
.
exists
())
{
filejia
.
mkdir
();
}
byte
[]
content
=
GenerateImage
(
R_EDZZP64
,
filePath
+
"/"
+
fileName
);
if
(
zpxxbh
!=
null
&&!
""
.
equals
(
zpxxbh
)){
ryzp_pd
=
tbRyRyzpService
.
getTbRyRyzpById
(
zpxxbh
,
user
.
getUnitcode
());
}
if
(
ryzp_pd
==
null
)
{
zpxxbh
=
""
;
}
if
(
zpxxbh
!=
null
&&
!
zpxxbh
.
equals
(
""
))
{
ryzp
.
setXxbh
(
zpxxbh
);
ryzp
.
setGxsj
(
new
Date
());
ryzp
.
setGxr
(
user
.
getUsername
());
ryzp
.
setGxdwdm
(
user
.
getUnitcode
());
ryzp
.
setGxdwmc
(
user
.
getUnitname
());
}
else
{
String
xxbhString
=
rybh
+
zpbw
;
ryzp
.
setXxbh
(
xxbhString
);
ryzp
.
setLrr
(
user
.
getUsername
());
ryzp
.
setLrsj
(
new
Date
());
ryzp
.
setLrdwdm
(
user
.
getUnitcode
());
ryzp
.
setLrdwmc
(
user
.
getUnitname
());
}
ryzp
.
setRybh
(
rybh
);
ryzp
.
setDzwjnr
(
content
);
ryzp
.
setDzwjcjsjRqsj
(
new
Date
());
ryzp
.
setDzwjdx
(
String
.
valueOf
(
content
.
length
));
ryzp
.
setDzwjgs
(
fileName
.
substring
(
fileName
.
lastIndexOf
(
"."
)
+
1
));
ryzp
.
setDzwjwz
(
filePath
+
"/"
+
fileName
);
ryzp
.
setDzwjmc
(
fileName
);
ryzp
.
setZpbw
(
zpbw
);
if
(
zpxxbh
!=
null
&&
!
zpxxbh
.
equals
(
""
))
{
xxbhflag
=
tbRyRyzpService
.
updateTbRyRyzp
(
ryzp
,
user
.
getUnitcode
());
}
else
{
xxbhflag
=
tbRyRyzpService
.
insertTbRyRyzp
(
ryzp
,
user
.
getUnitcode
());
}
}
catch
(
Exception
e
)
{
return
"-1"
;
}
finally
{
}
if
(
xxbhflag
)
{
return
ryzp
.
getXxbh
();
}
else
{
return
"-1"
;
}
}
// 图片下载、并且存入数据库
public
String
insPic
(
String
R_EDZZP64
,
String
rybh
,
User
user
,
String
zpbw
,
String
zpxxbh
,
HttpServletRequest
request
)
{
...
...
@@ -1823,15 +2271,15 @@ public class TbXwRycjController {
public
static
void
main
(
String
[]
args
)
{
//TbXwRycjController st = new TbXwRycjController();
//String str = st.GetImageStrs("C:/personphoto/201702/007/P51101140000020170220071.jpg");
String
command
=
"C:/Windows/System32/calc.exe"
;
try
{
Runtime
.
getRuntime
().
exec
(
command
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
String
str
=
"i/9j/ivo"
;
System
.
out
.
println
(
str
.
indexOf
(
"/9j/"
));
System
.
out
.
println
(
bjDate
(
"2018-10-11 15:12:11"
,
"2018-10-11 15:12:11"
));
//
String command = "C:/Windows/System32/calc.exe";
//
try {
//
Runtime.getRuntime().exec(command);
//
} catch (IOException e) {
//
e.printStackTrace();
//
}
//
String str = "i/9j/ivo";
//
System.out.println(str.indexOf("/9j/"));
//
System.out.println(bjDate("2018-10-11 15:12:11","2018-10-11 15:12:11"));
}
public
static
String
GetImageStrs
(
String
imgFilePath
)
{
// 将图片文件转化为字节数组字符串,并对其进行Base64编码处理
...
...
src/main/java/com/founder/model/Goods.java
0 → 100644
View file @
799e7aa5
package
com
.
founder
.
model
;
import
lombok.Data
;
/**
* @author wcw
* @version 1.0
* @date 2021/7/10 15:49
*/
@Data
public
class
Goods
{
private
String
GOODSCOLOR
;
private
String
GOODSFEATURE
;
private
String
GOODSFLAG
;
private
String
GOODSNAME
;
private
String
GOODSNO
;
private
String
GOODSPATH
;
private
String
GOODSSEQ
;
private
String
GOODSTYPE
;
private
String
GOODSVALUE
;
private
String
GOODSVERSION
;
}
src/main/java/com/founder/model/PersonDto.java
0 → 100644
View file @
799e7aa5
package
com
.
founder
.
model
;
import
lombok.Data
;
import
java.util.List
;
/**
* @author wcw
* @version 1.0
* @date 2021/7/10 14:56
*/
@Data
public
class
PersonDto
{
private
String
BARCODE
;
private
String
PNAME
;
private
String
ALIASNAME
;
private
String
PSEX
;
private
String
IDNUMBERTYPE
;
private
String
IDNUMBER
;
private
String
BIRTHDATE
;
private
String
NATION
;
private
String
NATIONALITY
;
private
String
HOUSEREG
;
private
String
USEREDNAME
;
private
String
PHONE1
;
private
String
WORKUNIT
;
private
String
PROFESSION
;
private
String
DEUCATION
;
private
String
HEIGHT
;
private
String
WEIGHT
;
private
String
FOOTLENGTH
;
private
String
HABITUS
;
private
String
POLITICSSTATUS
;
private
String
IDENTITY
;
private
String
SPECIALTY
;
private
String
LOGICDBTYPE
;
private
String
VOICE
;
private
String
FEATURE
;
private
String
BLOODTYPE
;
private
String
BIRTHADDCODE
;
private
String
FTPBARCODE
;
private
String
DNABARCODE
;
private
String
CASETYPE1
;
private
String
CASETYPE2
;
private
String
CASETYPE3
;
private
String
MATRIALSTATUS
;
private
String
SIGNALEMENT1
;
private
String
SIGNALEMENT2
;
private
String
SIGNALEMENT3
;
private
String
ADDRESS
;
private
String
ADDRESSCODE
;
private
String
COLLECTUNITNAME
;
private
String
COLLECTPSN
;
private
String
COLLECTDATE
;
private
String
COLLECTUNITCODE
;
private
String
COMMUNITY
;
private
String
MILITARYSERVICE
;
private
String
FAITH
;
private
String
CRIMINALRECFLG
;
private
String
IFPSYCHOSIS
;
private
String
IFDRUG
;
private
String
IFAIDS
;
private
String
CREATEUNIT
;
private
String
CREATEUSER
;
private
String
DEATHTIME
;
private
String
CRIMINALREC
;
private
String
CASEDETAILS
;
private
String
REMARK
;
private
String
UPDATETI
;
private
String
CREATETIME
;
private
String
FILEPATH
;
private
String
RFPSTATUS
;
private
String
PFPSTATUS
;
private
String
PLPSTATUS
;
private
String
FACESTATUS
;
private
String
DATASTATUS
;
private
String
HOUSEREGCODE
;
private
String
IFIDCARD
;
private
String
UPLOADSTATE
;
private
String
PSNTYPE
;
private
String
NAME_PY
;
private
String
ALIASNAME_PY
;
private
String
IFPHONEINFO
;
private
String
IFPERSONALEFFECTS
;
private
String
IFFOOTINFO
;
private
List
<
Goods
>
GOODS
;
private
String
LEFTFOOTPATH
;
private
String
RIGHTFOOTPATH
;
private
String
RESERVER
;
private
String
OPENBANKTIME
;
private
String
OPENBANKNAME
;
private
String
OPENBANKADDRESS
;
private
String
IDCARDNUM
;
private
String
BANKCARDPERSONNAME
;
private
String
BANKINFOIDCARDTYPE
;
private
String
BANKCARDTYPE
;
private
String
BANKCARDNAME
;
private
String
BANKCARDINVALIDTIME
;
private
String
BANKCARDID
;
private
String
ADDID
;
private
String
ACCOUNTCANCELLATIONTIME
;
}
src/main/java/com/founder/utils/FileUtils.java
View file @
799e7aa5
...
...
@@ -152,6 +152,107 @@ public class FileUtils {
}
//将照片转成二进制码
public
static
String
fileToByte
(
File
img
)
{
FileInputStream
inputStream
=
null
;
try
{
Base64
.
Encoder
encoder
=
Base64
.
getEncoder
();
BASE64Decoder
decoder
=
new
sun
.
misc
.
BASE64Decoder
();
inputStream
=
new
FileInputStream
(
img
);
int
available
=
inputStream
.
available
();
byte
[]
bytes
=
new
byte
[
available
];
inputStream
.
read
(
bytes
);
String
base64Str
=
encoder
.
encodeToString
(
bytes
);
byte
[]
bytes1
=
decoder
.
decodeBuffer
(
base64Str
);
return
base64Str
;
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
finally
{
try
{
inputStream
.
close
();
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
}
return
null
;
}
// private static void searchFiles(String fileDir) {
// List<File> fileList = new ArrayList<File>();
// File file = new File(fileDir);
// File[] files = file.listFiles();// 获取目录下的所有文件或文件夹
// if (files == null) {// 如果目录为空,直接退出
// return;
// }
// // 遍历,目录下的所有文件
// for (File f : files) {
// if (f.isFile()) {
// fileList.add(f);
// } else if (f.isDirectory()) {
// System.out.println(f.getAbsolutePath());
// searchFiles(f.getAbsolutePath());
// }
// }
// for (File f1 : fileList) {
// System.out.println(f1.getName());
// }
// }
/**
* 查找文件名
* @param folder
* @param keyword
* @return
*/
public
static
List
<
File
>
searchFiles
(
File
folder
,
String
keyword
)
{
List
<
File
>
result
=
new
ArrayList
<
File
>();
if
(
folder
.
isFile
())
result
.
add
(
folder
);
//查找文件名
// File[] subFolders = folder.listFiles(new FileFilter() {
// @Override
// public boolean accept(File file) {
// if (file.isDirectory()) {
// return true;
// }
// if (file.getName().toLowerCase().contains(keyword)) {
// return true;
// }
// return false;
// }
// });
//查找后缀名
File
[]
subFolders
=
folder
.
listFiles
(
new
FileFilter
()
{
@Override
public
boolean
accept
(
File
file
)
{
if
(
file
.
isDirectory
())
{
return
true
;
}
if
(
file
.
getName
().
toLowerCase
().
endsWith
(
keyword
))
{
return
true
;
}
return
false
;
}
});
if
(
subFolders
!=
null
)
{
for
(
File
file
:
subFolders
)
{
if
(
file
.
isFile
())
{
// 如果是文件则将文件添加到结果列表中
result
.
add
(
file
);
}
else
{
// 如果是文件夹,则递归调用本方法,然后把所有的文件加到结果列表中
result
.
addAll
(
searchFiles
(
file
,
keyword
));
}
}
}
return
result
;
}
//生成XML文件并且存入服务器端
public
static
void
saveXmlFile
(
String
xmlStr
,
String
rybh
,
String
xmlFilePath
,
String
fileName
,
User
user
)
{
String
savePathS
=
"/xmlFile"
;
...
...
@@ -492,46 +593,52 @@ public class FileUtils {
FileUtils.saveXmlFile(xmlStr,"R4302020000002019080001","C:/Oracle/Middleware/user_projects/domains/XTBA_domain/autodeploy/XZZYXT/upload","HMXX-R4302020000002019080001.xml",user);
*/
Map
<
String
,
Object
>
res
=
new
HashMap
<>();
List
<
NameValuePair
>
pairs
=
new
ArrayList
<
NameValuePair
>();
NameValuePair
pair0
=
new
BasicNameValuePair
(
"request_id"
,
"123"
);
NameValuePair
pair1
=
new
BasicNameValuePair
(
"user_id"
,
"admin"
);
NameValuePair
pair2
=
new
BasicNameValuePair
(
"user_dept"
,
"430200000000"
);
NameValuePair
pair3
=
new
BasicNameValuePair
(
"version"
,
"1.00"
);
NameValuePair
pair4
=
new
BasicNameValuePair
(
"bcjr_zjhm"
,
"1212121212"
);
NameValuePair
pair5
=
new
BasicNameValuePair
(
"bcjr_xm"
,
"ceshi"
);
NameValuePair
pair6
=
new
BasicNameValuePair
(
"ywfssj"
,
"20190925104218"
);
NameValuePair
pair7
=
new
BasicNameValuePair
(
"hmzp_zy"
,
"1234141123123"
);
NameValuePair
pair8
=
new
BasicNameValuePair
(
"yyqsqkdm"
,
"0"
);
NameValuePair
pair9
=
new
BasicNameValuePair
(
"zy_xxzlpf"
,
"90"
);
pairs
.
add
(
pair0
);
pairs
.
add
(
pair1
);
pairs
.
add
(
pair2
);
pairs
.
add
(
pair3
);
pairs
.
add
(
pair4
);
pairs
.
add
(
pair5
);
pairs
.
add
(
pair6
);
pairs
.
add
(
pair7
);
pairs
.
add
(
pair8
);
pairs
.
add
(
pair9
);
res
.
put
(
"user_id"
,
"admin"
);
res
.
put
(
"client_id"
,
"hongba"
);
res
.
put
(
"request_id"
,
"123"
);
res
.
put
(
"user_dept"
,
"430200000000"
);
res
.
put
(
"bcjr_zjhm"
,
"121353454532212"
);
res
.
put
(
"bcjr_xm"
,
"ceshi"
);
res
.
put
(
"ywfssj"
,
"20190924154218"
);
res
.
put
(
"version"
,
"1.00"
);
res
.
put
(
"hmzp_zy"
,
"wewtecsfdsdfsfrw24234"
);
res
.
put
(
"hmzp_yy"
,
"sdfwrwrw32235aafsfwrwe"
);
res
.
put
(
"yyqsqkdm"
,
"0"
);
res
.
put
(
"zyqsqkdm"
,
"1"
);
res
.
put
(
"zy_xxzlpf"
,
"90"
);
res
.
put
(
"yy_xxzlpf"
,
"80"
);
System
.
out
.
println
(
res
);
JSONObject
jsonResult
=
requestByPost
(
"http://127.0.0.1:9300/iris/regIris"
,
res
);
//JSONObject jsonResult= requestByPost_new(urlstr,pairs);
System
.
out
.
println
(
jsonResult
.
toJSONString
());
// Map<String, Object> res = new HashMap<>();
// List<NameValuePair> pairs = new ArrayList<NameValuePair>();
// NameValuePair pair0 = new BasicNameValuePair("request_id", "123");
// NameValuePair pair1 = new BasicNameValuePair("user_id", "admin");
// NameValuePair pair2 = new BasicNameValuePair("user_dept", "430200000000");
// NameValuePair pair3 = new BasicNameValuePair("version","1.00");
// NameValuePair pair4 = new BasicNameValuePair("bcjr_zjhm","1212121212");
// NameValuePair pair5 = new BasicNameValuePair("bcjr_xm","ceshi");
// NameValuePair pair6 = new BasicNameValuePair("ywfssj","20190925104218");
// NameValuePair pair7 = new BasicNameValuePair("hmzp_zy","1234141123123");
// NameValuePair pair8 = new BasicNameValuePair("yyqsqkdm","0");
// NameValuePair pair9 = new BasicNameValuePair("zy_xxzlpf","90");
// pairs.add(pair0);
// pairs.add(pair1);
// pairs.add(pair2);
// pairs.add(pair3);
// pairs.add(pair4);
// pairs.add(pair5);
// pairs.add(pair6);
// pairs.add(pair7);
// pairs.add(pair8);
// pairs.add(pair9);
// res.put("user_id", "admin");
// res.put("client_id", "hongba");
// res.put("request_id", "123");
// res.put("user_dept","430200000000");
// res.put("bcjr_zjhm","121353454532212");
// res.put("bcjr_xm","ceshi");
// res.put("ywfssj","20190924154218");
// res.put("version", "1.00");
// res.put("hmzp_zy", "wewtecsfdsdfsfrw24234");
// res.put("hmzp_yy", "sdfwrwrw32235aafsfwrwe");
// res.put("yyqsqkdm", "0");
// res.put("zyqsqkdm", "1");
// res.put("zy_xxzlpf", "90");
// res.put("yy_xxzlpf", "80");
// System.out.println(res);
// JSONObject jsonResult= requestByPost("http://127.0.0.1:9300/iris/regIris",res);
// //JSONObject jsonResult= requestByPost_new(urlstr,pairs);
// System.out.println(jsonResult.toJSONString());
List
<
File
>
files
=
searchFiles
(
new
File
(
"F:/baidudownload/钉钉下载"
),
"zip"
);
// List<File> files = searchFiles(new File("E:\\tem"), "1");
System
.
out
.
println
(
"共找到:"
+
files
.
size
()
+
"个文件"
);
for
(
File
file
:
files
)
{
System
.
out
.
println
(
file
.
getAbsolutePath
());
}
}
public
static
String
postUrl
(
String
strURL
,
String
params
)
{
...
...
src/main/java/com/founder/utils/ZipUtils.java
0 → 100644
View file @
799e7aa5
package
com
.
founder
.
utils
;
import
java.io.File
;
import
java.io.FileOutputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.nio.charset.Charset
;
import
java.util.Enumeration
;
import
java.util.zip.ZipEntry
;
import
java.util.zip.ZipFile
;
/**
* @author wcw
* @version 1.0
* @date 2021/7/10 14:30
*/
public
class
ZipUtils
{
/**
* 进行zip文件解压
* @param zipFile
* @param descDir
* @return
*/
public
static
String
unZipFiles
(
File
zipFile
,
String
descDir
)
{
//解压文件夹
String
outPath
=
null
;
ZipFile
zip
=
null
;
//解决中文文件夹乱码
try
{
zip
=
new
ZipFile
(
zipFile
,
Charset
.
forName
(
"GBK"
));
String
name
=
zip
.
getName
().
substring
(
zip
.
getName
().
lastIndexOf
(
'\\'
)+
1
,
zip
.
getName
().
lastIndexOf
(
'.'
));
// System.out.println(zip.getName().substring(zip.getName().lastIndexOf('.')+1, zip.getName().length()));
File
pathFile
=
new
File
(
descDir
+
name
);
if
(!
pathFile
.
exists
())
{
pathFile
.
mkdirs
();
}
for
(
Enumeration
<?
extends
ZipEntry
>
entries
=
zip
.
entries
();
entries
.
hasMoreElements
();)
{
ZipEntry
entry
=
(
ZipEntry
)
entries
.
nextElement
();
String
zipEntryName
=
entry
.
getName
();
InputStream
in
=
zip
.
getInputStream
(
entry
);
outPath
=
(
descDir
+
name
+
"/"
+
zipEntryName
).
replaceAll
(
"\\*"
,
"/"
);
// 判断路径是否存在,不存在则创建文件路径
File
file
=
new
File
(
outPath
.
substring
(
0
,
outPath
.
lastIndexOf
(
'/'
)));
if
(!
file
.
exists
())
{
file
.
mkdirs
();
}
// 判断文件全路径是否为文件夹,如果是上面已经上传,不需要解压
if
(
new
File
(
outPath
).
isDirectory
())
{
continue
;
}
// 输出文件路径信息
// System.out.println(outPath);
FileOutputStream
out
=
new
FileOutputStream
(
outPath
);
byte
[]
buf1
=
new
byte
[
1024
];
int
len
;
while
((
len
=
in
.
read
(
buf1
))
>
0
)
{
out
.
write
(
buf1
,
0
,
len
);
}
in
.
close
();
out
.
flush
();
out
.
close
();
}
zip
.
close
();
System
.
out
.
println
(
"******************解压完毕********************"
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
finally
{
//解压后删除压缩文件
boolean
delete
=
zipFile
.
delete
();
System
.
out
.
println
(
"删除状态:"
+
delete
);
}
//返回解压后的路径
return
outPath
.
substring
(
0
,
outPath
.
lastIndexOf
(
'/'
));
}
public
static
void
main
(
String
[]
args
)
{
String
unZipFiles
=
unZipFiles
(
new
File
(
"F:/baidudownload/钉钉下载/R4600000504012021072906.zip"
),
"F:/baidudownload/钉钉下载/"
);
// String xmlToString = PraseXML.xmlToString(new File(unZipFiles+"/Person.xml"));
// Map map = PraseXML.parse_XMLMap(xmlToString);
// PersonDto personDto = JSON.parseObject(JSONObject.toJSONString(map), PersonDto.class);
// System.out.println(xmlToString);
// System.out.println("********************");
// System.out.println(map);
// System.out.println(personDto.toString());
// String fileToByte = FileUtils.fileToByte(new File(unZipFiles + "/RightFoot.jpg"));//RightFoot.jpg
// FileUtils.base64StringToImage(fileToByte);
}
}
src/main/resources/application.properties
View file @
799e7aa5
...
...
@@ -21,3 +21,5 @@ qganurl=http://zhyy.xzxt.nm/getGabZyInfoByJyaqMatj.action
nmjz_interfaceurl
=
http://26.169.99.50:9086/tcwebservice/services/ServiceImpl?wsdl
sbglqx
=
admin:123456
ftpUrl
=
F:/test
\ No newline at end of file
src/main/resources/mapper/AutoTbXwRycjSqlMap.xml
View file @
799e7aa5
...
...
@@ -120,6 +120,8 @@
<result
column=
"XDHWDM"
property=
"xdhwdm"
jdbcType=
"VARCHAR"
/>
<result
column=
"XYDM"
property=
"xydm"
jdbcType=
"VARCHAR"
/>
<result
column=
"RXBDJG"
property=
"rxbdjg"
jdbcType=
"VARCHAR"
/>
<result
column=
"ZJLEFTXXBH"
property=
"zjleftxxbh"
jdbcType=
"VARCHAR"
/>
<result
column=
"ZJRIGHTXXBH"
property=
"zjrightxxbh"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"queryWhere"
>
...
...
@@ -397,7 +399,10 @@
SFSWZT,
ZJLXDM,
XDHWDM,
XYDM
XYDM,
ZJLEFTXXBH,
ZJRIGHTXXBH,
ZWFKXX
)
values (
<if
test=
"entity.rybh != null and entity.rybh != ''"
>
#{entity.rybh , jdbcType=VARCHAR }
</if>
...
...
@@ -590,6 +595,12 @@
<if
test=
"entity.xdhwdm == null or entity.xdhwdm == ''"
>
,NULL
</if>
<if
test=
"entity.xydm != null and entity.xydm != ''"
>
, #{entity.xydm , jdbcType=VARCHAR }
</if>
<if
test=
"entity.xydm == null or entity.xydm == ''"
>
,NULL
</if>
<if
test=
"entity.zjleftxxbh != null and entity.zjleftxxbh != ''"
>
, #{entity.zjleftxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.zjleftxxbh == null or entity.zjleftxxbh == ''"
>
,NULL
</if>
<if
test=
"entity.zjrightxxbh != null and entity.zjrightxxbh != ''"
>
, #{entity.zjrightxxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.zjrightxxbh == null or entity.zjrightxxbh == ''"
>
,NULL
</if>
<if
test=
"entity.zwfkxx != null and entity.zwfkxx != ''"
>
, #{entity.zwfkxx , jdbcType=VARCHAR }
</if>
<if
test=
"entity.zwfkxx == null or entity.zwfkxx == ''"
>
,NULL
</if>
)
</insert>
...
...
@@ -708,6 +719,8 @@
<if
test=
"entity.taryxq2 != null and entity.taryxq2 != ''"
>
taryxq2 = #{entity.taryxq2 , jdbcType=VARCHAR },
</if>
<if
test=
"entity.tary3 != null and entity.tary3 != ''"
>
tary3 = #{entity.tary3 , jdbcType=VARCHAR },
</if>
<if
test=
"entity.taryxq3 != null and entity.taryxq3 != ''"
>
taryxq3 = #{entity.taryxq3 , jdbcType=VARCHAR },
</if>
<if
test=
"entity.zjleftxxbh != null and entity.zjleftxxbh != ''"
>
ZJLEFTXXBH = #{entity.zjleftxxbh , jdbcType=VARCHAR },
</if>
<if
test=
"entity.zjrightxxbh != null and entity.zjrightxxbh != ''"
>
ZJRIGHTXXBH = #{entity.zjrightxxbh , jdbcType=VARCHAR },
</if>
GXSJ=SYSDATE
where RYBH = #{entity.rybh, jdbcType=VARCHAR}
</update>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment