mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-10 04:50:11 +08:00
Merge branch 'dev' of http://192.168.2.2:8099/jsowell/jsowell-charger-web into dev
This commit is contained in:
@@ -42,7 +42,7 @@ public class PileMerchantInfoController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('pile:merchant:list')")
|
@PreAuthorize("@ss.hasPermi('pile:merchant:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(PileMerchantInfo pileMerchantInfo) {
|
public TableDataInfo list(PileMerchantInfo pileMerchantInfo) {
|
||||||
startPage();
|
// startPage();
|
||||||
List<PileMerchantInfo> list = pileMerchantInfoService.selectPileMerchantInfoListWithAuth(pileMerchantInfo);
|
List<PileMerchantInfo> list = pileMerchantInfoService.selectPileMerchantInfoListWithAuth(pileMerchantInfo);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
|||||||
import com.jsowell.common.exception.BusinessException;
|
import com.jsowell.common.exception.BusinessException;
|
||||||
import com.jsowell.common.util.DateUtils;
|
import com.jsowell.common.util.DateUtils;
|
||||||
import com.jsowell.common.util.DictUtils;
|
import com.jsowell.common.util.DictUtils;
|
||||||
|
import com.jsowell.common.util.PageUtils;
|
||||||
import com.jsowell.common.util.StringUtils;
|
import com.jsowell.common.util.StringUtils;
|
||||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||||
import com.jsowell.pile.dto.CreateMerchantDTO;
|
import com.jsowell.pile.dto.CreateMerchantDTO;
|
||||||
@@ -77,12 +78,12 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<PileMerchantInfo> selectPileMerchantInfoListWithAuth(PileMerchantInfo pileMerchantInfo) {
|
public List<PileMerchantInfo> selectPileMerchantInfoListWithAuth(PileMerchantInfo pileMerchantInfo) {
|
||||||
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
|
// AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
|
||||||
if (authorizedMap == null) {
|
// if (authorizedMap == null) {
|
||||||
// 为空表示没有权限,返回空数组
|
// // 为空表示没有权限,返回空数组
|
||||||
return Lists.newArrayList();
|
// return Lists.newArrayList();
|
||||||
}
|
// }
|
||||||
pileMerchantInfo.setStationDeptIds(authorizedMap.getStationDeptIds());
|
// pileMerchantInfo.setStationDeptIds(authorizedMap.getStationDeptIds());
|
||||||
|
|
||||||
// 当前登录用户的运营商权限列表
|
// 当前登录用户的运营商权限列表
|
||||||
List<MerchantInfoVO> list = UserUtils.getMerchantInfoVOList();
|
List<MerchantInfoVO> list = UserUtils.getMerchantInfoVOList();
|
||||||
@@ -90,6 +91,7 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
|
|||||||
List<String> collect = list.stream().map(MerchantInfoVO::getDeptId).collect(Collectors.toList());
|
List<String> collect = list.stream().map(MerchantInfoVO::getDeptId).collect(Collectors.toList());
|
||||||
pileMerchantInfo.setMerchantDeptIds(collect);
|
pileMerchantInfo.setMerchantDeptIds(collect);
|
||||||
}
|
}
|
||||||
|
PageUtils.startPage();
|
||||||
return selectPileMerchantInfoList(pileMerchantInfo);
|
return selectPileMerchantInfoList(pileMerchantInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user