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
16dc7526
Commit
16dc7526
authored
Nov 29, 2018
by
chang_chao@founder.com.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'remotes/origin/master'
parents
107cee46
62870c58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
200 additions
and
89 deletions
+200
-89
src/main/java/com/founder/config/FilterConfig.java
+1
-1
src/main/java/com/founder/controller/TbXwRycjController.java
+0
-0
src/main/java/com/founder/dao/TbRyRyzpDao.java
+4
-6
src/main/java/com/founder/login/controller/LoginController.java
+85
-1
src/main/java/com/founder/model/AutoTbStRy.java
+38
-0
src/main/java/com/founder/service/ITbRyRyzpService.java
+12
-0
src/main/java/com/founder/service/ITbRyZpService.java
+0
-15
src/main/java/com/founder/service/impl/TbRyRyzpServiceImpl.java
+20
-20
src/main/resources/mapper/TbRyRyzpSqlMapper.xml
+32
-39
src/main/resources/static/js/onPicture.js
+7
-6
src/main/resources/templates/home.html
+1
-1
No files found.
src/main/java/com/founder/config/FilterConfig.java
View file @
16dc7526
...
...
@@ -17,7 +17,7 @@ public class FilterConfig extends WebMvcConfigurerAdapter {
//
registry
.
addInterceptor
(
InterceptorConfig
).
addPathPatterns
(
"/**"
).
excludePathPatterns
(
"/"
,
"/toLogin"
,
"/noLogin"
,
"/doLogin"
,
"/
static*//**"
,
"/refreshCodeCache"
,
"/qxdoLogin
"
);
excludePathPatterns
(
"/"
,
"/toLogin"
,
"/noLogin"
,
"/doLogin"
,
"/
toHome"
,
"/static*//**"
,
"/refreshCodeCache"
,
"/qxdoLogin"
,
"/queryNameByCode"
,
"/queryTypeCode
"
);
}
...
...
src/main/java/com/founder/controller/TbXwRycjController.java
View file @
16dc7526
This diff is collapsed.
Click to expand it.
src/main/java/com/founder/dao/TbRy
Z
pDao.java
→
src/main/java/com/founder/dao/TbRy
Ryz
pDao.java
View file @
16dc7526
...
...
@@ -2,16 +2,14 @@ package com.founder.dao;
import
com.founder.model.AutoTbRyZp
;
import
com.founder.util.MyMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.springframework.stereotype.Component
;
import
java.util.List
;
import
java.util.Map
;
@Component
@Mapper
public
interface
TbRyZpDao
extends
MyMapper
<
AutoTbRyZp
>
{
public
List
<
AutoTbRyZp
>
getRyzpById
(
Map
<
String
,
Object
>
map
);
public
boolean
updateRyzp
(
Map
<
String
,
Object
>
map
);
public
boolean
insertRyzp
(
Map
<
String
,
Object
>
map
);
public
interface
TbRyRyzpDao
extends
MyMapper
<
AutoTbRyZp
>
{
public
List
<
AutoTbRyZp
>
getRyRyzpById
(
Map
<
String
,
Object
>
map
);
public
boolean
updateRyRyzp
(
Map
<
String
,
Object
>
map
);
public
boolean
insertRyRyzp
(
Map
<
String
,
Object
>
map
);
}
src/main/java/com/founder/login/controller/LoginController.java
View file @
16dc7526
...
...
@@ -2,8 +2,10 @@ package com.founder.login.controller;
import
com.founder.login.service.LoginService
;
import
com.founder.model.AutoTbStRy
;
import
com.founder.model.Param
;
import
com.founder.model.User
;
import
com.founder.service.AutoTbXwRycjService
;
import
com.founder.service.IParamService
;
import
com.founder.util.HttpClientUtil
;
import
com.founder.utils.Base64PasswordEncrypter
;
import
org.apache.http.HttpEntity
;
...
...
@@ -24,6 +26,7 @@ import org.springframework.stereotype.Controller;
import
org.springframework.ui.Model
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
sun.misc.BASE64Decoder
;
import
sun.misc.BASE64Encoder
;
import
javax.servlet.ServletContext
;
...
...
@@ -47,6 +50,8 @@ public class LoginController {
@Autowired
private
AutoTbXwRycjService
rycjService
;
@Autowired
private
IParamService
paramService
;
@Autowired
private
LoginService
loginService
;
@Value
(
"${zhyyPath}"
)
private
String
zhyyPath
;
...
...
@@ -102,32 +107,44 @@ public class LoginController {
ServletContext
context
=
request
.
getSession
()
.
getServletContext
();
//String filePath = context.getRealPath(savePath);
//filePath = filePath.substring(0,filePath.indexOf("\\"))+savePath;
String
filePath
=
"C:/Oracle/Middleware/user_projects/domains/XTBA_domain/autodeploy/XZZYXT/upload"
;
//株洲人像保存路径
Param
param
=
paramService
.
getParamById
(
"0050"
);
String
zplj
=
param
.
getParamvalue
();
String
filePath
=
zplj
;
filePath
=
filePath
+
savePath
;
File
filejia1
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"1.jpg"
);
if
(
filejia1
.
exists
())
{
String
zpBase64
=
GetImageStrs
(
filePath
+
"/"
+
rybhstr
+
"1.jpg"
);
insPic
(
zpBase64
,
rybhstr
,
"1"
);
xyrC
.
setEdzzpStr64
(
zpBase64
);
xyrC
.
setEdzzplj
(
"static/img"
+
savePath
+
"/"
+
rybhstr
+
"1.jpg"
);
xyrC
.
setEDZZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
File
filejia2
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"2.jpg"
);
if
(
filejia2
.
exists
())
{
String
zpBase64
=
GetImageStrs
(
filePath
+
"/"
+
rybhstr
+
"2.jpg"
);
insPic
(
zpBase64
,
rybhstr
,
"2"
);
xyrC
.
setZmzpStr64
(
zpBase64
);
xyrC
.
setZmzplj
(
"static/img"
+
savePath
+
"/"
+
rybhstr
+
"2.jpg"
);
xyrC
.
setZMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
File
filejia3
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"3.jpg"
);
if
(
filejia3
.
exists
())
{
String
zpBase64
=
GetImageStrs
(
filePath
+
"/"
+
rybhstr
+
"3.jpg"
);
insPic
(
zpBase64
,
rybhstr
,
"3"
);
xyrC
.
setCmzpStr64
(
zpBase64
);
xyrC
.
setCmzplj
(
"static/img"
+
savePath
+
"/"
+
rybhstr
+
"3.jpg"
);
xyrC
.
setCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
File
filejia4
=
new
File
(
filePath
+
"/"
+
rybhstr
+
"4.jpg"
);
if
(
filejia4
.
exists
())
{
String
zpBase64
=
GetImageStrs
(
filePath
+
"/"
+
rybhstr
+
"4.jpg"
);
insPic
(
zpBase64
,
rybhstr
,
"4"
);
xyrC
.
setYcmzpStr64
(
zpBase64
);
xyrC
.
setYcmzplj
(
"static/img"
+
savePath
+
"/"
+
rybhstr
+
"4.jpg"
);
xyrC
.
setYCMZPL64
(
String
.
valueOf
(
zpBase64
.
getBytes
().
length
));
}
model
.
addAttribute
(
"username"
,
user
.
getUsername
());
model
.
addAttribute
(
"unitcode"
,
user
.
getUnitcode
());
model
.
addAttribute
(
"ryxx"
,
xyrC
);
model
.
addAttribute
(
"saveflag"
,
"0"
);
}
...
...
@@ -266,4 +283,71 @@ public class LoginController {
BASE64Encoder
encoder
=
new
BASE64Encoder
();
return
encoder
.
encode
(
data
);
// 返回Base64编码过的字节数组字符串
}
// 图片下载、并且存入数据库
public
String
insPic
(
String
R_EDZZP64
,
String
rybh
,
String
zpbw
)
{
String
fileName
=
rybh
+
zpbw
+
".jpg"
;
try
{
Param
param
=
paramService
.
getParamById
(
"0051"
);
String
zplj
=
param
.
getParamvalue
();
String
savePathS
=
"/WEB-INF/classes/static/img/personphoto"
;
// String filePathS = context.getRealPath(savePathS);
//filePathS = filePathS.substring(0,filePathS.indexOf("\\"))+savePathS;
//String filePathS = "C:/Oracle/Middleware/user_projects/domains/XTBA_domain/autodeploy/XZZYXT/upload";//株洲人像保存路径
String
filePathS
=
zplj
;
filePathS
=
filePathS
+
savePathS
;
File
filejiaS
=
new
File
(
filePathS
);
// 如果文件夹不存在则创建
if
(!
filejiaS
.
exists
())
{
filejiaS
.
mkdir
();
}
String
savePathNY
=
"/WEB-INF/classes/static/img/personphoto/"
+
rybh
.
substring
(
rybh
.
length
()
-
10
,
rybh
.
length
()
-
4
);
//String filePathNY = context.getRealPath(savePathNY);
//filePathNY = filePathNY.substring(0,filePathNY.indexOf("\\"))+savePathNY;
String
filePathNY
=
zplj
;
filePathNY
=
filePathNY
+
savePathNY
;
File
filejiaNY
=
new
File
(
filePathNY
);
// 如果文件夹不存在则创建
if
(!
filejiaNY
.
exists
())
{
filejiaNY
.
mkdir
();
}
String
savePath
=
"/WEB-INF/classes/static/img/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
();
}
GenerateImage
(
R_EDZZP64
,
filePath
+
"/"
+
fileName
);
}
catch
(
Exception
e
)
{
return
"0"
;
}
finally
{
}
return
"1"
;
}
public
static
boolean
GenerateImage
(
String
imgStr
,
String
imgFilePath
)
{
// 对字节数组字符串进行Base64解码并生成图片
if
(
imgStr
==
null
)
// 图像数据为空
return
false
;
BASE64Decoder
decoder
=
new
BASE64Decoder
();
try
{
// Base64解码
byte
[]
bytes
=
decoder
.
decodeBuffer
(
imgStr
);
for
(
int
i
=
0
;
i
<
bytes
.
length
;
++
i
)
{
if
(
bytes
[
i
]
<
0
)
{
// 调整异常数据
bytes
[
i
]
+=
256
;
}
}
// 生成jpeg图片
OutputStream
out
=
new
FileOutputStream
(
imgFilePath
);
out
.
write
(
bytes
);
out
.
flush
();
out
.
close
();
return
true
;
}
catch
(
Exception
e
)
{
return
false
;
}
}
}
src/main/java/com/founder/model/AutoTbStRy.java
View file @
16dc7526
...
...
@@ -90,6 +90,11 @@ public class AutoTbStRy implements Serializable {
private
String
R_CMZP64
;
private
String
R_YCMZP64
;
private
String
edzzpflag
;
private
String
zmzpflag
;
private
String
cmzpflag
;
private
String
ycmzpflag
;
private
String
r_sjlxdh
;
//指纹比中状态
private
String
zwfkxx
;
//指纹反馈信息
private
String
zwcjfs
;
//指纹采集方式
...
...
@@ -1308,4 +1313,36 @@ public class AutoTbStRy implements Serializable {
public
void
setYCMZPL64
(
String
YCMZPL64
)
{
this
.
YCMZPL64
=
YCMZPL64
;
}
public
String
getEdzzpflag
()
{
return
edzzpflag
;
}
public
void
setEdzzpflag
(
String
edzzpflag
)
{
this
.
edzzpflag
=
edzzpflag
;
}
public
String
getZmzpflag
()
{
return
zmzpflag
;
}
public
void
setZmzpflag
(
String
zmzpflag
)
{
this
.
zmzpflag
=
zmzpflag
;
}
public
String
getCmzpflag
()
{
return
cmzpflag
;
}
public
void
setCmzpflag
(
String
cmzpflag
)
{
this
.
cmzpflag
=
cmzpflag
;
}
public
String
getYcmzpflag
()
{
return
ycmzpflag
;
}
public
void
setYcmzpflag
(
String
ycmzpflag
)
{
this
.
ycmzpflag
=
ycmzpflag
;
}
}
\ No newline at end of file
src/main/java/com/founder/service/ITbRyRyzpService.java
0 → 100644
View file @
16dc7526
package
com
.
founder
.
service
;
import
com.founder.model.AutoTbRyZp
;
/**
* Created by yangliang on 2018/11/9
*/
public
interface
ITbRyRyzpService
extends
IService
<
AutoTbRyZp
>{
public
AutoTbRyZp
getTbRyRyzpById
(
String
xxbh
);
public
boolean
updateTbRyRyzp
(
AutoTbRyZp
autoTbRyZp
);
public
boolean
insertTbRyRyzp
(
AutoTbRyZp
autoTbRyZp
);
}
src/main/java/com/founder/service/ITbRyZpService.java
deleted
100644 → 0
View file @
107cee46
package
com
.
founder
.
service
;
import
com.founder.model.AutoTbRyZp
;
import
com.founder.model.Sequence
;
import
com.founder.model.User
;
import
org.springframework.stereotype.Service
;
/**
* Created by yangliang on 2018/7/9
*/
public
interface
ITbRyZpService
extends
IService
<
AutoTbRyZp
>{
public
AutoTbRyZp
getRyzpById
(
String
zpxxbh
);
public
boolean
updateRyzp
(
AutoTbRyZp
ryzp
);
public
boolean
insertRyzp
(
AutoTbRyZp
ryzp
);
}
src/main/java/com/founder/service/impl/TbRy
Z
pServiceImpl.java
→
src/main/java/com/founder/service/impl/TbRy
Ryz
pServiceImpl.java
View file @
16dc7526
package
com
.
founder
.
service
.
impl
;
import
com.founder.dao.TbRy
Z
pDao
;
import
com.founder.dao.TbRy
Ryz
pDao
;
import
com.founder.model.AutoTbRyZp
;
import
com.founder.service.ITbRy
Z
pService
;
import
com.founder.service.ITbRy
Ryz
pService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -11,36 +11,36 @@ import java.util.List;
import
java.util.Map
;
/**
* Created by
libin on 2018/4/13
.
* Created by
yangliang on 2018/11/9
.
*/
@Service
public
class
TbRy
ZpServiceImpl
extends
BaseService
<
AutoTbRyZp
>
implements
ITbRyZ
pService
{
public
class
TbRy
RyzpServiceImpl
extends
BaseService
<
AutoTbRyZp
>
implements
ITbRyRyz
pService
{
@Autowired
private
TbRy
Z
pDao
mapper
;
private
TbRy
Ryz
pDao
mapper
;
@Override
public
AutoTbRyZp
get
RyzpById
(
String
zp
xxbh
){
public
AutoTbRyZp
get
TbRyRyzpById
(
String
xxbh
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"zpxxbh"
,
zp
xxbh
);
List
<
AutoTbRyZp
>
auto
TbRyZps
=
mapper
.
get
RyzpById
(
map
);
AutoTbRyZp
auto
TbRyZp
=
null
;
if
(
auto
TbRyZps
!=
null
&&
autoTbRyZp
s
.
size
()>
0
){
auto
TbRyZp
=
autoTbRyZp
s
.
get
(
0
);
map
.
put
(
"zpxxbh"
,
xxbh
);
List
<
AutoTbRyZp
>
auto
Params
=
mapper
.
getRy
RyzpById
(
map
);
AutoTbRyZp
auto
Param
=
null
;
if
(
auto
Params
!=
null
&&
autoParam
s
.
size
()>
0
){
auto
Param
=
autoParam
s
.
get
(
0
);
}
return
auto
TbRyZp
;
return
auto
Param
;
};
@Override
public
boolean
update
Ryzp
(
AutoTbRyZp
entity
){
public
boolean
update
TbRyRyzp
(
AutoTbRyZp
autoTbRyZp
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"entity"
,
entity
);
boolean
bool
=
mapper
.
updateRyzp
(
map
);
map
.
put
(
"entity"
,
autoTbRyZp
);
boolean
bool
=
mapper
.
updateRy
Ry
zp
(
map
);
return
bool
;
};
@Override
public
boolean
insertRyzp
(
AutoTbRyZp
entity
){
public
boolean
insertTbRyRyzp
(
AutoTbRyZp
autoTbRyZp
){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"entity"
,
entity
);
boolean
bool
=
mapper
.
insertRyzp
(
map
);
map
.
put
(
"entity"
,
autoTbRyZp
);
boolean
bool
=
mapper
.
insertRy
Ry
zp
(
map
);
return
bool
;
};
}
src/main/resources/mapper/TbRy
Z
pSqlMapper.xml
→
src/main/resources/mapper/TbRy
Ryz
pSqlMapper.xml
View file @
16dc7526
<?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.dao.TbRy
Z
pDao"
>
<mapper
namespace=
"com.founder.dao.TbRy
Ryz
pDao"
>
<resultMap
id=
"baseMap"
type=
"com.founder.model.AutoTbRyZp"
>
<id
column=
"XXBH"
property=
"xxbh"
jdbcType=
"VARCHAR"
/>
<result
column=
"RYBH"
property=
"rybh"
jdbcType=
"VARCHAR"
/>
...
...
@@ -13,7 +13,7 @@
<result
column=
"DZWJCJSJ_RQSJ"
property=
"dzwjcjsjRqsj"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"ZPBW"
property=
"zpbw"
jdbcType=
"VARCHAR"
/>
</resultMap>
<select
id=
"getRyzpById"
parameterType=
"map"
resultType=
"com.founder.model.AutoTbRyZp"
>
<select
id=
"getRy
Ry
zpById"
parameterType=
"map"
resultType=
"com.founder.model.AutoTbRyZp"
>
select
XXBH,
RYBH,
...
...
@@ -22,12 +22,11 @@
DZWJNR,
DZWJDX,
ZPBW
from TB_
ST_RY_
ZP
from TB_
RY_RY
ZP
where XXBH = #{zpxxbh} and SCBZ ='0'and
dbms_lob.getlength(DZWJNR)
<![CDATA[> ]]
>
0
dbms_lob.getlength(DZWJNR)>0
</select>
<insert
id=
"insertRyzp"
parameterType=
"map"
>
<insert
id=
"insertRyRyzp"
parameterType=
"map"
>
insert into TB_RY_RYZP(
XXBH,
RYBH,
...
...
@@ -43,10 +42,9 @@
LRDWMC,
ZPBW,
SCBZ
)
)values(
<if
test=
"entity.xxbh != null and entity.xxbh != ''"
>
#{entity.xxbh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.xxbh == null or entity.xxbh == ''"
>
#{entity.
xx
bh , jdbcType=VARCHAR }||#{entity.zpbw , jdbcType=VARCHAR }
</if>
<if
test=
"entity.xxbh == null or entity.xxbh == ''"
>
#{entity.
ry
bh , jdbcType=VARCHAR }||#{entity.zpbw , jdbcType=VARCHAR }
</if>
<if
test=
"entity.rybh != null and entity.rybh != ''"
>
, #{entity.rybh , jdbcType=VARCHAR }
</if>
<if
test=
"entity.rybh == null or entity.rybh == ''"
>
,NULL
</if>
<if
test=
"entity.dzwjmc != null and entity.dzwjmc != ''"
>
, #{entity.dzwjmc , jdbcType=VARCHAR }
</if>
...
...
@@ -59,12 +57,12 @@
<if
test=
"entity.dzwjdx == null or entity.dzwjdx == ''"
>
,NULL
</if>
<if
test=
"entity.dzwjwz != null and entity.dzwjwz != ''"
>
, #{entity.dzwjwz , jdbcType=VARCHAR }
</if>
<if
test=
"entity.dzwjwz == null or entity.dzwjwz == ''"
>
,NULL
</if>
<if
test=
"entity.dzwjcjsjRqsj != null
and entity.dzwjcjsjRqsj != ''
"
>
, #{entity.dzwjcjsjRqsj , jdbcType=TIMESTAMP }
</if>
<if
test=
"entity.dzwjcjsjRqsj == null
or entity.dzwjcjsjRqsj == ''
"
>
,NULL
</if>
<if
test=
"entity.dzwjcjsjRqsj != null"
>
, #{entity.dzwjcjsjRqsj , jdbcType=TIMESTAMP }
</if>
<if
test=
"entity.dzwjcjsjRqsj == null"
>
,NULL
</if>
<if
test=
"entity.lrr != null and entity.lrr != ''"
>
, #{entity.lrr , jdbcType=VARCHAR }
</if>
<if
test=
"entity.lrr == null or entity.lrr == ''"
>
,NULL
</if>
<if
test=
"entity.lrsj != null
and entity.lrsj != ''
"
>
, #{entity.lrsj , jdbcType=TIMESTAMP }
</if>
<if
test=
"entity.lrsj == null
or entity.lrsj == ''
"
>
,NULL
</if>
<if
test=
"entity.lrsj != null"
>
, #{entity.lrsj , jdbcType=TIMESTAMP }
</if>
<if
test=
"entity.lrsj == null"
>
,NULL
</if>
<if
test=
"entity.lrdwdm != null and entity.lrdwdm != ''"
>
, #{entity.lrdwdm , jdbcType=VARCHAR }
</if>
<if
test=
"entity.lrdwdm == null or entity.lrdwdm == ''"
>
,NULL
</if>
<if
test=
"entity.lrdwmc != null and entity.lrdwmc != ''"
>
, #{entity.lrdwmc , jdbcType=VARCHAR }
</if>
...
...
@@ -75,32 +73,26 @@
)
</insert>
<update
id=
"updateRyzp"
parameterType=
"map"
>
update TB_ST_RY_ZP SET
<if
test=
"entity.dzwjmc != null and entity.dzwjmc != ''"
>
RYZP_DZWJMC = #{entity.dzwjmc , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjmc == null or entity.dzwjmc == ''"
>
RYZP_DZWJMC=NULL,
</if>
<if
test=
"entity.dzwjgs != null and entity.dzwjgs != ''"
>
RYZP_DZWJGS=#{entity.dzwjgs , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjgs == null or entity.dzwjgs == ''"
>
RYZP_DZWJGS=NULL,
</if>
<if
test=
"entity.dzwjnr != null and entity.dzwjnr != ''"
>
RYZP_DZWJNR= #{entity.dzwjnr , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjnr == null or entity.dzwjnr == ''"
>
RYZP_DZWJNR=NULL,
</if>
<if
test=
"entity.dzwjdx != null and entity.dzwjdx != ''"
>
RYZP_DZWJDX= #{entity.dzwjdx , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjdx == null or entity.dzwjdx == ''"
>
RYZP_DZWJDX=NULL,
</if>
<if
test=
"entity.dzwjwz != null and entity.dzwjwz != ''"
>
RYZP_DZWJWZ= #{entity.dzwjwz , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjwz == null or entity.dzwjwz == ''"
>
RYZP_DZWJWZ=NULL,
</if>
<if
test=
"entity.dzwjcjsjRqsj != null and entity.dzwjcjsjRqsj != ''"
>
RYZP_JLSJ= #{entity.dzwjcjsjRqsj , jdbcType=TIMESTAMP },
</if>
<if
test=
"entity.dzwjcjsjRqsj == null or entity.dzwjcjsjRqsj == ''"
>
RYZP_JLSJ=NULL,
</if>
<if
test=
"entity.gxr != null and entity.gxr != ''"
>
XXCZRY_XM=#{entity.gxr , jdbcType=VARCHAR },
</if>
<if
test=
"entity.gxr == null or entity.gxr == ''"
>
XXCZRY_XM=NULL,
</if>
<if
test=
"entity.gxsj != null and entity.gxsj != ''"
>
gxsj=#{entity.gxsj , jdbcType=TIMESTAMP },
</if>
<if
test=
"entity.gxsj == null or entity.gxsj == ''"
>
gxsj=NULL,
</if>
<if
test=
"entity.gxdwdm != null and entity.gxdwdm != ''"
>
XXCZDW_GAJGJGDM= #{entity.gxdwdm , jdbcType=VARCHAR },
</if>
<if
test=
"entity.gxdwdm == null or entity.gxdwdm == ''"
>
XXCZDW_GAJGJGDM=NULL,
</if>
<if
test=
"entity.gxdwmc != null and entity.gxdwmc != ''"
>
XXCZDW_GAJGMC=#{entity.gxdwmc , jdbcType=VARCHAR },
</if>
<if
test=
"entity.gxdwmc == null or entity.gxdwmc == ''"
>
XXCZDW_GAJGMC=NULL,
</if>
<if
test=
"entity.zpbw != null and entity.zpbw != ''"
>
ZPBW= #{entity.zpbw , jdbcType=VARCHAR },
</if>
<if
test=
"entity.zpbw == null or entity.zpbw == ''"
>
ZPBW=NULL,
</if>
<if
test=
"entity.asjxgrybh != null and entity.asjxgrybh != ''"
>
asjxgrybh= #{entity.asjxgrybh , jdbcType=VARCHAR },
</if>
<if
test=
"entity.asjxgrybh == null or entity.asjxgrybh == ''"
>
asjxgrybh=NULL,
</if>
WHERE XXZJBH=#{entity.xxbh , jdbcType=VARCHAR }
<update
id=
"updateRyRyzp"
parameterType=
"map"
>
update TB_RY_RYZP SET
<if
test=
"entity.dzwjmc != null and entity.dzwjmc != ''"
>
DZWJMC = #{entity.dzwjmc , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjmc == null or entity.dzwjmc == ''"
>
DZWJMC=NULL,
</if>
<if
test=
"entity.dzwjgs != null and entity.dzwjgs != ''"
>
DZWJGS=#{entity.dzwjgs , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjgs == null or entity.dzwjgs == ''"
>
DZWJGS=NULL,
</if>
<if
test=
"entity.dzwjnr != null and entity.dzwjnr != ''"
>
DZWJNR= #{entity.dzwjnr , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjnr == null or entity.dzwjnr == ''"
>
DZWJNR=NULL,
</if>
<if
test=
"entity.dzwjdx != null and entity.dzwjdx != ''"
>
DZWJDX= #{entity.dzwjdx , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjdx == null or entity.dzwjdx == ''"
>
DZWJDX=NULL,
</if>
<if
test=
"entity.dzwjwz != null and entity.dzwjwz != ''"
>
DZWJWZ= #{entity.dzwjwz , jdbcType=VARCHAR },
</if>
<if
test=
"entity.dzwjwz == null or entity.dzwjwz == ''"
>
DZWJWZ=NULL,
</if>
<if
test=
"entity.dzwjcjsjRqsj != null"
>
DZWJCJSJ_RQSJ= #{entity.dzwjcjsjRqsj , jdbcType=TIMESTAMP },
</if>
<if
test=
"entity.dzwjcjsjRqsj == null"
>
DZWJCJSJ_RQSJ=NULL,
</if>
<if
test=
"entity.gxr != null and entity.gxr != ''"
>
GXR=#{entity.gxr , jdbcType=VARCHAR },
</if>
<if
test=
"entity.gxr == null or entity.gxr == ''"
>
GXR=NULL,
</if>
<if
test=
"entity.gxsj != null"
>
gxsj=#{entity.gxsj , jdbcType=TIMESTAMP },
</if>
<if
test=
"entity.gxsj == null"
>
gxsj=NULL,
</if>
<if
test=
"entity.zpbw != null and entity.zpbw != ''"
>
ZPBW= #{entity.zpbw , jdbcType=VARCHAR }
</if>
<if
test=
"entity.zpbw == null or entity.zpbw == ''"
>
ZPBW=NULL
</if>
WHERE XXBH=#{entity.xxbh , jdbcType=VARCHAR }
</update>
</mapper>
\ No newline at end of file
src/main/resources/static/js/onPicture.js
View file @
16dc7526
...
...
@@ -16,7 +16,7 @@ function showpic1(sender){
//满足上传的大小要求
var
imgobj
=
document
.
getElementById
(
'imghead1'
);
var
imgobjstr
=
document
.
getElementById
(
'preview1'
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_EDZZP64"
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_EDZZP64"
,
"edzzpflag"
);
}
}
...
...
@@ -36,7 +36,7 @@ function showpic2(sender){
//满足上传的大小要求
var
imgobj
=
document
.
getElementById
(
'imghead2'
);
var
imgobjstr
=
document
.
getElementById
(
'preview2'
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_ZMZP64"
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_ZMZP64"
,
"zmzpflag"
);
}
}
...
...
@@ -56,7 +56,7 @@ function showpic3(sender){
//满足上传的大小要求
var
imgobj
=
document
.
getElementById
(
'imghead3'
);
var
imgobjstr
=
document
.
getElementById
(
'preview3'
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_CMZP64"
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_CMZP64"
,
"cmzpflag"
);
}
}
...
...
@@ -76,7 +76,7 @@ function showpic4(sender){
//满足上传的大小要求
var
imgobj
=
document
.
getElementById
(
'imghead4'
);
var
imgobjstr
=
document
.
getElementById
(
'preview4'
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_YCMZP64"
);
showImg
(
sender
,
imgobj
,
imgobjstr
,
"R_YCMZP64"
,
"ycmzpflag"
);
}
}
...
...
@@ -223,9 +223,10 @@ function getImgSize(sender){
* @param imgobj
* 说明:兼容谷歌和IE
*/
function
showImg
(
sender
,
imgobj
,
imgobjstr
,
picStr
){
function
showImg
(
sender
,
imgobj
,
imgobjstr
,
picStr
,
flagname
){
var
FileReader
=
window
.
FileReader
;
if
(
FileReader
)
{
//chrome浏览器处理
document
.
getElementById
(
flagname
).
value
=
"1"
;
var
reader
=
new
FileReader
(),
file
=
sender
.
files
[
0
];
reader
.
onload
=
function
(
e
)
{
...
...
@@ -234,7 +235,7 @@ function showImg(sender,imgobj,imgobjstr,picStr){
};
reader
.
readAsDataURL
(
file
);
}
else
{
//IE等其他浏览器处理
//document.getElementById("edzzpflag"
).value="0";
document
.
getElementById
(
flagname
).
value
=
"0"
;
var
objPic
=
imgobj
;
var
objLocalpic
=
imgobjstr
;
sender
.
select
();
...
...
src/main/resources/templates/home.html
View file @
16dc7526
...
...
@@ -42,7 +42,7 @@
<!--标题-->
<div
class=
"login-header"
style=
"margin-top:50px;"
>
<h2><img
/><img
src=
"static/xtba/login/images/hunan.png"
style=
"margin-left:15px;"
/><img
/></h2>
<h2><img
/><img
src=
"static/xtba/login/images/hunan
_4302
.png"
style=
"margin-left:15px;"
/><img
/></h2>
</div>
<!--content-->
<div
class=
"wrap-content"
>
...
...
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