1. fix bugs
This commit is contained in:
2025-10-09 14:16:39 +08:00
parent b8367d3766
commit c0321b9884

View File

@@ -115,8 +115,7 @@ public class KioskServiceImpl implements IKioskApiService {
@Override
public List<PhotoAttachmentApiVO> photoList() {
BladeUser user = AuthUtil.getUser();
List<PhotoAttachmentEntity> list = photoAttachmentService.list(Wrappers.<PhotoAttachmentEntity>query().lambda().eq(PhotoAttachmentEntity::getCreateUser, user.getUserId()).eq(PhotoAttachmentEntity::getStatus, 1));
List<PhotoAttachmentEntity> list = photoAttachmentService.list(Wrappers.<PhotoAttachmentEntity>query().lambda().eq(PhotoAttachmentEntity::getCreateUser, AuthUtil.getUserId()).eq(PhotoAttachmentEntity::getStatus, 1));
return list.stream().map(photo -> {
PhotoAttachmentApiVO vo = new PhotoAttachmentApiVO();
vo.setLink(photo.getLink());
@@ -140,8 +139,7 @@ public class KioskServiceImpl implements IKioskApiService {
@Transactional(timeout = 30, rollbackFor = Exception.class)
public String submitOrder(OrderApiRequest request) {
try {
BladeUser user = AuthUtil.getUser();
photoAttachmentService.update(Wrappers.<PhotoAttachmentEntity>lambdaUpdate().eq(PhotoAttachmentEntity::getCreateUser, user.getUserId()).set(PhotoAttachmentEntity::getStatus, 2));
photoAttachmentService.update(Wrappers.<PhotoAttachmentEntity>lambdaUpdate().eq(PhotoAttachmentEntity::getCreateUser, AuthUtil.getUserId()).set(PhotoAttachmentEntity::getStatus, 2));
OrderEntity order = new OrderEntity();
order.setUserPhone(request.getPhone());
order.setUserEmail(request.getEmail());