| | |
| | | @Resource |
| | | OrdersService ordersService; |
| | | |
| | | @ApiOperation("查询所有订单列表") |
| | | //订单BOM是销售单通过之后的 |
| | | @ApiOperation("查询所有订单BOM列表") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "pageSize", value = "页数", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "countSize", value = "条数/页", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "orderCode", value = "订单编号", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "name", value = "产品名称", dataTypeClass = String.class), |
| | | @ApiImplicitParam(name = "state", value = "编制状态(为空=全部)", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "type", value = "编制状态(为空=全部)", dataTypeClass = Integer.class), |
| | | @ApiImplicitParam(name = "time", value = "下单时间", dataTypeClass = String.class) |
| | | }) |
| | | @GetMapping("/selectAllOrder") |
| | | public Result selectAllOrder(int pageSize, int countSize, String orderCode, String name, Integer state ,String time) { |
| | | IPage<Map<String, Object>> inspectionPage = ordersService.selectAllOrder(new Page<Object>(pageSize, countSize), orderCode, name, state, time); |
| | | public Result selectAllOrder(int pageSize, int countSize, String orderCode, String name, Integer type ,String time) { |
| | | IPage<Map<String, Object>> inspectionPage = ordersService.selectAllOrder(new Page<Object>(pageSize, countSize), orderCode, name, type, time); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("total", inspectionPage.getTotal()); |
| | | map.put("row", inspectionPage.getRecords()); |
| | | return Result.success(map); |
| | | } |
| | | |
| | | @ApiOperation("编制") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "销售产品id", dataTypeClass = Integer.class,required = true) |
| | | }) |
| | | @PostMapping("/compile") |
| | | public Result compile(Integer id) { |
| | | ordersService.compile(id); |
| | | return Result.success("编制产品完成!"); |
| | | } |
| | | |
| | | } |
| | | |