1. fix for new design
This commit is contained in:
2026-03-15 13:39:17 +08:00
parent 3a204f0411
commit 26d2be5a49
4 changed files with 9 additions and 7 deletions

View File

@@ -175,8 +175,8 @@ public class KioskApiController {
*/ */
@GetMapping("/price-list") @GetMapping("/price-list")
@Operation(summary = "价格查询") @Operation(summary = "价格查询")
public R<List<PriceListApiVO>> shapeList(Long id) { public R<List<PriceListApiVO>> priceList() {
List<PriceListApiVO> list = kioskApiService.priceList(id); List<PriceListApiVO> list = kioskApiService.priceList();
return R.data(list); return R.data(list);
} }

View File

@@ -46,6 +46,8 @@ public class PriceListApiVO implements Serializable {
private Long id; private Long id;
private String name;
private Integer shape; private Integer shape;
private Integer size; private Integer size;

View File

@@ -1,6 +1,5 @@
package org.springblade.modules.kiosk.service; package org.springblade.modules.kiosk.service;
import jakarta.validation.Valid;
import org.springblade.modules.kiosk.pojo.dto.OrderApiRequest; import org.springblade.modules.kiosk.pojo.dto.OrderApiRequest;
import org.springblade.modules.kiosk.pojo.dto.RefillApiRequest; import org.springblade.modules.kiosk.pojo.dto.RefillApiRequest;
import org.springblade.modules.kiosk.pojo.vo.*; import org.springblade.modules.kiosk.pojo.vo.*;
@@ -35,7 +34,7 @@ public interface IKioskApiService {
Long upload(String fileName, InputStream stream); Long upload(String fileName, InputStream stream);
List<PriceListApiVO> priceList(Long id); List<PriceListApiVO> priceList();
Integer autoCleanSeconds(); Integer autoCleanSeconds();

View File

@@ -1,7 +1,6 @@
package org.springblade.modules.kiosk.service.impl; package org.springblade.modules.kiosk.service.impl;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import jakarta.mail.MessagingException;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springblade.core.log.exception.ServiceException; import org.springblade.core.log.exception.ServiceException;
@@ -369,12 +368,14 @@ public class KioskServiceImpl implements IKioskApiService {
} }
@Override @Override
public List<PriceListApiVO> priceList(Long id) { public List<PriceListApiVO> priceList() {
List<PriceListEntity> list = priceListService.list(Wrappers.<PriceListEntity>lambdaQuery().eq(PriceListEntity::getIsDeleted, 0).eq(PriceListEntity::getCategoryId, id).eq(PriceListEntity::getStatus, 1) List<PriceListEntity> list = priceListService.list(Wrappers.<PriceListEntity>lambdaQuery().eq(PriceListEntity::getIsDeleted, 0).eq(PriceListEntity::getStatus, 1)
// .eq(PriceListEntity::getDeptId, Long.valueOf(AuthUtil.getDeptId()))); // .eq(PriceListEntity::getDeptId, Long.valueOf(AuthUtil.getDeptId())));
.eq(PriceListEntity::getDeptId, -1)); .eq(PriceListEntity::getDeptId, -1));
return list.stream().map(p -> { return list.stream().map(p -> {
CategoryEntity category = categoryService.getById(p.getCategoryId());
PriceListApiVO vo = new PriceListApiVO(); PriceListApiVO vo = new PriceListApiVO();
vo.setName(category.getName());
vo.setId(p.getId()); vo.setId(p.getId());
vo.setShape(p.getShape()); vo.setShape(p.getShape());
vo.setSize(p.getSize()); vo.setSize(p.getSize());