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
54399d31
Commit
54399d31
authored
Jul 27, 2019
by
libin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
81706cf8
da7449fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
+28
-2
No files found.
src/main/resources/mybatis/mapper/xzxt/SBTResultDetailMapper.xml
View file @
54399d31
...
...
@@ -421,6 +421,8 @@
</otherwise>
</choose>
</if>
<if
test=
"zjhm!= null and zjhm!= ''"
>
and td.zjhm = #{zjhm}
</if>
<if
test=
"sjhm!= null and sjhm!= ''"
>
and td.sjhm = #{sjhm}
</if>
<if
test=
"objectValue!= null and objectValue!= ''"
>
and t.OBJECT_VALUE LIKE '%'|| #{objectValue} || '%'
</if>
<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>
...
...
@@ -479,12 +481,17 @@
select count(*)
from TB_ST_SPATIOTEMPORALRESULT t
left join SBT_RESULT_DETAIL td on t.OBJECT_VALUE = td.OBJECT_VALUE AND t.OBJECT_TYPE = td.OBJECT_TYPE
where t.TASK_ID = #{taskId,jdbcType=VARCHAR} and t.XXZJBH in
(select max(t.XXZJBH)
from TB_ST_SPATIOTEMPORALRESULT t
left join SBT_RESULT_DETAIL td on t.OBJECT_VALUE = td.OBJECT_VALUE AND t.OBJECT_TYPE = td.OBJECT_TYPE
where t.TASK_ID = #{taskId,jdbcType=VARCHAR}
<if
test=
"sfFzxyr!=null and sfFzxyr!=''"
>
and td.SF_FZXYR =#{sfFzxyr,jdbcType=VARCHAR}
</if>
<if
test=
"sfFzxyr!=null and sfFzxyr!=''"
>
and td.SF_FZXYR =#{sfFzxyr,jdbcType=VARCHAR}
</if>
<if
test=
"sfGwry!=null and sfGwry!=''"
>
and td.SF_GWRY =#{sfGwry,jdbcType=VARCHAR}
</if>
<if
test=
"sfGwryFzxyr!=null and sfGwryFzxyr!=''"
>
and (td.SF_GWRY =1 or td.SF_FZXYR=1)
</if>
<if
test=
"tjType!=null and tjType!='' and tjType =='1'.toString()"
>
and td.zjhm is not null
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='1'.toString()"
>
and td.name is not null
and td.zjhm in (
SELECT td.ZJHM AS zjhm
FROM TB_ST_SPATIOTEMPORALRESULT t
...
...
@@ -513,6 +520,13 @@
and substr(td.sjhm,1,7) in(select phone from TB_ST_PHONENO where pc in (${gwdqs}))
</if>
<if
test=
"tjType!=null and tjType!='' and tjType =='3'.toString()"
>
and td.OBJECT_TYPE in('6424','6422','6425','6423','6426')
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='1'.toString()"
>
group by td.zjhm
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='2'.toString()"
>
group by td.sjhm
</if>
)
</select>
<select
id=
"findSkhsTaskResultTjList"
parameterType=
"com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail"
resultType=
"com.founder.interservice.spatiotemporalBackTrack.model.SBTResultDetail"
>
...
...
@@ -544,12 +558,17 @@
td.SF_GWRY as sfGwry
from TB_ST_SPATIOTEMPORALRESULT t
left join SBT_RESULT_DETAIL td on t.OBJECT_VALUE = td.OBJECT_VALUE AND t.OBJECT_TYPE = td.OBJECT_TYPE
where t.TASK_ID = #{taskId,jdbcType=VARCHAR} and t.XXZJBH in
(select max(t.XXZJBH)
from TB_ST_SPATIOTEMPORALRESULT t
left join SBT_RESULT_DETAIL td on t.OBJECT_VALUE = td.OBJECT_VALUE AND t.OBJECT_TYPE = td.OBJECT_TYPE
where t.TASK_ID = #{taskId,jdbcType=VARCHAR}
<if
test=
"sfFzxyr!=null and sfFzxyr!=''"
>
and td.SF_FZXYR =#{sfFzxyr,jdbcType=VARCHAR}
</if>
<if
test=
"sfFzxyr!=null and sfFzxyr!=''"
>
and td.SF_FZXYR = #{sfFzxyr,jdbcType=VARCHAR}
</if>
<if
test=
"sfGwry!=null and sfGwry!=''"
>
and td.SF_GWRY =#{sfGwry,jdbcType=VARCHAR}
</if>
<if
test=
"sfGwryFzxyr!=null and sfGwryFzxyr!=''"
>
and (td.SF_GWRY =1 or td.SF_FZXYR=1)
</if>
<if
test=
"tjType!=null and tjType!='' and tjType =='1'.toString()"
>
and td.zjhm is not null
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='1'.toString()"
>
and td.name is not null
and td.zjhm in (
SELECT td.ZJHM AS zjhm
FROM TB_ST_SPATIOTEMPORALRESULT t
...
...
@@ -578,6 +597,13 @@
and substr(td.sjhm,1,7) in(select phone from TB_ST_PHONENO where pc in (${gwdqs}))
</if>
<if
test=
"tjType!=null and tjType!='' and tjType =='3'.toString()"
>
and td.OBJECT_TYPE in('6424','6422','6425','6423','6426')
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='1'.toString()"
>
group by td.zjhm
</if>
<if
test=
"hmlx!=null and hmlx!='' and hmlx =='2'.toString()"
>
group by td.sjhm
</if>
)
order by td.name desc nulls last,td.xxzjbh,t.DJSJ desc
) t1
where rownum
<![CDATA[ <= ]]>
#{end}
...
...
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