|
@@ -8,9 +8,12 @@ import com.ym.mec.biz.service.SysMusicCompareRecordService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
+
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -45,7 +48,13 @@ public class SysMusicCompareRecordController extends BaseController {
|
|
|
}
|
|
|
record.setUserId(sysUser.getId());
|
|
|
record.setClientId("student");
|
|
|
- return succeed(sysMusicCompareRecordService.insert(record));
|
|
|
+
|
|
|
+ sysMusicCompareRecordService.insert(record);
|
|
|
+
|
|
|
+ ModelMap model = new ModelMap();
|
|
|
+ model.put("totalPlayTimeOfCurrentDate", sysMusicCompareRecordService.queryCurrentDatePlayTimeByUserId(sysUser.getId()));
|
|
|
+
|
|
|
+ return succeed(model);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "用户最后一次评测数据")
|