Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8763fd66e6 | ||
|
|
7ac528635f |
+32
-32
@@ -435,10 +435,10 @@ public class StClientMemberBalanceController {
|
||||
query.setStartTime(query.getDates().get(0));
|
||||
query.setEndTime(query.getDates().get(1));
|
||||
}
|
||||
//余: 去掉鉴权, 要能看到所有的
|
||||
// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// String canteenId = sysUser.getCanteenId();
|
||||
// query.setCanteenId(canteenId);
|
||||
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
String canteenId = sysUser.getCanteenId();
|
||||
query.setCanteenId(canteenId);
|
||||
//消费=101
|
||||
query.setStatus(101);
|
||||
return Result.OK(iStClientMemberTransactionRecordService.pageQueryNew(query));
|
||||
@@ -457,20 +457,20 @@ public class StClientMemberBalanceController {
|
||||
query.setStartTime(split[0]);
|
||||
query.setEndTime(split[1]);
|
||||
}
|
||||
// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// //餐品总库只查询内置食堂
|
||||
// if(sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_0) || sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_1)){
|
||||
// // 后期分数据权限时在解开注释,此处管理员账户能看到所有食堂数据
|
||||
//// ScreenVo screenVo = new ScreenVo();
|
||||
//// screenVo.setId(CommonConstant.INLAY_CANTEEN_ID);
|
||||
//// canteenIdList.add(screenVo);
|
||||
// } else if (sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_4)) {
|
||||
// //查询当前登录用户的食堂列表
|
||||
// String canteenId = sysUser.getCanteenId();
|
||||
// query.setCanteenId(canteenId);
|
||||
// } else {
|
||||
// return Result.OK();
|
||||
// }
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
//餐品总库只查询内置食堂
|
||||
if(sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_0) || sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_1)){
|
||||
// 后期分数据权限时在解开注释,此处管理员账户能看到所有食堂数据
|
||||
// ScreenVo screenVo = new ScreenVo();
|
||||
// screenVo.setId(CommonConstant.INLAY_CANTEEN_ID);
|
||||
// canteenIdList.add(screenVo);
|
||||
} else if (sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_4)) {
|
||||
//查询当前登录用户的食堂列表
|
||||
String canteenId = sysUser.getCanteenId();
|
||||
query.setCanteenId(canteenId);
|
||||
} else {
|
||||
return Result.OK();
|
||||
}
|
||||
query.setStatus(1);//消费=101
|
||||
List<StClientMemberTransactionRecordVO> statisticsCanteenBusiness = iStClientMemberTransactionRecordService.queryList(query);
|
||||
StClientMemberTransactionRecordVO sumResult = GenericSumUtil.sumList(statisticsCanteenBusiness, StClientMemberTransactionRecordVO.class);
|
||||
@@ -497,20 +497,20 @@ public class StClientMemberBalanceController {
|
||||
if(StringUtils.isNotBlank(query.getEndDate())){
|
||||
query.setEndTime(query.getEndDate());
|
||||
}
|
||||
// LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
// //餐品总库只查询内置食堂
|
||||
// if(sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_0) || sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_1)){
|
||||
// // 后期分数据权限时在解开注释,此处管理员账户能看到所有食堂数据
|
||||
//// ScreenVo screenVo = new ScreenVo();
|
||||
//// screenVo.setId(CommonConstant.INLAY_CANTEEN_ID);
|
||||
//// canteenIdList.add(screenVo);
|
||||
// } else if (sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_4)) {
|
||||
// //查询当前登录用户的食堂列表
|
||||
// String canteenId = sysUser.getCanteenId();
|
||||
// query.setCanteenId(canteenId);
|
||||
// } else {
|
||||
// return;
|
||||
// }
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
//餐品总库只查询内置食堂
|
||||
if(sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_0) || sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_1)){
|
||||
// 后期分数据权限时在解开注释,此处管理员账户能看到所有食堂数据
|
||||
// ScreenVo screenVo = new ScreenVo();
|
||||
// screenVo.setId(CommonConstant.INLAY_CANTEEN_ID);
|
||||
// canteenIdList.add(screenVo);
|
||||
} else if (sysUser.getUserIdentity().equals(CommonConstant.USER_IDENTITY_4)) {
|
||||
//查询当前登录用户的食堂列表
|
||||
String canteenId = sysUser.getCanteenId();
|
||||
query.setCanteenId(canteenId);
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
query.setStatus(1);//消费=101
|
||||
List<StClientMemberTransactionRecordVO> statisticsCanteenBusiness = iStClientMemberTransactionRecordService.queryList(query);
|
||||
|
||||
|
||||
+6
@@ -74,6 +74,12 @@ public class StClientMemberTransactionRecordServiceImpl extends JeecgServiceImpl
|
||||
public IPage<StClientMemberTransactionRecordVO> pageQueryNew(StClientMemberTransactionRecordDTO query) {
|
||||
Page<StClientMemberTransactionRecordVO> page = new Page<>(query.getPageNo(), query.getPageSize());
|
||||
page.setSearchCount(false);
|
||||
if(StringUtils.isNotBlank(query.getDepartId())){
|
||||
List<String> allCascadeDeptIds = iSysPayDepartService.getAllCascadeDeptIds(query.getDepartId());
|
||||
if(org.apache.commons.collections4.CollectionUtils.isNotEmpty(allCascadeDeptIds)){
|
||||
query.setList(allCascadeDeptIds);
|
||||
}
|
||||
}
|
||||
//计算总数
|
||||
long l = baseMapper.pageListCount(query);
|
||||
page.setTotal(l);
|
||||
|
||||
Reference in New Issue
Block a user