parent
7e9cbb0248
commit
fa515c899c
14 changed files with 324 additions and 11 deletions
@ -0,0 +1,50 @@ |
||||
package org.springblade.desk.logistics.pojo.vo; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import org.springblade.desk.order.pojo.entity.YieldOrder; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.math.BigDecimal; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 获取箱条码订单详情前端返回 |
||||
* |
||||
* @author |
||||
* @since |
||||
*/ |
||||
@Data |
||||
@Schema(description = "获取箱条码订单详情前端返回") |
||||
public class BoxbarcodeDetailsVO implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 箱条码 |
||||
*/ |
||||
@Schema(description = "箱条码") |
||||
private String boxBarcode; |
||||
|
||||
/** |
||||
* 订单数量 |
||||
*/ |
||||
@Schema(description = "订单数量") |
||||
private Long quantity; |
||||
/** |
||||
* 总重量 |
||||
*/ |
||||
@Schema(description = "总重量") |
||||
private BigDecimal weight; |
||||
/** |
||||
* 订单详情数据 |
||||
*/ |
||||
@Schema(description = "订单详情数据") |
||||
private List<YieldOrder> yieldOrderList; |
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,41 @@ |
||||
package org.springblade.desk.logistics.pojo.vo; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 获取订单数量与作业中心前端返回 |
||||
* |
||||
* @author |
||||
* @since |
||||
*/ |
||||
@Data |
||||
@Schema(description = "获取订单数量与作业中心前端返回") |
||||
public class QuantityLocationVO implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 箱条码 |
||||
*/ |
||||
@Schema(description = "箱条码") |
||||
private String boxBarcode; |
||||
|
||||
/** |
||||
* 订单数量 |
||||
*/ |
||||
@Schema(description = "订单数量") |
||||
private Long quantity; |
||||
/** |
||||
* 作业中心名字 |
||||
*/ |
||||
@Schema(description = "作业中心名字") |
||||
private String wcName; |
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,23 @@ |
||||
package org.springblade.desk.logistics.pojo.vo; |
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema; |
||||
import lombok.Data; |
||||
import org.springblade.desk.logistics.pojo.entity.Station; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 获取订单数量与作业中心前端返回 |
||||
* |
||||
* @author |
||||
* @since |
||||
*/ |
||||
@Data |
||||
@Schema(description = "获取订单数量与作业中心前端返回") |
||||
public class StationNameBoxBarcodeVO implements Serializable { |
||||
private BoxbarcodeDetailsVO boxbarcodeDetailsVO; |
||||
private Station station; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,40 @@ |
||||
package org.springblade.desk.logistics.controller; |
||||
|
||||
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||
import io.swagger.v3.oas.annotations.Operation; |
||||
import io.swagger.v3.oas.annotations.tags.Tag; |
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.tool.api.R; |
||||
import org.springblade.desk.logistics.service.IOrderBoxService; |
||||
import org.springblade.desk.logistics.service.IStationService; |
||||
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; |
||||
|
||||
@RestController |
||||
@AllArgsConstructor |
||||
@RequestMapping("/station") |
||||
@Tag(name = "站点", description = "站点相关接口") |
||||
public class StationController { |
||||
private final IStationService stationService; |
||||
private final IOrderBoxService iOrderBoxService; |
||||
/** |
||||
* 获取起点站点名字 |
||||
*/ |
||||
@GetMapping("/getName") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "站点名字", description = "获取站点名字") |
||||
public R getStationName(@RequestParam String stationCode) { |
||||
return stationService.getStationName(stationCode); |
||||
} |
||||
/** |
||||
* 获取起点站点名字 |
||||
*/ |
||||
@GetMapping("/getName-boxbarcode") |
||||
@ApiOperationSupport(order = 1) |
||||
@Operation(summary = "站点名字", description = "获取站点名字") |
||||
public R getStationNameBoxBarcode(@RequestParam String stationCode) { |
||||
return iOrderBoxService.getStationNameBoxBarcode(stationCode); |
||||
} |
||||
} |
||||
Loading…
Reference in new issue