fix: 修复更新信息异常
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user