Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjdz-services
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chenpeng
sjdz-services
Commits
a15053c7
Commit
a15053c7
authored
6 months ago
by
zhaoting
Browse files
Options
Downloads
Patches
Plain Diff
feat: 达梦的修改
parent
5db8bde0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/CallInformationMapper.xml
+18
-17
18 additions, 17 deletions
...e-biz/src/main/resources/mapper/CallInformationMapper.xml
with
18 additions
and
17 deletions
city-sjdz-services-biz/city-sjdz-base/city-sjdz-base-biz/src/main/resources/mapper/CallInformationMapper.xml
+
18
−
17
View file @
a15053c7
...
...
@@ -34,19 +34,20 @@
call_information
<where>
<if
test=
"keyWord!=null and keyWord!=''"
>
and (title like concat('%',#{keyWord},'%') or call_content like concat('%',#{keyWord},'%'))
and (title like '%'|| #{keyWord}||'%'
or call_content like '%'|| #{keyWord}||'%' )
</if>
<if
test=
"area!=null and area!=''"
>
and area
LIKE CONCAT(
'%'
,
#{area}
,
'%'
)
and area
like
'%'
||
#{area}
||
'%'
</if>
<if
test=
"time!=null and time!=''"
>
and
DATE_FORMAT
(report_time, '
%Y-%m
')
>
=#{time}
and
TO_CHAR
(report_time, '
YYYY-MM
')=#{time}
</if>
</where>
UNION ALL
select
ei.id as id,
"2"
as type,
'2'
as
"
type
"
,
'群众反馈'as call_type ,
ei.standard_event_title title,
ei.standard_event_content call_content,
...
...
@@ -63,16 +64,16 @@
where
ei.cancel_flag='0' and eie.del_flag='0'
<if
test=
"keyWord!=null and keyWord!=''"
>
and (ei.standard_event_title like
concat('%',
#{keyWord}
,
'%'
)
or ei.standard_event_content like
concat(
'%'
,
#{keyWord}
,
'%')
)
and (ei.standard_event_title like
'%' ||
#{keyWord}
||
'%' or ei.standard_event_content like '%'
||
#{keyWord}
||
'%')
</if>
<if
test=
"time!=null and time!=''"
>
and
DATE_FORMAT
(ei.report_time, '
%Y-%m
')
>
=#{time}
and
TO_CHAR
(ei.report_time, '
YYYY-MM
')=#{time}
</if>
<if
test=
"area!=null and area!=''"
>
and (eie.city_name LIKE
CONCAT('%',
#{area}
,
'%'
)
or eie.district_name LIKE
CONCAT('%',
#{area}
,
'%'
)
or eie.street_name LIKE
CONCAT('%',
#{area}
,
'%'
)
or eie.cell_name LIKE
CONCAT('%',
#{area}
,
'%'
)
and (eie.city_name LIKE
'%' ||
#{area}
||
'%'
or eie.district_name LIKE
'%' ||
#{area}
||
'%'
or eie.street_name LIKE
'%' ||
#{area}
||
'%'
or eie.cell_name LIKE
'%' ||
#{area}
||
'%'
or eie.community_name=#{area}
)
</if>
...
...
@@ -99,10 +100,10 @@
FROM call_information
<where>
<if
test=
"area!=null and area!=''"
>
and area LIKE
CONCAT(
'%'
,
#{area}
,
'%'
)
and area LIKE '%'
||
#{area}
||
'%'
</if>
<if
test=
"time!=null and time!=''"
>
and
DATE_FORMAT
(report_time, '
%Y-%m
')
>
=#{time}
and
TO_CHAR
(report_time, '
YYYY-MM
')=#{time}
</if>
</where>
GROUP BY id
...
...
@@ -117,15 +118,15 @@
where
ei.cancel_flag='0' and eie.del_flag='0' and ei.collection_mode=0
<if
test=
"area!=null and area!=''"
>
and (eie.city_name LIKE
CONCAT(
'%'
,
#{area}
,
'%'
)
or eie.district_name LIKE
CONCAT(
'%'
,
#{area}
,
'%'
)
or eie.street_name LIKE
CONCAT(
'%'
,
#{area}
,
'%'
)
or eie.cell_name LIKE
CONCAT(
'%'
,
#{area}
,
'%'
)
and (eie.city_name LIKE '%'
||
#{area}
||
'%'
or eie.district_name LIKE '%'
||
#{area}
||
'%'
or eie.street_name LIKE '%'
||
#{area}
||
'%'
or eie.cell_name LIKE '%'
||
#{area}
||
'%'
or eie.community_name=#{area}
)
</if>
<if
test=
"time!=null and time!=''"
>
and
DATE_FORMAT
(ei.report_time, '
%Y-%m
')>=#{time}
and
TO_CHAR
(ei.report_time, '
YYYY-MM
')>=#{time}
</if>
GROUP BY eie.id) aa
</select>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment