fix:数据统计区分租户
This commit is contained in:
@@ -240,6 +240,7 @@ public class SimulationNodeController implements ISimulationNodeFeignClient {
|
||||
@PostMapping("/getUserGroupDifficultyStatistics")
|
||||
@Operation(summary = "用户组难度系数统计", description = "用户组难度系数统计")
|
||||
public SdmResponse getUserGroupDifficultyStatistics(@RequestBody @Validated GetUserGroupTaskCompleteStatisticsReq req) {
|
||||
req.setTenantId(ThreadLocalContext.getTenantId());
|
||||
return nodeService.getUserGroupDifficultyStatistics(req);
|
||||
}
|
||||
|
||||
|
||||
@@ -524,6 +524,8 @@
|
||||
from simulation_task task
|
||||
left join simulation_task_member task_member on task.uuid = task_member.task_id
|
||||
<where>
|
||||
task.tenant_Id = #{req.tenantId}
|
||||
and
|
||||
task_member.user_id in
|
||||
(
|
||||
<foreach collection='req.userIds' item='userId' index='index' separator=','>
|
||||
|
||||
Reference in New Issue
Block a user