Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bigdatainterservice
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
曹鹏
bigdatainterservice
Commits
1c3cc395
Commit
1c3cc395
authored
Jun 18, 2019
by
chentian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
区域碰撞和时空回溯是否本市统计修改
parent
2ca3cd87
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
src/main/java/com/founder/interservice/regionalanalysis/service/impl/RegionalAnalysisServiceImpl.java
+2
-2
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackServiceImpl.java
+2
-2
src/main/resources/mybatis/mapper/xzxt/RegionalTaskResultDetailMapper.xml
+10
-10
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
+4
-4
No files found.
src/main/java/com/founder/interservice/regionalanalysis/service/impl/RegionalAnalysisServiceImpl.java
View file @
1c3cc395
...
...
@@ -308,11 +308,11 @@ public class RegionalAnalysisServiceImpl implements RegionalAnalysisService {
//本市非两种情况,本市,和非本市
vo
.
setSqlStr
(
" count(*) counts,'本市人员' names,1 vals "
);
vo
.
setIsNullField
(
" (b.zjhm is not null
and substr(b.zjhm,1,2)='50'
) "
);
vo
.
setIsNullField
(
" (b.zjhm is not null) "
);
vo
.
setGroupByField
(
""
);
list
=
regionalTaskResultDetailMapper
.
getFldhBzhCountList
(
vo
);
vo
.
setSqlStr
(
" count(*) counts,'非本市人员' names,0 vals "
);
vo
.
setIsNullField
(
" (b.zjhm is null
or substr(b.zjhm,1,2)!='50'
) "
);
vo
.
setIsNullField
(
" (b.zjhm is null ) "
);
vo
.
setGroupByField
(
""
);
list
.
addAll
(
regionalTaskResultDetailMapper
.
getFldhBzhCountList
(
vo
));
...
...
src/main/java/com/founder/interservice/spatiotemporalBackTrack/service/impl/SpatiotemporalBackTrackServiceImpl.java
View file @
1c3cc395
...
...
@@ -131,11 +131,11 @@ public class SpatiotemporalBackTrackServiceImpl implements SpatiotemporalBackTra
}
else
if
(
"SFBS"
.
equals
(
checkVal
)){
//本市非两种情况,本市,和非本市
vo
.
setSqlStr
(
" count(*) counts,'本市人员' names,1 vals "
);
vo
.
setIsNullField
(
" (b.zjhm is not null
and substr(b.zjhm,1,2)='50'
) "
);
vo
.
setIsNullField
(
" (b.zjhm is not null ) "
);
vo
.
setGroupByField
(
""
);
list
=
sBTResultDetailMapper
.
getFldhBzhCountList
(
vo
);
vo
.
setSqlStr
(
" count(*) counts,'非本市人员' names,0 vals "
);
vo
.
setIsNullField
(
" (b.zjhm is null
or substr(b.zjhm,1,2)!='50'
) "
);
vo
.
setIsNullField
(
" (b.zjhm is null ) "
);
vo
.
setGroupByField
(
""
);
list
.
addAll
(
sBTResultDetailMapper
.
getFldhBzhCountList
(
vo
));
}
else
if
(
"BZHLX"
.
equals
(
checkVal
)){
...
...
src/main/resources/mybatis/mapper/xzxt/RegionalTaskResultDetailMapper.xml
View file @
1c3cc395
...
...
@@ -124,8 +124,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null)
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
</select>
<select
id=
"findRegionalTaskResultNewDetailList"
parameterType=
"com.founder.interservice.regionalanalysis.model.RegionalTaskResultDetail"
resultType=
"com.founder.interservice.regionalanalysis.model.RegionalTaskResultDetail"
>
...
...
@@ -171,8 +171,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null)
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
order by td.name desc nulls last,t.DJSJ desc
) t1
...
...
@@ -214,8 +214,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is
null or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is
null
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null)
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
</select>
<!--多区域碰撞新表 end-->
...
...
@@ -240,8 +240,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null )
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
<if
test=
"bscscount!=null and bscscount!=''"
>
and t.COUNT =#{bscscount}
</if>
</select>
...
...
@@ -290,8 +290,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null )
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
<if
test=
"bscscount!=null and bscscount!=''"
>
and t.COUNT =#{bscscount}
</if>
order by t.COUNT desc
...
...
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
View file @
1c3cc395
...
...
@@ -213,8 +213,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null)
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
</select>
...
...
@@ -262,8 +262,8 @@
<if
test=
"csrqStart!=null and csrqStart!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[>=]]>
to_date(#{csrqStart},'yyyy-MM-dd')
</if>
<if
test=
"csrqEnd!=null and csrqEnd!=''"
>
and to_date(td.BIRTHDAY,'yyyy-MM-dd')
<![CDATA[<=]]>
to_date(#{csrqEnd},'yyyy-MM-dd')
</if>
<if
test=
"birthday!=null and birthday!=''"
>
and substr(td.BIRTHDAY,0,${rqLength}) =#{birthday}
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null
or substr(td.zjhm,1,2)!='50'
)
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null
and substr(td.zjhm,1,2)='50'
)
</if>
<if
test=
'sfbs =="0"'
>
and (td.ZJHM is null )
</if>
<if
test=
'sfbs =="1"'
>
and (td.ZJHM is not null)
</if>
<if
test=
"sex!=null and sex!=''"
>
and td.SEX =#{sex}
</if>
order by td.name desc nulls LAST,t.djsj desc
) t1
...
...
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