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")
public HttpResponse updateInfo () throws Exception {
var query = new LambdaQueryWrapper<PricePublish>();
query.orderByDesc(PricePublish::getCreateTime);
var items = pricePublishService.list();
var data = items.get(0);
query.orderByDesc(PricePublish::getYear, PricePublish::getMonth);
var data = pricePublishService.getOne(query, false);
var result = new PublicUpdateInfo(data);