|
@@ -11,6 +11,7 @@ import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.controller.BaseController;
|
|
import com.ym.mec.common.entity.UploadReturnBean;
|
|
import com.ym.mec.common.entity.UploadReturnBean;
|
|
import com.ym.mec.common.redis.service.RedisCache;
|
|
import com.ym.mec.common.redis.service.RedisCache;
|
|
|
|
+import com.ym.mec.common.tenant.TenantContextHolder;
|
|
import com.ym.mec.im.ImFeignService;
|
|
import com.ym.mec.im.ImFeignService;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
import com.yonge.log.service.HistoryMessageService;
|
|
import com.yonge.log.service.HistoryMessageService;
|
|
@@ -346,7 +347,9 @@ public class TaskController extends BaseController {
|
|
//学生服务信息统计
|
|
//学生服务信息统计
|
|
@GetMapping("/exercisesSituationStatistics")
|
|
@GetMapping("/exercisesSituationStatistics")
|
|
public void exercisesSituationStatistics(String monday){
|
|
public void exercisesSituationStatistics(String monday){
|
|
|
|
+ TenantContextHolder.setTenantId(1);
|
|
studentServeService.exercisesSituationStatistics2(monday,null,1);
|
|
studentServeService.exercisesSituationStatistics2(monday,null,1);
|
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
// studentServeService.exercisesSituationStatistics2(null,new ArrayList<>(Arrays.asList(1095257)));
|
|
// studentServeService.exercisesSituationStatistics2(null,new ArrayList<>(Arrays.asList(1095257)));
|
|
// studentServeService.exercisesSituationStatistics(null);
|
|
// studentServeService.exercisesSituationStatistics(null);
|
|
}
|
|
}
|
|
@@ -387,7 +390,9 @@ public class TaskController extends BaseController {
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
|
|
+ TenantContextHolder.setTenantId(tenantInfo.getId());
|
|
operatingReportService.statistics(tenantInfo.getId());
|
|
operatingReportService.statistics(tenantInfo.getId());
|
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -407,7 +412,9 @@ public class TaskController extends BaseController {
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
|
|
+ TenantContextHolder.setTenantId(tenantInfo.getId());
|
|
indexBaseMonthDataService.indexBaseDataTask(tenantInfo.getId(), month, dataTypeSet);
|
|
indexBaseMonthDataService.indexBaseDataTask(tenantInfo.getId(), month, dataTypeSet);
|
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -454,7 +461,9 @@ public class TaskController extends BaseController {
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
|
|
+ TenantContextHolder.setTenantId(tenantInfo.getId());
|
|
courseScheduleTeacherSalaryService.salaryMarkNew(startDay,tenantInfo.getId());
|
|
courseScheduleTeacherSalaryService.salaryMarkNew(startDay,tenantInfo.getId());
|
|
|
|
+ TenantContextHolder.clearTenantId();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -480,10 +489,10 @@ public class TaskController extends BaseController {
|
|
@ApiOperation("每天10点推送排课、续费提醒")
|
|
@ApiOperation("每天10点推送排课、续费提醒")
|
|
@GetMapping(value = "/musicSchoolTermPush")
|
|
@GetMapping(value = "/musicSchoolTermPush")
|
|
public void musicSchoolTermPush() {
|
|
public void musicSchoolTermPush() {
|
|
-// Object o = redisCache.get("musicSchoolTermPush");
|
|
|
|
-// if(o != null){
|
|
|
|
-// return;
|
|
|
|
-// }
|
|
|
|
|
|
+ Object o = redisCache.get("musicSchoolTermPush");
|
|
|
|
+ if(o != null){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
List<TenantInfo> tenantInfos = tenantInfoService.list(new QueryWrapper<TenantInfo>().eq("state_",1));
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
if(tenantInfos != null && tenantInfos.size() > 0){
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|
|
for (TenantInfo tenantInfo : tenantInfos) {
|