fix:
1. fix bugs
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user