mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +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')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(PileMerchantInfo pileMerchantInfo) {
|
||||
startPage();
|
||||
// startPage();
|
||||
List<PileMerchantInfo> list = pileMerchantInfoService.selectPileMerchantInfoListWithAuth(pileMerchantInfo);
|
||||
return getDataTable(list);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||
import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.common.util.DictUtils;
|
||||
import com.jsowell.common.util.PageUtils;
|
||||
import com.jsowell.common.util.StringUtils;
|
||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||
import com.jsowell.pile.dto.CreateMerchantDTO;
|
||||
@@ -77,12 +78,12 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
|
||||
*/
|
||||
@Override
|
||||
public List<PileMerchantInfo> selectPileMerchantInfoListWithAuth(PileMerchantInfo pileMerchantInfo) {
|
||||
AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
|
||||
if (authorizedMap == null) {
|
||||
// 为空表示没有权限,返回空数组
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
pileMerchantInfo.setStationDeptIds(authorizedMap.getStationDeptIds());
|
||||
// AuthorizedDeptVO authorizedMap = UserUtils.getAuthorizedMap();
|
||||
// if (authorizedMap == null) {
|
||||
// // 为空表示没有权限,返回空数组
|
||||
// return Lists.newArrayList();
|
||||
// }
|
||||
// pileMerchantInfo.setStationDeptIds(authorizedMap.getStationDeptIds());
|
||||
|
||||
// 当前登录用户的运营商权限列表
|
||||
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());
|
||||
pileMerchantInfo.setMerchantDeptIds(collect);
|
||||
}
|
||||
PageUtils.startPage();
|
||||
return selectPileMerchantInfoList(pileMerchantInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user