修改数据权限
This commit is contained in:
parent
ad5f97aae6
commit
c886470008
@ -71,9 +71,9 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
|
||||
if(userId !=1) {
|
||||
Map<String, Object> landUser = xhpcChargingStationService.getLandUser(userId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long operatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long operatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
list= xhpcChargingPileMapper.selectXhpcChargingPileList(name, type, serialNumber, chargingStationId,operatorId,1);
|
||||
}else{
|
||||
list= xhpcChargingPileMapper.selectXhpcChargingPileList(name, type, serialNumber, chargingStationId,userId,2);
|
||||
|
||||
@ -112,9 +112,9 @@ public class XhpcChargingStationServiceImpl implements IXhpcChargingStationServi
|
||||
if(userId !=1) {
|
||||
Map<String, Object> landUser = xhpcChargingStationMapper.getLandUser(userId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long operatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long operatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcChargingStationMapper.selectXhpcChargingStationList(name, operatorName,operatorId,1);
|
||||
}else{
|
||||
|
||||
@ -90,9 +90,9 @@ public class XhpcHistoryOrderServiceImpl implements IXhpcHistoryOrderService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderMapper.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcHistoryOrderMapper.getListPage(phone,transactionNumber,1,chargingStationName,operatorId,source,startTime,endTime,logOperatorId,type,number);
|
||||
}else{
|
||||
|
||||
@ -83,9 +83,9 @@ public class XhpcRealTimeOrderServiceImpl implements IXhpcRealTimeOrderService {
|
||||
if(userId !=1) {
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcRealTimeOrderMapper.list(phone,transactionNumber,source,chargingStationName,terminalName,operatorId,startTime,endTime,number,status,logOperatorId,1);
|
||||
}else{
|
||||
|
||||
@ -44,9 +44,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcStatisticsServiceMapper.getTimeIntervalPage(chargingStationId, internetUserId, operatorId, startTime, endTime, 1,logOperatorId);
|
||||
}else{
|
||||
@ -166,9 +166,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcStatisticsServiceMapper.getDateIntervalPage(chargingStationId, internetUserId, operatorId, startTime, endTime, 1,logOperatorId);
|
||||
}else{
|
||||
@ -204,9 +204,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcStatisticsServiceMapper.getStationIntervalPage(chargingStationId,operatorUserId,internetUserId,operatorId,startTime,endTime,1,logOperatorId);
|
||||
}else{
|
||||
@ -239,9 +239,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcStatisticsServiceMapper.getOperatorIntervalPage(operatorUserId, operatorId, startTime, endTime, 1,logOperatorId);
|
||||
}else{
|
||||
@ -285,9 +285,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
list = xhpcStatisticsServiceMapper.getTerminalIntervalPage(chargingStationId, terminalId, operatorId, startTime, endTime, type,logOperatorId);
|
||||
}else{
|
||||
@ -312,9 +312,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
return AjaxResult.success(xhpcStatisticsServiceMapper.getChargingStationList(operatorId, logOperatorId, 1));
|
||||
}else{
|
||||
@ -336,9 +336,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
return AjaxResult.success(xhpcStatisticsServiceMapper.getOperatorList(operatorId, logOperatorId, 1));
|
||||
}else{
|
||||
@ -366,9 +366,9 @@ public class XhpcStatisticsServiceImpl implements IXhpcStatisticsService {
|
||||
if(userId !=1){
|
||||
Map<String, Object> landUser = xhpcHistoryOrderService.getLandUser(logUserId);
|
||||
if(landUser !=null){
|
||||
if(landUser.get("operatorId") !=null){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
if(landUser.get("userType") !=null){
|
||||
if("01".equals(landUser.get("userType").toString())){
|
||||
Long logOperatorId = Long.valueOf(landUser.get("operatorId").toString());
|
||||
//运营商看自己的场站
|
||||
return AjaxResult.success(xhpcStatisticsServiceMapper.getTerminalList(chargingStationId, logOperatorId, 1));
|
||||
}else{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user