Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zczlService
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
曹崟
zczlService
Commits
9489168c
Commit
9489168c
authored
Oct 15, 2019
by
mayunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
联络员新增类型
parent
0a7bf38d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
358 additions
and
37 deletions
+358
-37
src/main/java/com/founder/model/TbYwZczlLly.java
+10
-0
src/main/java/com/founder/zczl/controller/ZczlController.java
+75
-4
src/main/java/com/founder/zczl/dao/ZczlDao.java
+6
-0
src/main/java/com/founder/zczl/service/IZczlService.java
+8
-1
src/main/java/com/founder/zczl/service/impl/ZczlService.java
+49
-4
src/main/resources/application-pro.properties
+2
-2
src/main/resources/mapper/ZczlMapper.xml
+46
-15
src/main/resources/static/js/llycx.js
+6
-5
src/main/resources/static/js/llysz.js
+117
-4
src/main/webapp/WEB-INF/jsp/llysz.jsp
+31
-0
src/main/webapp/WEB-INF/jsp/zczl_qqxdzl.jsp
+8
-2
src/main/webapp/WEB-INF/jsp/zczl_xdzl.jsp
+0
-0
No files found.
src/main/java/com/founder/model/TbYwZczlLly.java
View file @
9489168c
...
@@ -50,6 +50,8 @@ public class TbYwZczlLly extends BaseModel{
...
@@ -50,6 +50,8 @@ public class TbYwZczlLly extends BaseModel{
private
Date
gxsj
=
null
;
//更新时间
private
Date
gxsj
=
null
;
//更新时间
private
String
ywlx
=
null
;
public
String
getXxzjbh
()
{
public
String
getXxzjbh
()
{
return
xxzjbh
;
return
xxzjbh
;
}
}
...
@@ -225,4 +227,12 @@ public class TbYwZczlLly extends BaseModel{
...
@@ -225,4 +227,12 @@ public class TbYwZczlLly extends BaseModel{
public
void
setUserId
(
String
userId
)
{
public
void
setUserId
(
String
userId
)
{
this
.
userId
=
userId
;
this
.
userId
=
userId
;
}
}
public
String
getYwlx
()
{
return
ywlx
;
}
public
void
setYwlx
(
String
ywlx
)
{
this
.
ywlx
=
ywlx
;
}
}
}
src/main/java/com/founder/zczl/controller/ZczlController.java
View file @
9489168c
...
@@ -715,7 +715,9 @@ public class ZczlController {
...
@@ -715,7 +715,9 @@ public class ZczlController {
*/
*/
@RequestMapping
(
"/queryLlys"
)
@RequestMapping
(
"/queryLlys"
)
@ResponseBody
@ResponseBody
public
String
queryLlys
(
@RequestParam
(
value
=
"unitcodes"
)
String
unitcodes
,
HttpServletRequest
request
){
public
String
queryLlys
(
@RequestParam
(
value
=
"unitcodes"
)
String
unitcodes
,
@RequestParam
(
value
=
"ywlx"
)
String
ywlx
,
HttpServletRequest
request
){
String
message
=
"1"
;
String
message
=
"1"
;
if
(
unitcodes
!=
null
&&!
""
.
equals
(
unitcodes
.
trim
())){
if
(
unitcodes
!=
null
&&!
""
.
equals
(
unitcodes
.
trim
())){
String
[]
unitArr
=
unitcodes
.
split
(
","
);
String
[]
unitArr
=
unitcodes
.
split
(
","
);
...
@@ -723,7 +725,7 @@ public class ZczlController {
...
@@ -723,7 +725,7 @@ public class ZczlController {
for
(
int
i
=
0
;
i
<
unitArr
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
unitArr
.
length
;
i
++){
String
unit
=
unitArr
[
i
];
String
unit
=
unitArr
[
i
];
//判断该单位是否存在联络员
//判断该单位是否存在联络员
boolean
bool
=
zczlService
.
ifCzlly
(
unit
);
boolean
bool
=
zczlService
.
ifCzlly
(
unit
,
ywlx
);
//不存在
//不存在
if
(!
bool
){
if
(!
bool
){
//根据单位代码查询该单位的单位名
//根据单位代码查询该单位的单位名
...
@@ -996,6 +998,30 @@ public class ZczlController {
...
@@ -996,6 +998,30 @@ public class ZczlController {
if
(
xxzjbh
!=
null
&&!
""
.
equals
(
xxzjbh
)){
if
(
xxzjbh
!=
null
&&!
""
.
equals
(
xxzjbh
)){
sflly
=
"1"
;
sflly
=
"1"
;
}
}
if
(
"1"
.
equals
(
sflly
)){
String
ywlx
=
lly
.
getYwlx
();
if
(
ywlx
!=
null
)
{
String
ywlxStr
=
""
;
String
[]
ywlxArr
=
ywlx
.
split
(
","
);
//通过代码值拿到字典值
for
(
int
t
=
0
;
t
<
ywlxArr
.
length
;
t
++)
{
HashMap
<
String
,
String
>
codeMap
=
new
HashMap
<
String
,
String
>();
codeMap
.
put
(
"groupid"
,
"CODE_YWLXDM"
);
codeMap
.
put
(
"code"
,
ywlxArr
[
t
]);
String
name
=
zczlService
.
getNameByCode
(
codeMap
);
if
(
t
==
0
)
{
ywlxStr
=
name
;
}
else
{
ywlxStr
+=
","
+
name
;
}
objectMap
.
put
(
"ywlx"
,
ywlxStr
);
}
}
else
{
objectMap
.
put
(
"ywlx"
,
"请设置联络员类型"
);
}
}
else
{
objectMap
.
put
(
"ywlx"
,
"请先设置为联络员"
);
}
objectMap
.
put
(
"sflly"
,
sflly
);
//是否联络员
objectMap
.
put
(
"sflly"
,
sflly
);
//是否联络员
objectMap
.
put
(
"xxzjbh"
,
xxzjbh
);
//是否联络员
objectMap
.
put
(
"xxzjbh"
,
xxzjbh
);
//是否联络员
jeMapList
.
add
(
objectMap
);
jeMapList
.
add
(
objectMap
);
...
@@ -1029,9 +1055,9 @@ public class ZczlController {
...
@@ -1029,9 +1055,9 @@ public class ZczlController {
}
}
}
else
{
}
else
{
//不存在联络员或联络员个数小于2
//不存在联络员或联络员个数小于2
if
(
tbYwZczlLlyList
==
null
||
tbYwZczlLlyList
.
size
()<
2
){
//
if(tbYwZczlLlyList==null||tbYwZczlLlyList.size()<2){
bool
=
true
;
bool
=
true
;
}
//
}
}
}
if
(
bool
){
if
(
bool
){
message
=
"1"
;
//可以设置联络员
message
=
"1"
;
//可以设置联络员
...
@@ -1111,6 +1137,26 @@ public class ZczlController {
...
@@ -1111,6 +1137,26 @@ public class ZczlController {
objectMap
.
put
(
"xxdjryxm"
,
lly
.
getXxdjryxm
());
//设置人姓名
objectMap
.
put
(
"xxdjryxm"
,
lly
.
getXxdjryxm
());
//设置人姓名
objectMap
.
put
(
"xxdjdwgajgjgdm"
,
lly
.
getXxdjdwgajgjgdm
());
//设置人单位
objectMap
.
put
(
"xxdjdwgajgjgdm"
,
lly
.
getXxdjdwgajgjgdm
());
//设置人单位
objectMap
.
put
(
"djsj"
,
lly
.
getDjsj
());
//设置时间
objectMap
.
put
(
"djsj"
,
lly
.
getDjsj
());
//设置时间
String
ywlx
=
lly
.
getYwlx
();
if
(
ywlx
!=
null
){
String
ywlxStr
=
""
;
String
[]
ywlxArr
=
ywlx
.
split
(
","
);
//通过代码值拿到字典值
for
(
int
t
=
0
;
t
<
ywlxArr
.
length
;
t
++){
HashMap
<
String
,
String
>
codeMap
=
new
HashMap
<
String
,
String
>();
codeMap
.
put
(
"groupid"
,
"CODE_YWLXDM"
);
codeMap
.
put
(
"code"
,
ywlxArr
[
t
]);
String
name
=
zczlService
.
getNameByCode
(
codeMap
);
if
(
t
==
0
){
ywlxStr
=
name
;
}
else
{
ywlxStr
+=
","
+
name
;
}
objectMap
.
put
(
"ywlx"
,
ywlxStr
);
}
}
else
{
objectMap
.
put
(
"ywlx"
,
"暂无类型"
);
}
objectMap
.
put
(
"policemanid"
,
lly
.
getPolicemanid
());
//联络员警号
objectMap
.
put
(
"policemanid"
,
lly
.
getPolicemanid
());
//联络员警号
jeMapList
.
add
(
objectMap
);
jeMapList
.
add
(
objectMap
);
}
}
...
@@ -3350,9 +3396,34 @@ public class ZczlController {
...
@@ -3350,9 +3396,34 @@ public class ZczlController {
//审批权限查询与设置--end
//审批权限查询与设置--end
/**
* 拿到对应人员的联络员权限
* @return
*/
@RequestMapping
(
"/getLlyqxByUserId"
)
@ResponseBody
public
JSONArray
getLlyqxByUserId
(
String
userId
){
List
<
String
>
qxList
=
new
ArrayList
<>();
Map
map
=
zczlService
.
getLlyqxByUserId
(
userId
);
qxList
=
(
List
)
map
.
get
(
"qxList"
);
JSONArray
jsonArray
=
JSONArray
.
fromObject
(
qxList
);
return
jsonArray
;
}
/**
/**
* 权限分配
* @return
*/
@RequestMapping
(
"/doLlyQxfp"
)
@ResponseBody
public
String
doLlyQxfp
(
TbYwZczlLly
tbYwZczlLly
){
String
flag
=
"0"
;
flag
=
zczlService
.
doLlyQxfp
(
tbYwZczlLly
);
return
flag
;
}
/**
* 侦察指令状态
* 侦察指令状态
* @return
* @return
*/
*/
...
...
src/main/java/com/founder/zczl/dao/ZczlDao.java
View file @
9489168c
...
@@ -25,6 +25,12 @@ public interface ZczlDao {
...
@@ -25,6 +25,12 @@ public interface ZczlDao {
List
<
TbYwZczlFp
>
getWfpdFpxx
(
Map
map
);
List
<
TbYwZczlFp
>
getWfpdFpxx
(
Map
map
);
List
<
TbYwZczlLly
>
getLlysByMap
(
Map
map
);
TbYwZczlLly
getLlyqxByUserId
(
String
userId
);
int
updateLlyQxfp
(
TbYwZczlLly
tbYwZczlLly
);
List
<
TbYwZczlFp
>
getFpxxByTbYwZczlFp
(
TbYwZczlFp
tbYwZczlFp
);
List
<
TbYwZczlFp
>
getFpxxByTbYwZczlFp
(
TbYwZczlFp
tbYwZczlFp
);
void
updateFbxxByFpbh
(
String
fpbh
);
void
updateFbxxByFpbh
(
String
fpbh
);
...
...
src/main/java/com/founder/zczl/service/IZczlService.java
View file @
9489168c
...
@@ -5,6 +5,7 @@ import org.springframework.web.multipart.MultipartFile;
...
@@ -5,6 +5,7 @@ import org.springframework.web.multipart.MultipartFile;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -68,7 +69,7 @@ public interface IZczlService {
...
@@ -68,7 +69,7 @@ public interface IZczlService {
boolean
tqspOrDel
(
TbYwZczl
tbYwZczl
);
boolean
tqspOrDel
(
TbYwZczl
tbYwZczl
);
boolean
ifCzlly
(
String
unit
);
boolean
ifCzlly
(
String
unit
,
String
ywlx
);
String
getUnitnameByUnitcode
(
String
unit
);
String
getUnitnameByUnitcode
(
String
unit
);
...
@@ -140,13 +141,19 @@ public interface IZczlService {
...
@@ -140,13 +141,19 @@ public interface IZczlService {
List
<
TbYwZczlSpqx
>
toQuerySpUserList
(
TbYwZczlSpqx
tbYwZczlSpqx
);
List
<
TbYwZczlSpqx
>
toQuerySpUserList
(
TbYwZczlSpqx
tbYwZczlSpqx
);
String
getNameByCode
(
HashMap
<
String
,
String
>
codeMap
);
Integer
toQuerySpUserListForTotal
(
TbYwZczlSpqx
tbYwZczlSpqx
);
Integer
toQuerySpUserListForTotal
(
TbYwZczlSpqx
tbYwZczlSpqx
);
List
<
SysDictitem
>
getAllYwlx
();
List
<
SysDictitem
>
getAllYwlx
();
Map
getFpqxxxByUserId
(
String
userId
);
Map
getFpqxxxByUserId
(
String
userId
);
Map
getLlyqxByUserId
(
String
userId
);
String
doQxfp
(
TbYwZczlSpqx
tbYwZczlSpqx
);
String
doQxfp
(
TbYwZczlSpqx
tbYwZczlSpqx
);
String
doLlyQxfp
(
TbYwZczlLly
tbYwZczlLly
);
String
doQueryZt
(
String
xxzjbh
);
String
doQueryZt
(
String
xxzjbh
);
}
}
src/main/java/com/founder/zczl/service/impl/ZczlService.java
View file @
9489168c
...
@@ -579,9 +579,9 @@ public class ZczlService implements IZczlService {
...
@@ -579,9 +579,9 @@ public class ZczlService implements IZczlService {
}
}
}
else
{
}
else
{
if
(
i
==
list
.
size
()
-
1
&&
i
%
500
==
0
){
if
(
i
==
list
.
size
()
-
1
&&
i
%
500
==
0
){
inString
=
inString
+
"or UNITCODE in ('"
+
list
.
get
(
i
)+
"')"
;
inString
=
inString
+
"or
s.
UNITCODE in ('"
+
list
.
get
(
i
)+
"')"
;
}
else
if
(
i
%
500
==
0
){
}
else
if
(
i
%
500
==
0
){
inString
=
inString
+
"or UNITCODE in ('"
+
list
.
get
(
i
)+
"'"
;
inString
=
inString
+
"or
s.
UNITCODE in ('"
+
list
.
get
(
i
)+
"'"
;
}
else
if
((
i
+
1
)
%
500
!=
0
&&
i
!=
list
.
size
()-
1
){
}
else
if
((
i
+
1
)
%
500
!=
0
&&
i
!=
list
.
size
()-
1
){
inString
=
inString
+
",'"
+
list
.
get
(
i
)+
"'"
;
inString
=
inString
+
",'"
+
list
.
get
(
i
)+
"'"
;
}
else
{
}
else
{
...
@@ -776,11 +776,14 @@ public class ZczlService implements IZczlService {
...
@@ -776,11 +776,14 @@ public class ZczlService implements IZczlService {
* @return
* @return
*/
*/
@Override
@Override
public
boolean
ifCzlly
(
String
unit
)
{
public
boolean
ifCzlly
(
String
unit
,
String
ywlx
)
{
boolean
bool
=
false
;
boolean
bool
=
false
;
Map
map
=
new
HashMap
();
map
.
put
(
"unitcode"
,
unit
);
map
.
put
(
"ywlx"
,
ywlx
);
try
{
try
{
List
<
TbYwZczlLly
>
llyxx
=
null
;
List
<
TbYwZczlLly
>
llyxx
=
null
;
llyxx
=
zczlDao
.
getLlys
PolicemanId
(
unit
);
llyxx
=
zczlDao
.
getLlys
ByMap
(
map
);
if
(
llyxx
!=
null
&&
llyxx
.
size
()>
0
){
if
(
llyxx
!=
null
&&
llyxx
.
size
()>
0
){
bool
=
true
;
bool
=
true
;
}
}
...
@@ -790,6 +793,31 @@ public class ZczlService implements IZczlService {
...
@@ -790,6 +793,31 @@ public class ZczlService implements IZczlService {
return
bool
;
return
bool
;
}
}
@Override
public
String
getNameByCode
(
HashMap
<
String
,
String
>
codeMap
)
{
return
dictitemDao
.
getNameByCode
(
codeMap
);
}
@Override
public
Map
getLlyqxByUserId
(
String
userId
)
{
List
<
String
>
qxList
=
new
ArrayList
<>();
String
qxStr
=
null
;
TbYwZczlLly
llyqx
=
zczlDao
.
getLlyqxByUserId
(
userId
);
if
(
llyqx
!=
null
){
qxStr
=
llyqx
.
getYwlx
();
if
(
qxStr
!=
null
&&!
""
.
equals
(
qxStr
.
trim
())){
//权限不为空
String
[]
qxArr
=
qxStr
.
split
(
","
);
for
(
int
i
=
0
;
i
<
qxArr
.
length
;
i
++){
qxList
.
add
(
qxArr
[
i
]);
}
}
}
Map
map
=
new
HashMap
();
map
.
put
(
"qxStr"
,
qxStr
);
map
.
put
(
"qxList"
,
qxList
);
return
map
;
}
/**
/**
* 根据单位代码查询单位名
* 根据单位代码查询单位名
* @param unit
* @param unit
...
@@ -1922,6 +1950,23 @@ public class ZczlService implements IZczlService {
...
@@ -1922,6 +1950,23 @@ public class ZczlService implements IZczlService {
return
flag
;
return
flag
;
}
}
/**
* 新增或更新权限信息
* @param tbYwZczlLly
* @return
*/
@Override
public
String
doLlyQxfp
(
TbYwZczlLly
tbYwZczlLly
){
String
flag
=
"0"
;
try
{
int
t
=
zczlDao
.
updateLlyQxfp
(
tbYwZczlLly
);
flag
=
""
+
t
;
}
catch
(
Exception
e
)
{
throw
new
BaseException
(
"修改审批权限出错!"
,
e
);
}
return
flag
;
}
@Override
@Override
public
String
doQueryZt
(
String
xxzjbh
)
{
public
String
doQueryZt
(
String
xxzjbh
)
{
int
count
=
zczlDao
.
doQueryZt
(
xxzjbh
);
int
count
=
zczlDao
.
doQueryZt
(
xxzjbh
);
...
...
src/main/resources/application-pro.properties
View file @
9489168c
spring.datasource.url
=
jdbc:oracle:thin:@192.168.0.10
8
:1521:XZXT
spring.datasource.url
=
jdbc:oracle:thin:@192.168.0.10
2
:1521:XZXT
spring.datasource.username
=
XZXT
spring.datasource.username
=
XZXT
spring.datasource.password
=
XZXT
spring.datasource.password
=
XZXT
spring.datasource.driver-class-name
=
oracle.jdbc.driver.OracleDriver
spring.datasource.driver-class-name
=
oracle.jdbc.driver.OracleDriver
...
@@ -9,7 +9,7 @@ logging.level.org.spring.springboot.dao=debug
...
@@ -9,7 +9,7 @@ logging.level.org.spring.springboot.dao=debug
#redis config
#redis config
#\u65B0\u7586
#\u65B0\u7586
spring.redis.host
=
192.168.0.10
8
spring.redis.host
=
192.168.0.10
2
#\u5185\u8499
#\u5185\u8499
#redis.host=10.100.17.124
#redis.host=10.100.17.124
spring.redis.port
=
6379
spring.redis.port
=
6379
...
...
src/main/resources/mapper/ZczlMapper.xml
View file @
9489168c
...
@@ -7,6 +7,16 @@
...
@@ -7,6 +7,16 @@
select * from TB_YW_ZCZL_LLY where unitcode= #{unitcode, jdbcType=VARCHAR} and xxscpdbz='0'
select * from TB_YW_ZCZL_LLY where unitcode= #{unitcode, jdbcType=VARCHAR} and xxscpdbz='0'
</select>
</select>
<!-- 拿到本单位类型联络员 -->
<select
id=
"getLlysByMap"
parameterType=
"java.util.Map"
resultType=
"com.founder.model.TbYwZczlLly"
>
select * from TB_YW_ZCZL_LLY
where
unitcode=#{unitcode, jdbcType=VARCHAR}
and instr(ywlx,#{ywlx, jdbcType=VARCHAR}) > 0
and xxscpdbz='0'
</select>
<sql
id=
"wfzdzczl-where"
>
<sql
id=
"wfzdzczl-where"
>
<if
test=
"zlwh!=null and zlwh!=''"
>
and zczl.zlwh like '%'||#{zlwh, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"zlwh!=null and zlwh!=''"
>
and zczl.zlwh like '%'||#{zlwh, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"zczlbh!=null and zczlbh!=''"
>
and zczl.zczlbh like '%'||#{zczlbh, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"zczlbh!=null and zczlbh!=''"
>
and zczl.zczlbh like '%'||#{zczlbh, jdbcType=VARCHAR}||'%'
</if>
...
@@ -199,6 +209,7 @@
...
@@ -199,6 +209,7 @@
zczl.ZDSPRJH zdsprjh,
zczl.ZDSPRJH zdsprjh,
zczl.SPYJ spyj
zczl.SPYJ spyj
from TB_YW_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0'
from TB_YW_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0'
and instr((select ywlx from TB_YW_ZCZL_LLY lly where lly.sfzh = #{qsrgmsfhm, jdbcType=VARCHAR} and lly.xxscpdbz = 0 ),zczl.ywlx) > 0
<include
refid=
"wfzdzczl-where"
/>
<include
refid=
"wfzdzczl-where"
/>
) t
) t
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
...
@@ -207,6 +218,7 @@
...
@@ -207,6 +218,7 @@
<select
id=
"toQueryAllWfzdzczlForTotal"
parameterType=
"com.founder.model.TbYwZczl"
resultType=
"java.lang.Integer"
>
<select
id=
"toQueryAllWfzdzczlForTotal"
parameterType=
"com.founder.model.TbYwZczl"
resultType=
"java.lang.Integer"
>
select count(*) from TB_YW_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0'
select count(*) from TB_YW_ZCZL zczl where 1=1 and zczl.xxscpdbz = '0'
and instr((select ywlx from TB_YW_ZCZL_LLY lly where lly.sfzh = #{qsrgmsfhm, jdbcType=VARCHAR} and lly.xxscpdbz = 0 ),zczl.ywlx) > 0
<include
refid=
"wfzdzczl-where"
/>
<include
refid=
"wfzdzczl-where"
/>
</select>
</select>
...
@@ -761,6 +773,7 @@
...
@@ -761,6 +773,7 @@
TRUENAME truename,
TRUENAME truename,
TELEPHONE telephone,
TELEPHONE telephone,
XXDJRYXM xxdjryxm,
XXDJRYXM xxdjryxm,
ywlx ywlx,
(select name from sys_dictitem where groupid='CODE_UNIT' and code=XXDJDWGAJGJGDM) as xxdjdwgajgjgdm,
(select name from sys_dictitem where groupid='CODE_UNIT' and code=XXDJDWGAJGJGDM) as xxdjdwgajgjgdm,
to_char(DJSJ,'yyyy-MM-dd hh24:mi:ss') as djsj
to_char(DJSJ,'yyyy-MM-dd hh24:mi:ss') as djsj
from TB_YW_ZCZL_LLY where 1=1 and XXSCPDBZ = '0'
from TB_YW_ZCZL_LLY where 1=1 and XXSCPDBZ = '0'
...
@@ -797,27 +810,29 @@
...
@@ -797,27 +810,29 @@
select * from (
select * from (
select t.*,rownum rn from (
select t.*,rownum rn from (
select
select
ID userId,
s.ID userId,
TRUE_NAME truename,
s.TRUE_NAME truename,
POLICEMANID policemanid,
s.POLICEMANID policemanid,
USERNAME username,
s.USERNAME username,
UNITCODE unitcode,
s.UNITCODE unitcode,
(select name from sys_dictitem where groupid='CODE_XZUNIT' and code=UNITCODE) as unitname,
l.ywlx ywlx,
TELEPHONE telephone
(select name from sys_dictitem where groupid='CODE_XZUNIT' and code=s.UNITCODE) as unitname,
from SYS_USER where scbz='0'
s.TELEPHONE telephone
<if
test=
"unitcode!=null and unitcode!=''"
>
and (UNITCODE in ${unitcode} )
</if>
from SYS_USER s ,(select * from TB_YW_ZCZL_LLY where xxscpdbz = '0') l where s.scbz='0'
<if
test=
"truename!=null and truename!=''"
>
and TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'
</if>
and s.identitycard = l.sfzh(+)
<if
test=
"policemanid!=null and policemanid!=''"
>
and POLICEMANID = #{policemanid, jdbcType=VARCHAR}
</if>
<if
test=
"unitcode!=null and unitcode!=''"
>
and (s.UNITCODE in ${unitcode} )
</if>
<if
test=
"truename!=null and truename!=''"
>
and s.TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"policemanid!=null and policemanid!=''"
>
and s.POLICEMANID = #{policemanid, jdbcType=VARCHAR}
</if>
) t
) t
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
WHERE ROWNUM
<![CDATA[<=]]>
#{end}
) WHERE RN > #{begin}
) WHERE RN > #{begin}
</select>
</select>
<select
id=
"toQueryAllUserForTotal"
parameterType=
"com.founder.model.TbYwZczlLly"
resultType=
"java.lang.Integer"
>
<select
id=
"toQueryAllUserForTotal"
parameterType=
"com.founder.model.TbYwZczlLly"
resultType=
"java.lang.Integer"
>
select count(*) from SYS_USER
where
scbz='0'
select count(*) from SYS_USER
s where s.
scbz='0'
<if
test=
"unitcode!=null and unitcode!=''"
>
and UNITCODE in ${unitcode}
</if>
<if
test=
"unitcode!=null and unitcode!=''"
>
and
s.
UNITCODE in ${unitcode}
</if>
<if
test=
"truename!=null and truename!=''"
>
and TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"truename!=null and truename!=''"
>
and
s.
TRUE_NAME like '%'||#{truename, jdbcType=VARCHAR}||'%'
</if>
<if
test=
"policemanid!=null and policemanid!=''"
>
and POLICEMANID = #{policemanid, jdbcType=VARCHAR}
</if>
<if
test=
"policemanid!=null and policemanid!=''"
>
and
s.
POLICEMANID = #{policemanid, jdbcType=VARCHAR}
</if>
</select>
</select>
<!-- 根据userid拿到用户信息 -->
<!-- 根据userid拿到用户信息 -->
...
@@ -903,6 +918,7 @@
...
@@ -903,6 +918,7 @@
TRUENAME truename,
TRUENAME truename,
TELEPHONE telephone,
TELEPHONE telephone,
XXDJRYXM xxdjryxm,
XXDJRYXM xxdjryxm,
ywlx ywlx,
(select name from sys_dictitem where groupid='CODE_UNIT' and code=XXDJDWGAJGJGDM) as xxdjdwgajgjgdm,
(select name from sys_dictitem where groupid='CODE_UNIT' and code=XXDJDWGAJGJGDM) as xxdjdwgajgjgdm,
to_char(DJSJ,'yyyy-MM-dd hh24:mi:ss') as djsj
to_char(DJSJ,'yyyy-MM-dd hh24:mi:ss') as djsj
from TB_YW_ZCZL_LLY where 1=1 and XXSCPDBZ = '0' and UNITCODE = #{unitcode, jdbcType=VARCHAR}
from TB_YW_ZCZL_LLY where 1=1 and XXSCPDBZ = '0' and UNITCODE = #{unitcode, jdbcType=VARCHAR}
...
@@ -1908,6 +1924,13 @@
...
@@ -1908,6 +1924,13 @@
<include
refid=
"spqx-where"
/>
<include
refid=
"spqx-where"
/>
</select>
</select>
<select
id=
"getLlyqxByUserId"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbYwZczlLly"
>
select XXZJBH as xxzjbh,
USERID as userId,
YWLX as ywlx
from TB_YW_ZCZL_LLY where XXSCPDBZ=0 and USERID= #{userId, jdbcType=VARCHAR}
</select>
<select
id=
"getFpqxxxByUserId"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbYwZczlSpqx"
>
<select
id=
"getFpqxxxByUserId"
parameterType=
"java.lang.String"
resultType=
"com.founder.model.TbYwZczlSpqx"
>
select XXZJBH as xxzjbh,
select XXZJBH as xxzjbh,
USERID as userId,
USERID as userId,
...
@@ -1979,6 +2002,14 @@
...
@@ -1979,6 +2002,14 @@
where USERID=#{userId,jdbcType=VARCHAR}
where USERID=#{userId,jdbcType=VARCHAR}
</update>
</update>
<update
id=
"updateLlyQxfp"
parameterType=
"com.founder.model.TbYwZczlSpqx"
>
update TB_YW_ZCZL_LLY
set
GXSJ = sysdate
,YWLX =#{ywlx,jdbcType=VARCHAR}
where XXSCPDBZ=0 and USERID=#{userId,jdbcType=VARCHAR}
</update>
<select
id=
"queryAllUserIdByYwlx"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
<select
id=
"queryAllUserIdByYwlx"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
select USERID as userId
select USERID as userId
from TB_YW_ZCZL_SPQX spqx ,SYS_USER u where spqx.xxsc_pdbz=0 and spqx.ywlx like '%'||#{startId, jdbcType=VARCHAR}||'%'
from TB_YW_ZCZL_SPQX spqx ,SYS_USER u where spqx.xxsc_pdbz=0 and spqx.ywlx like '%'||#{startId, jdbcType=VARCHAR}||'%'
...
...
src/main/resources/static/js/llycx.js
View file @
9489168c
...
@@ -9,12 +9,13 @@ function doClear(){
...
@@ -9,12 +9,13 @@ function doClear(){
var
table_title
=
[
var
table_title
=
[
{
title
:
"联络员单位"
,
field
:
"unitname"
,
align
:
'center'
,
width
:
'15%'
},
{
title
:
"联络员单位"
,
field
:
"unitname"
,
align
:
'center'
,
width
:
'15%'
},
{
title
:
"联络员"
,
field
:
"truename"
,
align
:
'center'
,
width
:
'15%'
},
{
title
:
"联络员"
,
field
:
"truename"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"联络类型"
,
field
:
"ywlx"
,
align
:
'center'
,
width
:
'25%'
},
{
title
:
"联络员警号"
,
field
:
"policemanid"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"联络员警号"
,
field
:
"policemanid"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"联系电话"
,
field
:
"telephone"
,
align
:
'center'
,
width
:
'1
5
%'
},
{
title
:
"联系电话"
,
field
:
"telephone"
,
align
:
'center'
,
width
:
'1
0
%'
},
{
title
:
"设置人姓名"
,
field
:
"xxdjryxm"
,
align
:
'center'
,
width
:
'1
5
%'
},
{
title
:
"设置人姓名"
,
field
:
"xxdjryxm"
,
align
:
'center'
,
width
:
'1
0
%'
},
{
title
:
"设置人单位"
,
field
:
"xxdjdwgajgjgdm"
,
align
:
'center'
,
width
:
'1
5
%'
},
{
title
:
"设置人单位"
,
field
:
"xxdjdwgajgjgdm"
,
align
:
'center'
,
width
:
'1
0
%'
},
{
title
:
"设置时间"
,
field
:
"djsj"
,
align
:
'center'
,
width
:
'1
5
%'
}
{
title
:
"设置时间"
,
field
:
"djsj"
,
align
:
'center'
,
width
:
'1
0
%'
}
];
];
function
doQuery
(
obj
){
function
doQuery
(
obj
){
...
...
src/main/resources/static/js/llysz.js
View file @
9489168c
$
(
function
(){
$
(
function
(){
doQuery
();
doQuery
();
getAllYwlx
();
})
})
function
getColumn
(
row
){
function
getColumn
(
row
){
var
str
=
""
;
var
str
=
""
;
if
(
row
.
sflly
==
'1'
){
if
(
row
.
sflly
==
'1'
){
str
=
"<a href=
\"
#
\"
onclick=
\"
del('"
+
row
.
xxzjbh
+
"');
\"
class=
\"
cz
\"
><span style='color: #f70909;'>删除</span></a>"
;
str
=
"<a href=
\"
#
\"
onclick=
\"
del('"
+
row
.
xxzjbh
+
"');
\"
class=
\"
cz
\"
><span style='color: #f70909;'>删除</span></a>"
;
str
+=
" <a href=
\"
#
\"
onclick=
\"
getQx('"
+
row
.
userId
+
"');
\"
class=
\"
cz
\"
><span style='color: #7fd015;'>设置联络员类型</span></a>"
str
=
str
+
" <a href=
\"
#
\"
onclick=
\"
yj_tk(this,event,'"
+
row
.
xxzjbh
+
"');
\"
class=
\"
cz pos
\"
><span style='color: #7fd015;'>移交</span><div class=
\"
right_po
\"
><table><thead><tr><th width=
\"
100%
\"
>联络员姓名</th></tr></thead><tbody></tbody></tbody></table></div></a>"
str
=
str
+
" <a href=
\"
#
\"
onclick=
\"
yj_tk(this,event,'"
+
row
.
xxzjbh
+
"');
\"
class=
\"
cz pos
\"
><span style='color: #7fd015;'>移交</span><div class=
\"
right_po
\"
><table><thead><tr><th width=
\"
100%
\"
>联络员姓名</th></tr></thead><tbody></tbody></tbody></table></div></a>"
}
else
{
}
else
{
str
=
"<a href=
\"
#
\"
onclick=
\"
setLly('"
+
row
.
userId
+
"');
\"
class=
\"
cz
\"
><span style='color: #7fd015;'>设置联络员</span></a>"
str
=
"<a href=
\"
#
\"
onclick=
\"
setLly('"
+
row
.
userId
+
"');
\"
class=
\"
cz
\"
><span style='color: #7fd015;'>设置联络员</span></a>"
...
@@ -14,6 +16,116 @@ function getColumn(row){
...
@@ -14,6 +16,116 @@ function getColumn(row){
return
str
;
return
str
;
}
}
//显示设置权限界面
function
getQx
(
userId
){
$
(
'.mask'
).
show
();
$
(
'.layout'
).
fadeIn
(
800
);
$
(
"#userId"
).
val
(
userId
);
//通过该人的userId查询具有的业务
var
index
=
layer
.
load
(
1
,
{
content
:
'数据加载中...'
,
shade
:
[
0.35
,
'#fff'
],
success
:
function
(
layero
)
{
/*layero.css('padding-left', '30px');*/
layero
.
find
(
'.layui-layer-content'
).
css
({
'padding-top'
:
'40px'
,
'width'
:
'70px'
,
'background-position-x'
:
'16px'
});
}
});
$
.
ajax
({
url
:
'/getLlyqxByUserId?userId='
+
userId
,
type
:
"post"
,
success
:
function
(
data
)
{
layer
.
close
(
index
);
if
(
data
.
length
>
0
){
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
var
id
=
"ywlx"
+
data
[
i
];
$
(
'#'
+
id
).
prop
(
"checked"
,
true
);
}
}
}
});
}
//分配权限
function
doQxfp
(){
var
length
=
$
(
'input[type=checkbox]:checked'
).
length
;
if
(
length
<=
0
){
layer
.
alert
(
"分配权限必选!"
,
"提示"
);
return
;
}
var
index
=
layer
.
load
(
1
,
{
content
:
'数据加载中...'
,
shade
:
[
0.35
,
'#fff'
],
success
:
function
(
layer
)
{
/*layer.css('padding-left', '30px');*/
layer
.
find
(
'.layui-layer-content'
).
css
({
'padding-top'
:
'40px'
,
'width'
:
'70px'
,
'background-position-x'
:
'16px'
});
}
});
$
.
ajax
({
type
:
"POST"
,
//方法类型
dataType
:
"json"
,
//预期服务器返回的数据类型
url
:
"/doLlyQxfp"
,
data
:
$
(
'#qxForm'
).
serialize
(),
success
:
function
(
data
)
{
layer
.
close
(
index
);
if
(
data
==
0
){
layer
.
alert
(
'分配权限失败'
,
"提示"
,
function
(
res
){
if
(
res
){
layer
.
closeAll
();
}
});
}
else
if
(
data
==
1
){
layer
.
alert
(
'分配权限成功'
,
"提示"
,
function
(
res
){
if
(
res
){
doBack
();
doQuery
();
layer
.
closeAll
();
}
});
}
},
error
:
function
()
{
layer
.
close
(
index
);
layer
.
alert
(
'分配权限失败'
,
"提示"
,
function
(
res
){
if
(
res
){
layer
.
closeAll
();
}
});
}
});
}
function
doBack
(){
$
(
"#userId"
).
val
(
""
);
$
(
'.mask'
).
hide
();
$
(
'.layout'
).
fadeOut
(
500
);
//清空所有选项
$
(
'#checkboxTd'
).
find
(
"input[name='ywlx']"
).
prop
(
"checked"
,
false
);;
}
function
getAllYwlx
(){
$
.
ajax
({
url
:
'/getAllYwlx'
,
type
:
"post"
,
success
:
function
(
data
)
{
var
nr
=
""
;
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
nr
=
nr
+
' <input class="ywlxClass" type=
\
"checkbox
\
" name=
\
"ywlx
\
" id="ywlx'
+
data
[
i
].
code
+
'" value="'
+
data
[
i
].
code
+
'" style=
\
"width: auto;zoom:150%;margin-top: 0px;
\
">'
+
data
[
i
].
name
;
}
$
(
"#checkboxTd"
).
append
(
nr
);
}
});
}
function
yj_tk
(
el
,
event
,
xxzjbh
)
{
function
yj_tk
(
el
,
event
,
xxzjbh
)
{
//查询出本单位的联络员信息
//查询出本单位的联络员信息
var
index
=
layer
.
load
(
1
,
{
var
index
=
layer
.
load
(
1
,
{
...
@@ -227,10 +339,11 @@ var table_title = [
...
@@ -227,10 +339,11 @@ var table_title = [
{
title
:
"操作"
,
field
:
"xxzjbh"
,
align
:
'center'
,
width
:
'10%'
,
formatter
:
function
(
val
,
row
,
index
){
{
title
:
"操作"
,
field
:
"xxzjbh"
,
align
:
'center'
,
width
:
'10%'
,
formatter
:
function
(
val
,
row
,
index
){
return
getColumn
(
row
);
return
getColumn
(
row
);
}},
}},
{
title
:
"姓名"
,
field
:
"truename"
,
align
:
'center'
,
width
:
'15%'
},
{
title
:
"姓名"
,
field
:
"truename"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"警号"
,
field
:
"policemanid"
,
align
:
'center'
,
width
:
'15%'
},
{
title
:
"联络员类型"
,
field
:
"ywlx"
,
align
:
'center'
,
width
:
'25%'
},
{
title
:
"系统账号"
,
field
:
"username"
,
align
:
'center'
,
width
:
'20%'
},
{
title
:
"警号"
,
field
:
"policemanid"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"所属单位"
,
field
:
"unitname"
,
align
:
'center'
,
width
:
'25%'
},
{
title
:
"系统账号"
,
field
:
"username"
,
align
:
'center'
,
width
:
'10%'
},
{
title
:
"所属单位"
,
field
:
"unitname"
,
align
:
'center'
,
width
:
'20%'
},
{
title
:
"联系电话"
,
field
:
"telephone"
,
align
:
'center'
,
width
:
'15%'
}
{
title
:
"联系电话"
,
field
:
"telephone"
,
align
:
'center'
,
width
:
'15%'
}
];
];
...
...
src/main/webapp/WEB-INF/jsp/llysz.jsp
View file @
9489168c
...
@@ -194,4 +194,34 @@
...
@@ -194,4 +194,34 @@
</script>
</script>
</body>
</body>
<div
class=
"mask"
></div>
<div
class=
"layout"
>
<div
class=
"layout_header"
>
<span>
权限信息
</span>
<
%
--
<
a
class=
"close_x fr"
id=
"close_x"
><i
class=
"fa fa-times"
></i></a>
--%>
</div>
<form
name=
"qxForm"
id=
"qxForm"
>
<input
name=
"userId"
id=
"userId"
type=
"hidden"
>
<div
class=
"layout_content"
>
<table
class=
"layout_table"
>
<tr>
<td
class=
"ar"
width=
"15%"
>
权限:
</td>
<td
colspan=
"3"
style=
"color: #f60;"
id=
"checkboxTd"
>
</td>
</tr>
<tr>
<td
class=
"empty"
colspan=
"4"
></td>
</tr>
<tr>
<td
colspan=
"4"
style=
"text-align:center;"
>
<a
class=
"btn_a btn_add"
onclick=
"doQxfp()"
>
分配
</a>
<a
class=
"btn_a btn_search"
onclick=
"doBack()"
>
返回
</a>
</td>
</tr>
</table>
</div>
</form>
</div>
</html>
</html>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/zczl_qqxdzl.jsp
View file @
9489168c
...
@@ -196,6 +196,8 @@
...
@@ -196,6 +196,8 @@
<a
class=
"btn_a btn_search posa"
onclick=
"doSearch()"
<a
class=
"btn_a btn_search posa"
onclick=
"doSearch()"
style=
"margin-right:20px;"
>
提取
</a><a
class=
"DNA KQYAJ XSZDH btn_a btn_search posa"
onclick=
"doDnaDetail()"
style=
"margin-right:20px;"
>
提取
</a><a
class=
"DNA KQYAJ XSZDH btn_a btn_search posa"
onclick=
"doDnaDetail()"
style=
"margin-right:20px;"
>
查看详情
</a>
style=
"margin-right:20px;"
>
查看详情
</a>
<a
class=
"DNA btn_a btn_search posa"
onclick=
"doMoreDnaDetail()"
style=
"margin-right:20px;"
>
更多相关指纹信息
</a>
</td>
</td>
</tr>
</tr>
<tr
class=
"XSZDH"
>
<tr
class=
"XSZDH"
>
...
@@ -540,6 +542,10 @@
...
@@ -540,6 +542,10 @@
}
}
}
}
function
doMoreDnaDetail
(){
window
.
open
(
"${asjZbUrl}"
+
"/getZwbzxxListByZjhm?zjhm="
+
$
(
"#jjrSfzh"
).
val
());
}
function
back
(){
function
back
(){
var
url
=
"/toGetWqqfbdzczlList"
;
var
url
=
"/toGetWqqfbdzczlList"
;
window
.
open
(
url
,
"_self"
);
window
.
open
(
url
,
"_self"
);
...
@@ -620,7 +626,7 @@
...
@@ -620,7 +626,7 @@
}
}
//判断单位是否存在联络员
//判断单位是否存在联络员
$
.
ajax
({
$
.
ajax
({
url
:
'/queryLlys?unitcodes='
+
zljsdwdm
,
url
:
'/queryLlys?unitcodes='
+
zljsdwdm
+
"&ywlx="
+
ywlx
,
type
:
"post"
,
type
:
"post"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
...
@@ -718,7 +724,7 @@
...
@@ -718,7 +724,7 @@
}
}
//判断单位是否存在联络员
//判断单位是否存在联络员
$
.
ajax
({
$
.
ajax
({
url
:
'/queryLlys?unitcodes='
+
zljsdwdm
,
url
:
'/queryLlys?unitcodes='
+
zljsdwdm
+
"&ywlx="
+
ywlx
,
type
:
"post"
,
type
:
"post"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
...
...
src/main/webapp/WEB-INF/jsp/zczl_xdzl.jsp
View file @
9489168c
This diff is collapsed.
Click to expand it.
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