Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
map-parent
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
常超
map-parent
Commits
0b2ab400
Commit
0b2ab400
authored
Jul 29, 2022
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
主题研判、点位校验优化(湖南)
parent
60c84a51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
85 additions
and
64 deletions
+85
-64
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/ZtypMapper.java
+4
-0
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/ZtypMapper.xml
+27
-43
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/TbStAsjServiceImpl.java
+20
-20
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/ZtypServiceImpl.java
+34
-1
No files found.
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/ZtypMapper.java
View file @
0b2ab400
...
...
@@ -13,6 +13,10 @@ import java.util.Map;
@Component
public
interface
ZtypMapper
{
ZpajxxEntity
getZpAsjBshxx
(
String
asjbh
);
String
getZpAsjbzxx
(
String
asjbh
);
List
<
ZpajxxEntity
>
getZpajxx
(
ZpajxxModel
model
);
int
getZpajxxTotal
(
ZpajxxModel
model
);
...
...
service/publicapi/src/main/java/com/founder/publicapi/mapper/mysqlMapper/xml/ZtypMapper.xml
View file @
0b2ab400
<?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.publicapi.mapper.mysqlMapper.ZtypMapper"
>
<select
id=
"getZp
ajxx"
parameterType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxModel
"
<select
id=
"getZp
AsjBshxx"
parameterType=
"java.lang.String
"
resultType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxEntity"
>
select a.asjbh asjbh,
a.ajmc ajmc,
(select name from sys_dictitem where groupid = 'CODE_AJXZ' and code = a.ZATZ_JYQK) zatzJyqk,
(select name from sys_dictitem where groupid = 'CODE_AJXLB' and code = b.AJXLB) ajxlb,
select
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '01' then h.ASJXGFWBZH_FWBZH end) mobile,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '04' then h.ASJXGFWBZH_FWBZH end) yhkh,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '13' then h.ASJXGFWBZH_FWBZH end) wx,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '16' then h.ASJXGFWBZH_FWBZH end) personid
from tb_st_asj a left join tb_st_asj_asjbz b on a.ASJBH = b.ASJBH left join tb_xw_asjxgfwbzh h on b.ASJBH =
h.ASJBH
where a.AJLBDM = '05000300' and a.ZATZ_JYQK != '0500030002%'
from tb_xw_asjxgfwbzh h
where h.asjbh = #{ asjbh,jdbcType= VARCHAR }
</select>
<select
id=
"getZpAsjbzxx"
parameterType=
"java.lang.String"
resultType=
"java.lang.String"
>
select
(select name from sys_dictitem where groupid = 'CODE_AJXLB' and code = b.AJXLB) ajxlb
from tb_st_asj_asjbz b
where b.asjbh = #{ asjbh,jdbcType= VARCHAR }
</select>
<select
id=
"getZpajxx"
parameterType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxModel"
resultType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxEntity"
>
select a.asjbh asjbh,
a.ajmc ajmc,
(select name from sys_dictitem where groupid = 'CODE_AJXZ' and code = a.ZATZ_JYQK) zatzJyqk
from tb_st_asj a
where a.AJLBDM = '05000300'
and a.ZATZ_JYQK not like '0500030002%'
and a.XXSC_PDBZ = 0
<if
test=
"asjbh != null and asjbh != '' "
>
and a.asjbh like concat('%', #{asjbh} ,'%')
</if>
<if
test=
"ajmc != null and ajmc != '' "
>
and a.ajmc like concat('%', #{ajmc} ,'%')
</if>
<if
test=
"ajzlb != null and ajzlb != '' "
>
and b.AJZLB = #{ajzlb}
</if>
<if
test=
"ajxzlb != null and ajxzlb != '' "
>
and b.AJXZLB = #{ajxzlb}
</if>
<if
test=
"xalbdmbcms != null and xalbdmbcms != '' "
>
and b.XALBDMBCMS = #{xalbdmbcms}
</if>
group by a.asjbh, a.ajmc, a.ZATZ_JYQK, b.AJXLB
limit #{page}, #{limit}
</select>
<select
id=
"getZpajxxTotal"
parameterType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.ZpajxxModel"
resultType=
"java.lang.Integer"
>
select count(*) from (
select a.asjbh asjbh,
a.ajmc ajmc,
(select name from sys_dictitem where groupid = 'CODE_AJXZ' and code = a.ZATZ_JYQK) zatzJyqk,
(select name from sys_dictitem where groupid = 'CODE_AJXLB' and code = b.AJXLB) ajxlb,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '01' then h.ASJXGFWBZH_FWBZH end) mobile,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '04' then h.ASJXGFWBZH_FWBZH end) yhkh,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '13' then h.ASJXGFWBZH_FWBZH end) wx,
group_concat(case ASJXGFWBZH_FWBZH_FWBZHLBDM when '16' then h.ASJXGFWBZH_FWBZH end) personid
from tb_st_asj a left join tb_st_asj_asjbz b on a.ASJBH = b.ASJBH left join tb_xw_asjxgfwbzh h on b.ASJBH =
h.ASJBH
where a.AJLBDM = '05000300' and a.ZATZ_JYQK != '0500030002%'
select count(*)
from tb_st_asj a
where a.AJLBDM = '05000300' and a.ZATZ_JYQK not like '0500030002%' and a.XXSC_PDBZ = 0
<if
test=
"asjbh != null and asjbh != '' "
>
and a.asjbh like concat('%', #{asjbh} ,'%')
</if>
<if
test=
"ajmc != null and ajmc != '' "
>
and a.ajmc like concat('%', #{ajmc} ,'%')
</if>
<if
test=
"ajzlb != null and ajzlb != '' "
>
and b.AJZLB = #{ajzlb}
</if>
<if
test=
"ajxzlb != null and ajxzlb != '' "
>
and b.AJXZLB = #{ajxzlb}
</if>
<if
test=
"xalbdmbcms != null and xalbdmbcms != '' "
>
and b.XALBDMBCMS = #{xalbdmbcms}
</if>
group by a.asjbh, a.ajmc, a.ZATZ_JYQK, b.AJXLB
) t
</select>
<select
id=
"selectPageByFwbsh"
resultType=
"com.founder.commonutils.model.newPublicEntity.ztypEntity.TbStZtypFwbsh"
>
select
...
...
@@ -557,7 +541,7 @@
) and xxsc_pdbz = '0'
order by gxsj desc
<if
test=
"page >= 0 and limit > 0"
>
limit #{page},#{limit}
limit #{page},#{limit}
</if>
</select>
...
...
@@ -701,7 +685,7 @@
) and xxsc_pdbz = '0'
order by gxsj desc
<if
test=
"page >= 0 and limit > 0"
>
limit #{page},#{limit}
limit #{page},#{limit}
</if>
</select>
...
...
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/TbStAsjServiceImpl.java
View file @
0b2ab400
...
...
@@ -166,8 +166,8 @@ public class TbStAsjServiceImpl extends ServiceImpl<TbStAsjMapper, TbStAsj> impl
// 2.1通过周边快查设备id 去查询该段时间内前科人员网吧上网、酒店住宿等
List
<
ZdcsResult
>
listQkry
=
tbStAsjMapper
.
getQkryByTime
(
params
);
if
(
listQkry
.
size
()>
0
){
p
.
setChildren
(
listQkry
);
p
.
setLabel
(
p
.
getDevicename
());
p
.
setChildren
(
listQkry
);
p
.
setLabel
(
p
.
getDevicename
());
}
else
{
listResult
.
add
(
p
);
}
...
...
@@ -232,10 +232,10 @@ public class TbStAsjServiceImpl extends ServiceImpl<TbStAsjMapper, TbStAsj> impl
map
.
put
(
"numWjy"
,
sumWjy
);
map
.
put
(
"numYjy"
,
sumYjy
);
listResult
.
add
(
map
);
}
}
}
}
}
}
}
}
/* Collections.sort(listResult,new Comparator<Map<String,Object>>(){
public int compare(Map<String,Object> o1,Map<String,Object> o2){
Integer name1 = Integer.valueOf(o1.get("lev").toString());
...
...
@@ -249,8 +249,10 @@ public class TbStAsjServiceImpl extends ServiceImpl<TbStAsjMapper, TbStAsj> impl
public
TbAsjJwdinfo
getTbAsjJwdinfo
(
TbAsjJwdinfo
tbAsjJwdinfo
,
SysUser
user
){
if
(
null
!=
user
){
// 拿到当前登陆者本级以及下级单位
tbAsjJwdinfo
.
setUnitcodeList
(
dwList
(
user
.
getUnitcode
()));
if
(!
"1"
.
equals
(
sysDictitemMapper
.
getDwLevByDwdm
(
user
.
getUnitcode
()))){
// 省级用户不用取拿下级单位 查询所有
// 拿到当前登陆者本级以及下级单位
tbAsjJwdinfo
.
setUnitcodeList
(
dwList
(
user
.
getUnitcode
()));
}
}
// 受理单位
...
...
@@ -302,20 +304,18 @@ public class TbStAsjServiceImpl extends ServiceImpl<TbStAsjMapper, TbStAsj> impl
// 拿到当前登陆者本级以及下级单位
String
lev
=
sysDictitemMapper
.
getDwLevByDwdm
(
unitcode
);
List
<
String
>
dwList
=
new
ArrayList
<>();
if
(!
"1"
.
equals
(
lev
)){
// 省级用户不用取拿下级单位 查询所有
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotEmpty
(
lev
))
{
Map
<
String
,
String
>
bdwLevCode
=
DwUtilCommon
.
getMapDwLevCode
(
unitcode
,
lev
);
dwList
=
sysDictitemMapper
.
getAllXjdwByMap
(
bdwLevCode
);
if
(
dwList
==
null
||
dwList
.
size
()
==
0
)
{
if
(
dwList
==
null
)
{
dwList
=
new
ArrayList
<>(
1
);
}
dwList
.
add
(
bdwLevCode
.
get
(
"unitcode"
));
if
(
org
.
apache
.
commons
.
lang
.
StringUtils
.
isNotEmpty
(
lev
))
{
Map
<
String
,
String
>
bdwLevCode
=
DwUtilCommon
.
getMapDwLevCode
(
unitcode
,
lev
);
dwList
=
sysDictitemMapper
.
getAllXjdwByMap
(
bdwLevCode
);
if
(
dwList
==
null
||
dwList
.
size
()
==
0
)
{
if
(
dwList
==
null
)
{
dwList
=
new
ArrayList
<>(
1
);
}
}
else
{
dwList
=
new
ArrayList
<>(
1
);
dwList
.
add
(
unitcode
);
dwList
.
add
(
bdwLevCode
.
get
(
"unitcode"
));
}
}
else
{
dwList
=
new
ArrayList
<>(
1
);
dwList
.
add
(
unitcode
);
}
return
dwList
;
}
...
...
service/publicapi/src/main/java/com/founder/publicapi/service/serviceimpl/ZtypServiceImpl.java
View file @
0b2ab400
...
...
@@ -57,7 +57,40 @@ public class ZtypServiceImpl implements ZtypService {
@Override
public
List
<
ZpajxxEntity
>
getZpajxx
(
ZpajxxModel
model
)
{
return
ztypMapper
.
getZpajxx
(
model
);
// 取出分页的案件信息
List
<
ZpajxxEntity
>
getZpajxx
=
ztypMapper
.
getZpajxx
(
model
);
getZpajxx
.
stream
().
forEach
(
p
->{
String
ajxlb
=
ztypMapper
.
getZpAsjbzxx
(
p
.
getAsjbh
());
if
(
null
!=
ajxlb
){
p
.
setAjxlb
(
ajxlb
);
}
ZpajxxEntity
zpajxxEntity
=
ztypMapper
.
getZpAsjBshxx
(
p
.
getAsjbh
());
if
(
null
!=
zpajxxEntity
){
String
mobile
=
zpajxxEntity
.
getMobile
();
String
yhkh
=
zpajxxEntity
.
getYhkh
();
String
wx
=
zpajxxEntity
.
getWx
();
String
personid
=
zpajxxEntity
.
getPersonid
();
if
(
null
!=
mobile
){
p
.
setMobile
(
mobile
);
}
if
(
null
!=
yhkh
){
p
.
setYhkh
(
yhkh
);
}
if
(
null
!=
wx
){
p
.
setWx
(
wx
);
}
if
(
null
!=
personid
){
p
.
setPersonid
(
personid
);
}
}
});
return
getZpajxx
;
}
@Override
...
...
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