委托加工订单接口相关实现
This commit is contained in:
@@ -59,7 +59,7 @@ public class ErpOrderSaveReqVO {
|
||||
|
||||
@Schema(description = "采购凭证日期(YYYY-MM-DD)", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "采购凭证日期不能为空")
|
||||
private LocalDate doc_date; // BEDAT DATS8
|
||||
private String doc_date; // BEDAT DATS8
|
||||
|
||||
@Schema(description = "采购组织", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotEmpty(message = "采购组织不能为空")
|
||||
@@ -174,6 +174,9 @@ public class ErpOrderSaveReqVO {
|
||||
@Schema(description = "行项目扩展信息")
|
||||
@Data
|
||||
public static class Itex {
|
||||
@Schema(description = "行号", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "行号不能为空")
|
||||
private Integer po_item;
|
||||
@Schema(description = "销售物料号(科目分配类别为S时必填)")
|
||||
private String zmatnr;
|
||||
|
||||
|
||||
@@ -224,6 +224,11 @@ public class ErpOrderUpdateReqVO {
|
||||
|
||||
@Data
|
||||
public static class comp {
|
||||
@Schema(description = "行号(EBELP)", requiredMode = Schema.RequiredMode.REQUIRED, example = "00010")
|
||||
@NotEmpty(message = "行号不能为空")
|
||||
@ExcelProperty("行号")
|
||||
private Long po_item;
|
||||
|
||||
@Schema(description = "计划行号(ETENR),从1开始编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "计划行号不能为空")
|
||||
@ExcelProperty("计划行号")
|
||||
@@ -237,12 +242,12 @@ public class ErpOrderUpdateReqVO {
|
||||
@Schema(description = "加工前物料号(MATNR)", requiredMode = Schema.RequiredMode.REQUIRED, example = "M0020001")
|
||||
@NotEmpty(message = "加工前物料号不能为空")
|
||||
@ExcelProperty("加工前物料号")
|
||||
private String comp_material;
|
||||
private String material;
|
||||
|
||||
@Schema(description = "委托加工发货工厂(PLANT)", requiredMode = Schema.RequiredMode.REQUIRED, example = "1001")
|
||||
@NotEmpty(message = "委托加工发货工厂不能为空")
|
||||
@ExcelProperty("委托发货工厂")
|
||||
private String comp_plant;
|
||||
private String plant;
|
||||
|
||||
@Schema(description = "委托加工需求数量(MENGE),保留3位小数", requiredMode = Schema.RequiredMode.REQUIRED, example = "95.000")
|
||||
@NotNull(message = "委托加工需求数量不能为空")
|
||||
|
||||
@@ -36,7 +36,9 @@ public class ErpOrderServiceImpl implements ErpOrderService {
|
||||
req.put("comp", createVo.getComps());
|
||||
req.put("exte", createVo.getExte());
|
||||
req.put("acct", createVo.getAccts());
|
||||
req.put("itex", createVo.getItex());
|
||||
reqDTO.setReq(req);
|
||||
String reqJson = com.alibaba.fastjson2.JSON.toJSONString(reqDTO);
|
||||
return submitToErp(reqDTO);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user