【新增】添加了erp中083和084的dto
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
package com.zt.plat.module.erp.api.dto.dto083;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ERP 083 接口请求参数 DTO
|
||||
*
|
||||
* @author wsh
|
||||
*/
|
||||
@Schema(description = "ERP 083 接口请求参数DTO")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ErpSubmit083ReqDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(description = "083 接口请求参数Head对象")
|
||||
private Head083 head;
|
||||
|
||||
@Schema(description = "083 接口请求参数税码列表对象")
|
||||
private List<TaxList083> taxTab;
|
||||
|
||||
@Schema(description = "083 接口请求参数物料列表对象")
|
||||
private List<MatList083> matTab;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,74 @@
|
||||
package com.zt.plat.module.erp.api.dto.dto083;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* ERP 083 接口请求参数 - 物料列表对象
|
||||
*
|
||||
* @author wsh
|
||||
*/
|
||||
@Schema(description = "ERP 083 接口请求参数 - 物料列表对象")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class MatList083 implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 发票行号
|
||||
* 默认 1
|
||||
*/
|
||||
@Schema(description = "发票行号", example = "1")
|
||||
private Long invoiceDocItem;
|
||||
|
||||
/**
|
||||
* 物料号
|
||||
* 来源: QpSettlementDO.materialNumber(物料编码)
|
||||
*/
|
||||
@Schema(description = "物料号", example = "000000000000224778")
|
||||
private String material;
|
||||
|
||||
/**
|
||||
* 订单中的收货工厂编码
|
||||
*/
|
||||
@Schema(description = "工厂(评估范围)")
|
||||
private String valArea;
|
||||
|
||||
/**
|
||||
* 金额
|
||||
* 可输入负数
|
||||
* 来源: QpSettlementDO.differenceRmbAmount(差额人民币)
|
||||
*/
|
||||
@Schema(description = "金额", example = "2405348.12")
|
||||
private BigDecimal itemAmount;
|
||||
|
||||
/**
|
||||
* 数量
|
||||
* 来源: QpSettlementDO.metalWeight(金属量)
|
||||
*/
|
||||
@Schema(description = "数量", example = "2276.491")
|
||||
private BigDecimal quantity;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
* 来源: QpSettlementDO.metalUnit(金属量单位)
|
||||
*/
|
||||
@Schema(description = "计量单位", example = "TON")
|
||||
private String baseUom;
|
||||
|
||||
/**
|
||||
* 税码
|
||||
* 固定值 "J0"
|
||||
*/
|
||||
@Schema(description = "税码", example = "J0")
|
||||
private String taxCode;
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.zt.plat.module.erp.api.dto.dto083;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* ERP 083 接口请求参数 - 税码列表对象
|
||||
*
|
||||
* @author wsh
|
||||
*/
|
||||
@Schema(description = "ERP 083 接口请求参数 - 税码列表对象")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class TaxList083 implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 税码
|
||||
* 固定值 "J0"
|
||||
*/
|
||||
@Schema(description = "税码", example = "J0")
|
||||
private String taxCode;
|
||||
|
||||
/**
|
||||
* 税额
|
||||
* 固定值 "0"
|
||||
*/
|
||||
@Schema(description = "税额", example = "0")
|
||||
private BigDecimal taxAmount;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.zt.plat.module.erp.api.dto.dto084;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* ERP 084 接口请求参数 DTO (冲销接口)
|
||||
*
|
||||
* @author wsh
|
||||
*/
|
||||
@Schema(description = "ERP 084 接口请求参数DTO(冲销接口)")
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ErpSubmit084ReqDTO implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 要冲销的发票号
|
||||
* 来源: QP结算表中的inv_doc_no
|
||||
*/
|
||||
@Schema(description = "要冲销的发票号", example = "0100005678")
|
||||
private String invoicedocnumber;
|
||||
|
||||
/**
|
||||
* 要冲销的发票年度
|
||||
* 来源: QP结算表中的fisc_year
|
||||
*/
|
||||
@Schema(description = "要冲销的发票年度", example = "2025")
|
||||
private String fiscalyear;
|
||||
|
||||
/**
|
||||
* 冲销过账日期
|
||||
* 格式: YYYYMMDD
|
||||
* 来源: 当前日期
|
||||
*/
|
||||
@Schema(description = "冲销过账日期", example = "20250130")
|
||||
private String postingdate;
|
||||
}
|
||||
Reference in New Issue
Block a user