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 warehouse management module data object in java #231

Merged
merged 10 commits into from
Nov 24, 2023
64 changes: 64 additions & 0 deletions core/domain/src/main/java/com/wansenai/bo/AllotStockBO.java
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.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
public class AllotStockBO {

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

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

private String warehouseName;

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

private String otherWarehouseName;

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

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

private String productName;

private String productModel;

private String productUnit;

private String productStandard;

private Integer stock;

private Integer productNumber;

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

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

private String remark;
}
61 changes: 61 additions & 0 deletions core/domain/src/main/java/com/wansenai/bo/AssembleStockBO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
/*
* 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.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
public class AssembleStockBO {

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

private String type;

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

private String warehouseName;

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

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

private String productName;

private String productModel;

private String productUnit;

private String productStandard;

private Integer stock;

private Integer productNumber;

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

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

private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

@Data
@Builder
public class StorageShipmentStockBO {

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

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

private String warehouseName;

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

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

private String productName;

private String productModel;

private String productUnit;

private String productStandard;

private Integer stock;

private Integer productNumber;

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

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

private String remark;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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.warehouse;

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

import java.util.List;

@Data
public class AllotReceiptDTO {

private Long id;

private String receiptNumber;

private String receiptDate;

private String remark;

private Integer status;

private List<AllotStockBO> tableData;

private List<FileDataBO> files;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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.warehouse;

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

import java.util.List;

@Data
public class AssembleReceiptDTO {

private Long id;

private String receiptNumber;

private String receiptDate;

private String remark;

private Integer status;

private List<AssembleStockBO> tableData;

private List<FileDataBO> files;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* 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.warehouse;

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

import java.util.List;

@Data
public class DisassembleReceiptDTO {

private Long id;

private String receiptNumber;

private String receiptDate;

private String remark;

private Integer status;

private List<AssembleStockBO> tableData;

private List<FileDataBO> files;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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.warehouse;

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

import java.util.List;

@Data
public class OtherShipmentDTO {

private Long id;

private Long customerId;

private String receiptNumber;

private String receiptDate;

private String remark;

private Integer status;

private List<StorageShipmentStockBO> tableData;

private List<FileDataBO> files;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* 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.warehouse;

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

import java.util.List;

@Data
public class OtherStorageDTO {

private Long id;

private Long supplierId;

private String receiptNumber;

private String receiptDate;

private String remark;

private Integer status;

private List<StorageShipmentStockBO> tableData;

private List<FileDataBO> files;
}
Loading