Commit 7d6a0f21 authored by hezhuozhi's avatar hezhuozhi

提交大屏监控 人大金仓适配及免登录问题

parent 13501e0c
...@@ -490,7 +490,7 @@ public class MonitorFanIdxController extends BaseController { ...@@ -490,7 +490,7 @@ public class MonitorFanIdxController extends BaseController {
SimpleDateFormat myFmt2 = new SimpleDateFormat("yyyy"); SimpleDateFormat myFmt2 = new SimpleDateFormat("yyyy");
String monthy = myFmt2.format(new Date()); String monthy = myFmt2.format(new Date());
QueryWrapper<StationPlan> wrapper = new QueryWrapper<>(); QueryWrapper<StationPlan> wrapper = new QueryWrapper<>();
wrapper.select("sum(value) as value ,monthly"); wrapper.select("sum(value) as `value` ,monthly");
wrapper.eq("year", monthy); wrapper.eq("year", monthy);
wrapper.eq("station_basic_id", stationBasic.getSequenceNbr()); wrapper.eq("station_basic_id", stationBasic.getSequenceNbr());
wrapper.groupBy("monthly"); wrapper.groupBy("monthly");
......
...@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.jxiop.biz.controller; ...@@ -3,7 +3,6 @@ package com.yeejoin.amos.boot.module.jxiop.biz.controller;
import com.yeejoin.amos.component.feign.model.FeignClientResult; import com.yeejoin.amos.component.feign.model.FeignClientResult;
import com.yeejoin.amos.feign.privilege.Privilege; import com.yeejoin.amos.feign.privilege.Privilege;
import com.yeejoin.amos.feign.privilege.model.IdPasswordAuthModel; import com.yeejoin.amos.feign.privilege.model.IdPasswordAuthModel;
import com.yeejoin.amos.feign.privilege.util.DesUtil;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
...@@ -42,7 +41,7 @@ public class OAuthResource { ...@@ -42,7 +41,7 @@ public class OAuthResource {
public static final String SECRETKEY = "qaz"; public static final String SECRETKEY = "qaz";
private final static String AUTHORIZE = "http://%s/authorize?redirect_uri=%s"; private final static String AUTHORIZE = "http://%s/authorize?redirect_uri=%s";
private final static String AUTOLOGIN = "http://%s/autologin?token=%s&userId=%s&redirectURI=%s"; private final static String AUTOLOGIN = "http://%s/autologin?token=%s&userId=%s&redirectURI=%s";
private final static String BIGSCREEN = "/vizagfun/jepc?appId=jepc1&top=monitor&bottom=ovarall"; private final static String BIGSCREEN = "/vizagfun/jepc?appId=jepc1&token=%s&top=monitor&bottom=ovarall";
@Value("${appKey:AMOS_ADMIN}") @Value("${appKey:AMOS_ADMIN}")
private String APP_KEY; private String APP_KEY;
@Value("${product:AMOS-WEB-ADMIN}") @Value("${product:AMOS-WEB-ADMIN}")
...@@ -77,7 +76,7 @@ public class OAuthResource { ...@@ -77,7 +76,7 @@ public class OAuthResource {
} }
String userId = (String) feignClientResult.getResult().get("userId"); String userId = (String) feignClientResult.getResult().get("userId");
String amosToken = (String) feignClientResult.getResult().get("token"); String amosToken = (String) feignClientResult.getResult().get("token");
redirectUrl = String.format(AUTOLOGIN, host, amosToken, userId, getRedirectURI(BIGSCREEN)); redirectUrl = String.format(AUTOLOGIN, host, amosToken, userId, getRedirectURI(String.format(BIGSCREEN,amosToken)));
log.info("重定向访问地址:{}", redirectUrl); log.info("重定向访问地址:{}", redirectUrl);
response.sendRedirect(redirectUrl); response.sendRedirect(redirectUrl);
} }
......
...@@ -857,7 +857,7 @@ public class LargeScreenImpl { ...@@ -857,7 +857,7 @@ public class LargeScreenImpl {
// 计划完成量 // 计划完成量
Map<String, Double> mapwc = new HashMap<>(); Map<String, Double> mapwc = new HashMap<>();
QueryWrapper<StationPlan> wrapper = new QueryWrapper<>(); QueryWrapper<StationPlan> wrapper = new QueryWrapper<>();
wrapper.select(" monthly ,sum(value) value "); wrapper.select(" monthly ,sum(value) `value` ");
wrapper.eq("year", monthy); wrapper.eq("year", monthy);
wrapper.groupBy("monthly"); wrapper.groupBy("monthly");
List<Map<String, Object>> list1 = StationPlanMapper.selectMaps(wrapper); List<Map<String, Object>> list1 = StationPlanMapper.selectMaps(wrapper);
...@@ -943,7 +943,7 @@ public class LargeScreenImpl { ...@@ -943,7 +943,7 @@ public class LargeScreenImpl {
// 计划完成量 // 计划完成量
Map<String, Double> mapwc = new HashMap<>(); Map<String, Double> mapwc = new HashMap<>();
QueryWrapper<StationPlan> wrapper = new QueryWrapper<>(); QueryWrapper<StationPlan> wrapper = new QueryWrapper<>();
wrapper.select(" monthly ,sum(value) value "); wrapper.select(" monthly ,sum(value) `value` ");
wrapper.eq("year", monthy); wrapper.eq("year", monthy);
wrapper.in("station_basic_id", idsStationId); wrapper.in("station_basic_id", idsStationId);
wrapper.groupBy("monthly"); wrapper.groupBy("monthly");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment