|
|
|
@ -40,9 +40,10 @@ import org.springblade.core.mp.support.Condition;
|
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.constant.BladeConstant; |
|
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.system.entity.User; |
|
|
|
|
import org.springblade.system.feign.IUserClient; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
@ -66,7 +67,7 @@ public class DistributionReservationController extends BladeController {
|
|
|
|
|
|
|
|
|
|
private final IDistributionReservationService reservationService; |
|
|
|
|
private final IBasicdataWarehouseClient basicdataWarehouseClient; |
|
|
|
|
|
|
|
|
|
private final IUserClient userClient; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 预约列表 详情 |
|
|
|
@ -103,6 +104,11 @@ public class DistributionReservationController extends BladeController {
|
|
|
|
|
lambda.notIn(DistributionReservationEntity::getId,ids); |
|
|
|
|
} |
|
|
|
|
IPage<DistributionReservationEntity> pages = reservationService.page(Condition.getPage(query),lambda ); |
|
|
|
|
pages.getRecords().forEach(i ->{ |
|
|
|
|
R<User> userR = userClient.userInfoById(i.getCreateUser()); |
|
|
|
|
i.setOperator(userR.getData().getName()); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
return R.data(DistributionReservationWrapper.build().pageVO(pages)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|