-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #252 from Jzow/master
Change export data object
- Loading branch information
Showing
22 changed files
with
478 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
core/domain/src/main/java/com/wansenai/bo/AllotStockDataExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* 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.bo; | ||
|
||
import com.wansenai.utils.excel.ExcelExport; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@Builder | ||
public class AllotStockDataExportBO { | ||
|
||
@ExcelExport(value = "调拨单号") | ||
private String receiptNumber; | ||
|
||
@ExcelExport(value = "调出方仓库") | ||
private String warehouseName; | ||
|
||
@ExcelExport(value = "调入方仓库") | ||
private String otherWarehouseName; | ||
|
||
@ExcelExport(value = "条码") | ||
private String barCode; | ||
|
||
@ExcelExport(value = "商品名称") | ||
private String productName; | ||
|
||
@ExcelExport(value = "规格") | ||
private String productStandard; | ||
|
||
@ExcelExport(value = "型号") | ||
private String productModel; | ||
|
||
@ExcelExport(value = "单位") | ||
private String productUnit; | ||
|
||
@ExcelExport(value = "库存") | ||
private Integer stock; | ||
|
||
@ExcelExport(value = "数量") | ||
private Integer productNumber; | ||
|
||
@ExcelExport(value = "单价") | ||
private BigDecimal unitPrice; | ||
|
||
@ExcelExport(value = "金额") | ||
private BigDecimal amount; | ||
|
||
@ExcelExport(value = "备注") | ||
private String remark; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
core/domain/src/main/java/com/wansenai/bo/AssembleStockDataExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/* | ||
* 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.bo; | ||
|
||
import com.wansenai.utils.excel.ExcelExport; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
/** | ||
* 组装单和拆卸单导出数据BO (AssembleStockDataExportBO) 共存在这一个类中 | ||
*/ | ||
@Data | ||
@Builder | ||
public class AssembleStockDataExportBO { | ||
|
||
@ExcelExport("单据编号") | ||
private String receiptNumber; | ||
|
||
@ExcelExport("商品类型") | ||
private String type; | ||
|
||
@ExcelExport("仓库") | ||
private String warehouseName; | ||
|
||
@ExcelExport("条码") | ||
private String barCode; | ||
|
||
@ExcelExport("商品名称") | ||
private String productName; | ||
|
||
@ExcelExport("规格") | ||
private String productStandard; | ||
|
||
@ExcelExport("型号") | ||
private String productModel; | ||
|
||
@ExcelExport("单位") | ||
private String productUnit; | ||
|
||
@ExcelExport("库存") | ||
private Integer stock; | ||
|
||
@ExcelExport("商品数量") | ||
private Integer productNumber; | ||
|
||
@ExcelExport("单价") | ||
private BigDecimal unitPrice; | ||
|
||
@ExcelExport("金额") | ||
private BigDecimal amount; | ||
|
||
@ExcelExport("备注") | ||
private String remark; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
core/domain/src/main/java/com/wansenai/bo/PurchaseDataExportBO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* 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.bo; | ||
|
||
import com.wansenai.utils.excel.ExcelExport; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.math.BigDecimal; | ||
|
||
@Data | ||
@Builder | ||
public class PurchaseDataExportBO { | ||
|
||
@ExcelExport(value = "供应商") | ||
private String supplierName; | ||
|
||
@ExcelExport(value = "单据编号") | ||
private String receiptNumber; | ||
|
||
@ExcelExport(value = "仓库名称") | ||
private String warehouseName; | ||
|
||
@ExcelExport(value = "条码") | ||
private String barCode; | ||
|
||
@ExcelExport(value = "商品名称") | ||
private String productName; | ||
|
||
@ExcelExport(value = "规格") | ||
private String productStandard; | ||
|
||
@ExcelExport(value = "型号") | ||
private String productModel; | ||
|
||
@ExcelExport(value = "颜色") | ||
private String productColor; | ||
|
||
@ExcelExport(value = "库存") | ||
private Integer stock; | ||
|
||
@ExcelExport(value = "单位") | ||
private String productUnit; | ||
|
||
@ExcelExport(value = "数量") | ||
private Integer productNumber; | ||
|
||
@ExcelExport(value = "单价") | ||
private BigDecimal unitPrice; | ||
|
||
@ExcelExport(value = "金额") | ||
private BigDecimal amount; | ||
|
||
@ExcelExport(value = "税率(%)") | ||
private BigDecimal taxRate; | ||
|
||
@ExcelExport(value = "税额") | ||
private BigDecimal taxAmount; | ||
|
||
@ExcelExport(value = "价税合计") | ||
private BigDecimal taxTotalPrice; | ||
|
||
@ExcelExport(value = "备注") | ||
private String remark; | ||
} |
Oops, something went wrong.