|
|
@ -17,6 +17,7 @@ |
|
|
|
package com.logpm.distribution.feign; |
|
|
|
package com.logpm.distribution.feign; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.logpm.distribution.dto.DistributionCancelReservationPackageDTO; |
|
|
|
import com.logpm.distribution.dto.DistributionCancelReservationPackageDTO; |
|
|
|
import com.logpm.distribution.entity.DistributionReservationEntity; |
|
|
|
import com.logpm.distribution.entity.DistributionReservationEntity; |
|
|
|
import com.logpm.distribution.service.IDistributionReservationService; |
|
|
|
import com.logpm.distribution.service.IDistributionReservationService; |
|
|
@ -27,11 +28,13 @@ import org.springblade.core.mp.support.Condition; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.GetMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 预约列表 Feign实现类 |
|
|
|
* 预约列表 Feign实现类 |
|
|
@ -98,5 +101,21 @@ public class DistributionReservationClient implements IDistributionReservationCl |
|
|
|
return reservationService.retentionMa(); |
|
|
|
return reservationService.retentionMa(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
@Transactional |
|
|
|
|
|
|
|
public Boolean maintainReservationInfo(String params) { |
|
|
|
|
|
|
|
DistributionReservationEntity one = reservationService.getOne(Wrappers.<DistributionReservationEntity>query().lambda() |
|
|
|
|
|
|
|
.eq(DistributionReservationEntity::getReservationCode, params) |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
if (Objects.isNull(one)){ |
|
|
|
|
|
|
|
reservationService.maintenanceReservationInfo(one.getId()); |
|
|
|
|
|
|
|
reservationService.maintenanceReservationInfo(one.getId()); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|