update:
1. fix for new design
This commit is contained in:
@@ -175,8 +175,8 @@ public class KioskApiController {
|
||||
*/
|
||||
@GetMapping("/price-list")
|
||||
@Operation(summary = "价格查询")
|
||||
public R<List<PriceListApiVO>> shapeList(Long id) {
|
||||
List<PriceListApiVO> list = kioskApiService.priceList(id);
|
||||
public R<List<PriceListApiVO>> priceList() {
|
||||
List<PriceListApiVO> list = kioskApiService.priceList();
|
||||
return R.data(list);
|
||||
}
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public class PriceListApiVO implements Serializable {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer shape;
|
||||
|
||||
private Integer size;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
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.RefillApiRequest;
|
||||
import org.springblade.modules.kiosk.pojo.vo.*;
|
||||
@@ -35,7 +34,7 @@ public interface IKioskApiService {
|
||||
|
||||
Long upload(String fileName, InputStream stream);
|
||||
|
||||
List<PriceListApiVO> priceList(Long id);
|
||||
List<PriceListApiVO> priceList();
|
||||
|
||||
Integer autoCleanSeconds();
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
package org.springblade.modules.kiosk.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||
import jakarta.mail.MessagingException;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springblade.core.log.exception.ServiceException;
|
||||
@@ -369,12 +368,14 @@ public class KioskServiceImpl implements IKioskApiService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<PriceListApiVO> priceList(Long id) {
|
||||
List<PriceListEntity> list = priceListService.list(Wrappers.<PriceListEntity>lambdaQuery().eq(PriceListEntity::getIsDeleted, 0).eq(PriceListEntity::getCategoryId, id).eq(PriceListEntity::getStatus, 1)
|
||||
public List<PriceListApiVO> priceList() {
|
||||
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, -1));
|
||||
return list.stream().map(p -> {
|
||||
CategoryEntity category = categoryService.getById(p.getCategoryId());
|
||||
PriceListApiVO vo = new PriceListApiVO();
|
||||
vo.setName(category.getName());
|
||||
vo.setId(p.getId());
|
||||
vo.setShape(p.getShape());
|
||||
vo.setSize(p.getSize());
|
||||
|
||||
Reference in New Issue
Block a user