大赛管理功能

This commit is contained in:
tiger_zhou 2024-03-07 14:56:38 +08:00
parent 13451cbec0
commit 164c26a01e
1 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ import club.joylink.rtss.vo.race.RaceSeasonQueryVO;
import java.util.HashMap;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@ -73,7 +74,7 @@ public class RaceSeasonController {
@GetMapping("/{id}/html")
public Map<String, String> queryHtmlContent(@PathVariable("id") Long id) {
String html = this.raceSeasonService.queryHtmlContent(id);
return Map.of("html", html);
return Map.of("html", StringUtils.hasText(html) ? html : "");
}