pref_mail@163.com
8 months ago
11 changed files with 212 additions and 75 deletions
@ -0,0 +1,58 @@
|
||||
package com.logpm.distribution.controller; |
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import com.logpm.business.entity.DistributionBusinessPreOrderEntity; |
||||
import com.logpm.distribution.entity.DistributionDeliveryListEntity; |
||||
import com.logpm.distribution.service.IDistributionBusinessPreOrderService; |
||||
import com.logpm.distribution.vo.DistributionDeliveryListVO; |
||||
import com.logpm.distribution.wrapper.DistributionDeliveryListWrapper; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import io.swagger.annotations.ApiParam; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.boot.ctrl.BladeController; |
||||
import org.springblade.core.mp.support.Condition; |
||||
import org.springblade.core.mp.support.Query; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RequestParam; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
import springfox.documentation.annotations.ApiIgnore; |
||||
|
||||
import java.util.Map; |
||||
|
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/businessPreOrder") |
||||
@Api(value = "配送增值服务明细", tags = "预入库信息控制器") |
||||
public class DistributionBusinessPreOrderController extends BladeController { |
||||
|
||||
private final IDistributionBusinessPreOrderService distributionBusinessPreOrderService; |
||||
|
||||
/** |
||||
* 预入库信息 分页 |
||||
*/ |
||||
@GetMapping("/page") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distributionDeliveryList") |
||||
public R<IPage<DistributionBusinessPreOrderEntity>> list(@ApiIgnore @RequestParam Map<String, Object> distributionBusinessPreOrderEntity, Query query) { |
||||
IPage<DistributionBusinessPreOrderEntity> pages = distributionBusinessPreOrderService.page(Condition.getPage(query), Condition.getQueryWrapper(distributionBusinessPreOrderEntity, DistributionBusinessPreOrderEntity.class)); |
||||
return R.data(pages); |
||||
} |
||||
|
||||
|
||||
@GetMapping("/inOrder") |
||||
@ApiOperationSupport(order = 2) |
||||
@ApiOperation(value = "分页", notes = "传入distributionDeliveryList") |
||||
public R<Boolean> inOrder(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
||||
Boolean isSuccess =distributionBusinessPreOrderService.inOrder(ids); |
||||
return R.data(isSuccess); |
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} |
Loading…
Reference in new issue