|  | @@ -10,10 +10,8 @@ import com.yonge.toolset.base.page.PageInfo;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RequestBody;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | +import org.springframework.util.StringUtils;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Api(tags = "学生端训练记录")
 | 
	
		
			
				|  |  |  @RequestMapping("${app-config.url.tenant:}/studentMusicCompareRecord")
 | 
	
	
		
			
				|  | @@ -73,5 +71,15 @@ public class SysMusicCompareRecordController extends BaseController {
 | 
	
		
			
				|  |  |          queryInfo.setUserId(sysUser.getId());
 | 
	
		
			
				|  |  |          return succeed(sysMusicCompareRecordService.studentTrainData(queryInfo));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    @ApiOperation("学员训练数据统计每周")
 | 
	
		
			
				|  |  | +    @GetMapping("studentTrainDataByWeek")
 | 
	
		
			
				|  |  | +    public HttpResponseResult studentTrainDataByWeek(SysMusicCompareRecordQueryInfo.TeacherCompareRecordQueryInfo queryInfo){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if (StringUtils.isEmpty(queryInfo.getStartTime())) {
 | 
	
		
			
				|  |  | +            return failed("时间不能为空");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        queryInfo.setClientId("student");
 | 
	
		
			
				|  |  | +        return succeed(sysMusicCompareRecordService.studentTrainData(queryInfo));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |