Commit 6eb52ad8 by 刘宇峰

Merge branch 'develop' into 'master'

Develop

See merge request !3
2 parents d8147ed7 0a12dc9f
......@@ -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);
}
......
......@@ -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>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!