fix: 修复更新信息异常

This commit is contained in:
han0
2024-11-25 15:40:25 +08:00
parent 0704c144d1
commit 5e525486dc

View File

@@ -226,9 +226,8 @@ public class PublicController {
@GetMapping("/update-info") @GetMapping("/update-info")
public HttpResponse updateInfo () throws Exception { public HttpResponse updateInfo () throws Exception {
var query = new LambdaQueryWrapper<PricePublish>(); var query = new LambdaQueryWrapper<PricePublish>();
query.orderByDesc(PricePublish::getCreateTime); query.orderByDesc(PricePublish::getYear, PricePublish::getMonth);
var items = pricePublishService.list(); var data = pricePublishService.getOne(query, false);
var data = items.get(0);
var result = new PublicUpdateInfo(data); var result = new PublicUpdateInfo(data);