Commit 4fb69dff authored by maoying's avatar maoying

修改数字换流站默认用户登录

parent a0559c1d
...@@ -79,7 +79,8 @@ public class LoginController { ...@@ -79,7 +79,8 @@ public class LoginController {
} }
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder
.getRequestAttributes()).getRequest(); .getRequestAttributes()).getRequest();
String token = ObjectUtils.isEmpty(request.getHeader("token"))?"szhlz":request.getHeader("token").toString() ; String token = "szhlz";
//ObjectUtils.isEmpty(request.getHeader("token"))?"szhlz":request.getHeader("token").toString() ;
ReginParams reginParams; ReginParams reginParams;
reginParams = JSON.parseObject(redisTemplate.opsForValue().get(buildKey(userId, token)), ReginParams.class); reginParams = JSON.parseObject(redisTemplate.opsForValue().get(buildKey(userId, token)), ReginParams.class);
if(reginParams == null){ if(reginParams == null){
......
...@@ -65,8 +65,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -65,8 +65,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
@Qualifier("contingencyAction") @Qualifier("contingencyAction")
@Autowired @Autowired
private CustomerAction customerAction; private CustomerAction customerAction;
@Value("${now.gateway.address}")
private String gateWayAddress;
@Value("${systemctl.sync.switch}") @Value("${systemctl.sync.switch}")
private Boolean dataSyncSwitch; private Boolean dataSyncSwitch;
...@@ -647,13 +646,6 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService { ...@@ -647,13 +646,6 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
if (ValidationUtil.isEmpty(planList)) { if (ValidationUtil.isEmpty(planList)) {
return; return;
} }
// planList.forEach(x -> {
// String picture = x.getPicture();
// if (StringUtils.isNotEmpty(picture)) {
// x.setPicture(gateWayAddress + picture);
// }
//
// });
List<Long> idList = new ArrayList<>(); List<Long> idList = new ArrayList<>();
planList.forEach(e -> idList.add(e.getId())); planList.forEach(e -> idList.add(e.getId()));
Map<Object, List<PlanDoc>> docMapList = null; Map<Object, List<PlanDoc>> docMapList = null;
......
...@@ -110,8 +110,5 @@ outSystem.fegin.name=unKnow ...@@ -110,8 +110,5 @@ outSystem.fegin.name=unKnow
outSystem.user.password=a1234560 outSystem.user.password=a1234560
privilege.fegin.name=AMOS-API-PRIVILEGE privilege.fegin.name=AMOS-API-PRIVILEGE
#当前gateway的IP地址
now.gateway.address=http://172.16.11.201:10005/
#预案指标配置 #预案指标配置
plan.index =ONL_OilDischargeDeviceOilPillowDischargeOpen,CAFS_CAFSFireGunEquipmentValveStatus,DCCP_DCCPStreamTransformerCharged,WSS_DelugeValve_Start,ONL_OilDischargeDeviceOilyPillowDischargeOpen plan.index =ONL_OilDischargeDeviceOilPillowDischargeOpen,CAFS_CAFSFireGunEquipmentValveStatus,DCCP_DCCPStreamTransformerCharged,WSS_DelugeValve_Start,ONL_OilDischargeDeviceOilyPillowDischargeOpen
\ No newline at end of file
...@@ -231,8 +231,7 @@ ...@@ -231,8 +231,7 @@
LEFT JOIN wl_stock_detail sd ON sd.equipment_specific_id = wles.id LEFT JOIN wl_stock_detail sd ON sd.equipment_specific_id = wles.id
LEFT JOIN wl_warehouse_structure ws ON ws.id = sd.warehouse_structure_id LEFT JOIN wl_warehouse_structure ws ON ws.id = sd.warehouse_structure_id
WHERE WHERE
wles.org_code = '10' wlei.type_code != 'BREAKDOWN'
AND wlei.type_code != 'BREAKDOWN'
AND wlei.type_code != 'FIREALARM' AND wlei.type_code != 'FIREALARM'
AND ( AND (
wlesi.`value` = 'true' wlesi.`value` = 'true'
......
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