|
@@ -1303,7 +1303,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public void musicGroupRegister(HttpServletResponse response, ExportDto exportDto) throws IOException {
|
|
|
String organIds = getParam(exportDto.getQueryInfo(), "organIds", String.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- organIds = organizationService.getEmployeeOrgan(sysUser.getId(), organIds, sysUser.getIsSuperAdmin());
|
|
|
+ organIds = organizationService.getEmployeeOrgan(sysUser.getId(), organIds, sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1);
|
|
|
List<MusicGroupStatusEnum> musicGroupStatusList = new ArrayList<>();
|
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.APPLY);
|
|
|
musicGroupStatusList.add(MusicGroupStatusEnum.PAY);
|
|
@@ -1404,7 +1404,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public HttpResponseResult routeOrderList(Map<String, Object> info) {
|
|
|
StudentPaymentOrderQueryInfo queryInfo = JSONObject.parseObject(JSONObject.toJSONString(info), StudentPaymentOrderQueryInfo.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- queryInfo.setRoutingOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getRoutingOrganId(), sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setRoutingOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getRoutingOrganId(), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderService.getDao().getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1434,7 +1434,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public HttpResponseResult routeMallOrderList(Map<String, Object> info) {
|
|
|
StudentPaymentOrderQueryInfo queryInfo = JSONObject.parseObject(JSONObject.toJSONString(info), StudentPaymentOrderQueryInfo.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- queryInfo.setRoutingOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getRoutingOrganId(), sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setRoutingOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getRoutingOrganId(), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderService.getDao().getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1491,7 +1491,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
@Override
|
|
|
public HttpResponseResult exportVipStudentCourseManage(Map<String, Object> info) {
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- String organId = organizationService.getEmployeeOrgan(sysUser.getId(), getParam(info, "organId", String.class), sysUser.getIsSuperAdmin());
|
|
|
+ String organId = organizationService.getEmployeeOrgan(sysUser.getId(), getParam(info, "organId", String.class), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1);
|
|
|
ManagerDownload managerDownload = saveManagerDownload(ExportTypeEnum.VIP_STUDENT_COURSE_MANAGE, sysUser.getId());
|
|
|
Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
return this.asyncExport(() -> this.queryVipStudentCourseManage(organId, tenantId, managerDownload, ExportEnum.VIP_STUDENT_COURSE_MANAGE),
|
|
@@ -1501,7 +1501,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
@Override
|
|
|
public HttpResponseResult exportStudentSubCourse(Map<String, Object> info) {
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- String organId = organizationService.getEmployeeOrgan(sysUser.getId(), getParam(info, "organId", String.class), sysUser.getIsSuperAdmin());
|
|
|
+ String organId = organizationService.getEmployeeOrgan(sysUser.getId(), getParam(info, "organId", String.class), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1);
|
|
|
Integer tenantId = TenantContextHolder.getTenantId();
|
|
|
List<ExportStudentSubCourse> rows = activityUserMapperService.exportStudentSubCourse(organId, tenantId);
|
|
|
this.checkRows(rows);
|
|
@@ -1667,7 +1667,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public HttpResponseResult orderList(Map<String, Object> info) {
|
|
|
StudentPaymentOrderQueryInfo queryInfo = JSONObject.parseObject(JSONObject.toJSONString(info), StudentPaymentOrderQueryInfo.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderService.getDao().getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1695,7 +1695,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public HttpResponseResult mallOrderList(Map<String, Object> info) {
|
|
|
StudentPaymentOrderQueryInfo queryInfo = JSONObject.parseObject(JSONObject.toJSONString(info), StudentPaymentOrderQueryInfo.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderService.getDao().getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|
|
@@ -1724,7 +1724,7 @@ public class ExportServiceImpl implements ExportService {
|
|
|
public HttpResponseResult orderListSum(Map<String, Object> info) {
|
|
|
StudentPaymentOrderQueryInfo queryInfo = JSONObject.parseObject(JSONObject.toJSONString(info), StudentPaymentOrderQueryInfo.class);
|
|
|
SysUser sysUser = sysUserService.getUser();
|
|
|
- queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()));
|
|
|
+ queryInfo.setOrganId(organizationService.getEmployeeOrgan(sysUser.getId(), queryInfo.getOrganId(), sysUser.getIsSuperAdmin()&&sysUser.getTenantId() == -1));
|
|
|
if (StringUtils.isNotBlank(queryInfo.getSearch())) {
|
|
|
List<BasicUserDto> users = studentPaymentOrderService.getDao().getUsers(queryInfo.getSearch());
|
|
|
List<Integer> userIds = users.stream().map(BasicUserDto::getUserId).collect(Collectors.toList());
|