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 sale shipment and refund data object #173

Merged
merged 2 commits into from
Nov 8, 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
@@ -0,0 +1,43 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.dto.receipt.sale;

import lombok.Data;

@Data
public class QuerySaleRefundDTO {

private String receiptNumber;

private String productInfo;

private Long customerId;

private Long operatorId;

private Long warehouseId;

private String otherReceipt;

private Integer status;

private String remark;

private String startDate;

private String endDate;

private Long page;

private Long pageSize;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.dto.receipt.sale;

import lombok.Data;

@Data
public class QuerySaleShipmentsDTO {

private String receiptNumber;

private String productInfo;

private Long customerId;

private Long operatorId;

private Long warehouseId;

private String otherReceipt;

// 有无欠款
private Integer arrearsStatus;

private Integer status;

private String remark;

private String startDate;

private String endDate;

private Long page;

private Long pageSize;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package com.wansenai.dto.receipt.sale;

import com.wansenai.bo.FileDataBO;
import com.wansenai.bo.SalesDataBO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SaleRefundDTO {

private Long id;

private Long customerId;

private String receiptNumber;

private String receiptDate;

private String otherReceipt;

private BigDecimal refundOfferRate;

private BigDecimal refundOfferAmount;

private BigDecimal refundLastAmount;

private BigDecimal otherAmount;

private BigDecimal thisRefundAmount;

private BigDecimal thisArrearsAmount;

private Long accountId;

private List<Long> multipleAccountAmounts;

private List<Long> multipleAccountIds;

private List<Long> operatorIds;

private List<SalesDataBO> tableData;

private List<FileDataBO> files;

private Integer status;

private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.dto.receipt.sale;

import com.wansenai.bo.FileDataBO;
import com.wansenai.bo.SalesDataBO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SaleShipmentsDTO {

private Long id;

private Long customerId;

private String receiptNumber;

private String receiptDate;

private String otherReceipt;

private BigDecimal collectOfferRate;

private BigDecimal collectOfferAmount;

private BigDecimal collectOfferLastAmount;

private BigDecimal otherAmount;

private BigDecimal thisCollectAmount;

private BigDecimal thisArrearsAmount;

private Long accountId;

private List<Long> multipleAccountAmounts;

private List<Long> multipleAccountIds;

private List<Long> operatorIds;

private List<SalesDataBO> tableData;

private List<FileDataBO> files;

private Integer status;

private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.vo.receipt.sale;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wansenai.bo.BigDecimalSerializerBO;
import com.wansenai.bo.FileDataBO;
import com.wansenai.bo.SalesDataBO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SaleRefundDetailVO {

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

private String receiptNumber;

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

private String otherReceipt;

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

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

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

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

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

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

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

@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> multipleAccountAmounts;

@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> multipleAccountIds;

@JsonFormat(shape = JsonFormat.Shape.STRING)
private List<Long> operatorIds;

private List<SalesDataBO> tableData;

private List<FileDataBO> files;

private Integer status;

private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.vo.receipt.sale;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.wansenai.bo.BigDecimalSerializerBO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SaleRefundVO {

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

private String customerName;

private String receiptNumber;

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

private String productInfo;

private String operator;

private Integer productNumber;

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

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

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

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

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

private Integer status;
}
Loading