Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add purchase detail views #192

Merged
merged 18 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
return purchaseService.getPurchaseOrderDetail(id);
}

@GetMapping("/order/getLinkOrderDetail/{receiptNumber}")
public Response<PurchaseOrderDetailVO> getLinkPurchaseOrderDetail(@PathVariable("receiptNumber") String receiptNumber) {
return purchaseService.getLinkPurchaseOrderDetail(receiptNumber);

Check warning on line 59 in core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java#L59

Added line #L59 was not covered by tests
}

@PutMapping("/order/updateStatus/{ids}/{status}")
public Response<String> updateStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return purchaseService.updatePurchaseOrderStatus(ids, status);
Expand All @@ -79,6 +84,11 @@
return purchaseService.getPurchaseStorageDetail(id);
}

@GetMapping("/storage/getLinkStorageDetail/{receiptNumber}")
public Response<PurchaseStorageDetailVO> getLinkPurchaseStorageDetail(@PathVariable("receiptNumber") String receiptNumber) {
return purchaseService.getLinkPurchaseStorageDetail(receiptNumber);

Check warning on line 89 in core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java#L89

Added line #L89 was not covered by tests
}

@PutMapping("/storage/updateStatus/{ids}/{status}")
public Response<String> updatePurchaseStorageStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return purchaseService.updatePurchaseStorageStatus(ids, status);
Expand All @@ -104,6 +114,11 @@
return purchaseService.getPurchaseRefundDetail(id);
}

@GetMapping("/refund/getLinkRefundDetail/{receiptNumber}")
public Response<PurchaseRefundDetailVO> getLinkPurchaseRefundDetail(@PathVariable("receiptNumber") String receiptNumber) {
return purchaseService.getLinkPurchaseRefundDetail(receiptNumber);

Check warning on line 119 in core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/PurchaseController.java#L119

Added line #L119 was not covered by tests
}

@PutMapping("/refund/updateStatus/{ids}/{status}")
public Response<String> updatePurchaseRefundStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return purchaseService.updatePurchaseRefundStatus(ids, status);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@
return receiptSaleService.getSaleOrderDetail(id);
}

@GetMapping("/order/getLinkOrderDetail/{receiptNumber}")
public Response<SaleOrderDetailVO> getLinkOrderDetail(@PathVariable("receiptNumber") String receiptNumber) {
return receiptSaleService.getLinkSaleOrderDetail(receiptNumber);

Check warning on line 52 in core/api/src/main/java/com/wansenai/api/receipt/SalesController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/SalesController.java#L52

Added line #L52 was not covered by tests
}

@PutMapping("/order/updateStatus/{ids}/{status}")
public Response<String> updateStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return receiptSaleService.updateSaleOrderStatus(ids, status);
Expand All @@ -72,6 +77,11 @@
return receiptSaleService.getSaleShipmentsDetail(id);
}

@GetMapping("/shipments/getLinkShipmentDetail/{receiptNumber}")
public Response<SaleShipmentsDetailVO> getLinkShipmentDetail(@PathVariable("receiptNumber") String receiptNumber) {
return receiptSaleService.getLinkSaleShipmentsDetail(receiptNumber);

Check warning on line 82 in core/api/src/main/java/com/wansenai/api/receipt/SalesController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/SalesController.java#L82

Added line #L82 was not covered by tests
}

@PutMapping("/shipments/updateStatus/{ids}/{status}")
public Response<String> updateShipmentsStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return receiptSaleService.updateSaleShipmentsStatus(ids, status);
Expand All @@ -97,6 +107,11 @@
return receiptSaleService.getSaleRefundDetail(id);
}

@GetMapping("/refund/getLinkRefundDetail/{receiptNumber}")
public Response<SaleRefundDetailVO> getLinkRefundDetail(@PathVariable("receiptNumber") String receiptNumber) {
return receiptSaleService.getLinkSaleRefundDetail(receiptNumber);

Check warning on line 112 in core/api/src/main/java/com/wansenai/api/receipt/SalesController.java

View check run for this annotation

Codecov / codecov/patch

core/api/src/main/java/com/wansenai/api/receipt/SalesController.java#L112

Added line #L112 was not covered by tests
}

@PutMapping("/refund/updateStatus/{ids}/{status}")
public Response<String> updateRefundStatus(@PathVariable("ids") List<Long> ids, @PathVariable("status") Integer status) {
return receiptSaleService.updateSaleRefundStatus(ids, status);
Expand Down
6 changes: 6 additions & 0 deletions core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long warehouseId;

private String warehouseName;

Check warning on line 33 in core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java#L33

Added line #L33 was not covered by tests

@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long barCode;

Expand All @@ -39,8 +41,12 @@

private String productUnit;

private String productModel;

Check warning on line 44 in core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java#L44

Added line #L44 was not covered by tests

private String productStandard;

private String productColor;

Check warning on line 48 in core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/PurchaseDataBO.java#L48

Added line #L48 was not covered by tests

private Integer stock;

private Integer productNumber;
Expand Down
6 changes: 6 additions & 0 deletions core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,21 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long warehouseId;

private String warehouseName;

Check warning on line 33 in core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java#L33

Added line #L33 was not covered by tests

@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long barCode;

private Long productId;

private String productName;

private String productModel;

Check warning on line 42 in core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java#L42

Added line #L42 was not covered by tests

private String productUnit;

private String productColor;

Check warning on line 46 in core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/bo/SalesDataBO.java#L46

Added line #L46 was not covered by tests

private String productStandard;

private Integer stock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long supplierId;

private String supplierName;

Check warning on line 38 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java#L38

Added line #L38 was not covered by tests

@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long accountId;

Expand All @@ -49,6 +51,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> multipleAccountIds;

private String accountName;

Check warning on line 54 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java#L54

Added line #L54 was not covered by tests

@JsonSerialize(using = BigDecimalSerializerBO.class)
private BigDecimal discountRate;

Expand All @@ -66,4 +70,6 @@
private List<FileDataBO> files;

private String remark;

private Integer status;

Check warning on line 74 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseOrderDetailVO.java#L74

Added line #L74 was not covered by tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long supplierId;

private String supplierName;

Check warning on line 38 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseRefundDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseRefundDetailVO.java#L38

Added line #L38 was not covered by tests

private String receiptNumber;

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
Expand Down Expand Up @@ -69,6 +71,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> multipleAccountIds;

private String accountName;

Check warning on line 74 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseRefundDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseRefundDetailVO.java#L74

Added line #L74 was not covered by tests

private List<PurchaseDataBO> tableData;

private List<FileDataBO> files;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long supplierId;

private String supplierName;

Check warning on line 38 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseStorageDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseStorageDetailVO.java#L38

Added line #L38 was not covered by tests

private String receiptNumber;

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
Expand Down Expand Up @@ -69,6 +71,8 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> multipleAccountIds;

private String accountName;

Check warning on line 74 in core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseStorageDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/purchase/PurchaseStorageDetailVO.java#L74

Added line #L74 was not covered by tests

private List<PurchaseDataBO> tableData;

private List<FileDataBO> files;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,15 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long customerId;

private String customerName;

Check warning on line 38 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java#L38

Added line #L38 was not covered by tests

@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long accountId;

private String accountName;

Check warning on line 43 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java#L43

Added line #L43 was not covered by tests

private String otherReceipt;

Check warning on line 45 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java#L45

Added line #L45 was not covered by tests

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime receiptDate;

Expand Down Expand Up @@ -69,4 +75,6 @@
private List<FileDataBO> files;

private String remark;

private Integer status;

Check warning on line 79 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleOrderDetailVO.java#L79

Added line #L79 was not covered by tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
@JsonFormat(shape = JsonFormat.Shape.STRING)
private Long customerId;

private String customerName;

Check warning on line 38 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleRefundDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleRefundDetailVO.java#L38

Added line #L38 was not covered by tests

private String accountName;

Check warning on line 40 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleRefundDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleRefundDetailVO.java#L40

Added line #L40 was not covered by tests

private String receiptNumber;

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@

private String receiptNumber;

private String customerName;

Check warning on line 40 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java#L40

Added line #L40 was not covered by tests

private String accountName;

Check warning on line 42 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java#L42

Added line #L42 was not covered by tests

@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime receiptDate;

Expand Down Expand Up @@ -77,4 +81,6 @@
private List<FileDataBO> files;

private String remark;

private Integer status;

Check warning on line 85 in core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java

View check run for this annotation

Codecov / codecov/patch

core/domain/src/main/java/com/wansenai/vo/receipt/sale/SaleShipmentsDetailVO.java#L85

Added line #L85 was not covered by tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ public interface ReceiptPurchaseService extends IService<ReceiptPurchaseMain> {
*/
Response<PurchaseOrderDetailVO> getPurchaseOrderDetail(Long id);

/**
* Query purchase order details data based on purchase order number
* 根据采购订单单号查询采购订单详情数据
*
* @param receiptNumber Purchase order number
* 采购订单单号
* @return Returns purchase order details data
* 返回采购订单详情数据
*/
Response<PurchaseOrderDetailVO> getLinkPurchaseOrderDetail(String receiptNumber);

/**
* Add/Update Purchase Order Data
* 添加/修改采购订单数据
Expand Down Expand Up @@ -102,6 +113,17 @@ public interface ReceiptPurchaseService extends IService<ReceiptPurchaseMain> {
*/
Response<PurchaseStorageDetailVO> getPurchaseStorageDetail(Long id);

/**
* Query the detailed data of the purchase receipt order based on the purchase receipt order number
* 根据采购入库单单号查询采购入库单详情数据
*
* @param receiptNumber Purchase receipt order number
* 采购入库单单号
* @return Returns purchase receipt order details data
* 返回采购入库单详情数据
*/
Response<PurchaseStorageDetailVO> getLinkPurchaseStorageDetail(String receiptNumber);

/**
* Add/Modify Purchase Receipt Data
* 添加/修改采购入库数据
Expand Down Expand Up @@ -159,6 +181,17 @@ public interface ReceiptPurchaseService extends IService<ReceiptPurchaseMain> {
*/
Response<PurchaseRefundDetailVO> getPurchaseRefundDetail(Long id);

/**
* Query the detailed data of the purchase return order based on the purchase return order number
* 根据采购退货单单号查询采购退货单详情数据
*
* @param receiptNumber Purchase return order number
* 采购退货单单号
* @return Returns purchase return order details data
* 返回采购退货单详情数据
*/
Response<PurchaseRefundDetailVO> getLinkPurchaseRefundDetail(String receiptNumber);

/**
* Add/Modify Purchase Return Order Data
* 添加/修改采购退货单数据
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ public interface ReceiptSaleService extends IService<ReceiptSaleMain> {
*/
Response<SaleOrderDetailVO> getSaleOrderDetail(Long id);

/**
* Query sales order details data based on sales order number
* 根据销售订单编号查询销售订单详情数据
*
* @param receiptNumber Sales order number
* 销售订单编号
* @return Returns sales order details data
* 返回销售订单详情数据
*/
Response<SaleOrderDetailVO> getLinkSaleOrderDetail(String receiptNumber);

/**
* Add/Update Sales Order Data
* 新增/修改 销售订单数据
Expand Down Expand Up @@ -101,6 +112,17 @@ public interface ReceiptSaleService extends IService<ReceiptSaleMain> {
*/
Response<SaleShipmentsDetailVO> getSaleShipmentsDetail(Long id);

/**
* Query sales delivery order details data based on sales delivery order number
* 根据销售出货单编号查询销售出货单详情数据
*
* @param receiptNumber Sales delivery order number
* 销售出货单编号
* @return Returns sales delivery order details data
* 返回销售出货单详情数据
*/
Response<SaleShipmentsDetailVO> getLinkSaleShipmentsDetail(String receiptNumber);

/**
* Add or modify sales delivery orders
* 新增或修改销售出货单
Expand Down Expand Up @@ -158,6 +180,17 @@ public interface ReceiptSaleService extends IService<ReceiptSaleMain> {
*/
Response<SaleRefundDetailVO> getSaleRefundDetail(Long id);

/**
* Query sales return order details data based on sales return order number
* 根据销售退货单编号查询销售退货单详情数据
*
* @param receiptNumber Sales return order number
* 销售退货单编号
* @return Returns sales return order details data
* 返回销售退货单详情数据
*/
Response<SaleRefundDetailVO> getLinkSaleRefundDetail(String receiptNumber);

/**
* Add or modify sales refund orders
* 新增或修改销售退货单
Expand Down
Loading