修改老师端饼状图接口返回格式

master
xiaoCJ 1 year ago
parent b54a5d5741
commit c382c64818

@ -1,6 +1,5 @@
package com.sztzjy.fund_investment.controller; package com.sztzjy.fund_investment.controller;
import cn.hutool.core.date.DateTime;
import com.sztzjy.fund_investment.annotation.AnonymousAccess; import com.sztzjy.fund_investment.annotation.AnonymousAccess;
import com.sztzjy.fund_investment.entity.*; import com.sztzjy.fund_investment.entity.*;
import com.sztzjy.fund_investment.mapper.IpLogMapper; import com.sztzjy.fund_investment.mapper.IpLogMapper;
@ -11,10 +10,10 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.time.*; import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import java.util.*; import java.util.*;
import java.util.concurrent.ThreadLocalRandom;
//用于生成日志文件 //用于生成日志文件
@RestController @RestController

@ -1,12 +0,0 @@
package com.sztzjy.fund_investment.service.serviceImpl;
import org.springframework.stereotype.Service;
/**
* @Author xcj
* @Date 2023/11/14
*/
@Service
public class TrainingReportService {
}

@ -137,7 +137,7 @@ public class ClassScoreServiceImpl implements ClassScoreService {
criteria.andClassIdEqualTo(classId).andStartTimeEqualTo(time); criteria.andClassIdEqualTo(classId).andStartTimeEqualTo(time);
List<TeaClassScore> teaClassScores = teaClassScoreMapper.selectByExample(teaClassScoreExample); List<TeaClassScore> teaClassScores = teaClassScoreMapper.selectByExample(teaClassScoreExample);
if (teaClassScores.isEmpty()){ if (teaClassScores.isEmpty()){
return null; return new TeaClassScoreDto();
} }
TeaClassScore teaClassScore = teaClassScores.get(0); TeaClassScore teaClassScore = teaClassScores.get(0);
TeaClassScoreDto teaClassScoreDto = new TeaClassScoreDto(); TeaClassScoreDto teaClassScoreDto = new TeaClassScoreDto();

Loading…
Cancel
Save