Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-reportcenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6eb52ad8
authored
Dec 18, 2020
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!3
2 parents
d8147ed7
0a12dc9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
src/main/resources/mapper/ChannelRiskDataMapper.xml
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
View file @
6eb52ad
...
...
@@ -9,7 +9,6 @@ import com.glsx.plat.core.web.R;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang.StringUtils
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -41,6 +40,7 @@ public class ChannelRiskDataController {
@ApiOperation
(
value
=
"查询所有渠道"
)
public
R
findAllChannel
()
{
List
<
String
>
allChannel
=
channelRiskDataService
.
findAllChannel
();
log
.
info
(
"渠道名称{}"
,
allChannel
.
toString
());
return
R
.
ok
().
data
(
allChannel
);
}
...
...
src/main/resources/mapper/ChannelRiskDataMapper.xml
View file @
6eb52ad
...
...
@@ -33,7 +33,7 @@
active_date,owner_name,vin,sn,address,lng,lat,zone
FROM t_channel_risk_data
<if
test=
"isExcep == 'true'"
>
where type=1 and labels
!
=-1
where type=1 and labels=-1
</if>
<if
test=
"isExcep == 'false'"
>
where type=0
...
...
@@ -116,14 +116,14 @@
<if
test=
"shopName !=null and shopName !=''"
>
and labels like CONCAT('%',#{shopName},'%')
</if>
group by labels
group by labels
order by orderCount desc
</select>
<select
id=
"findOutletsDataDetail"
resultMap=
"BaseResultMap"
>
select active_date,owner_name,vin,sn,address,lng,t2.adcode,
lat
from t_channel_risk_data t1 left join base_provinces t2 on t1.prov=t2.name
where type=1 and labels
!
=-1
where type=1 and labels=-1
<if
test=
"item.provinceName !=null and item.provinceName !=''"
>
and prov=#{item.provinceName}
</if>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment