bug修复;
This commit is contained in:
+4
@@ -44,4 +44,8 @@ public class ReceivingAccountPO extends BaseVOEntity {
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -26,4 +26,9 @@ public class ReceivingAccountDO extends BaseVOEntity {
|
|||||||
|
|
||||||
@ApiModelProperty("删除标记:1-正常,2-已删除")
|
@ApiModelProperty("删除标记:1-正常,2-已删除")
|
||||||
private Integer delFlag;
|
private Integer delFlag;
|
||||||
|
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,4 +36,8 @@ public class ReceivingAccountDTO {
|
|||||||
@ApiModelProperty("更新时间")
|
@ApiModelProperty("更新时间")
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date updateTime;
|
private Date updateTime;
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
}
|
}
|
||||||
|
|||||||
+5
@@ -53,4 +53,9 @@ public class CreateMaterialCommand {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "物料内容")
|
@ApiModelProperty(value = "物料内容")
|
||||||
private String materialContent;
|
private String materialContent;
|
||||||
|
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -38,7 +38,7 @@ public class MaterialCommandService {
|
|||||||
command.getWeight(),
|
command.getWeight(),
|
||||||
command.getMaterialVolume(),
|
command.getMaterialVolume(),
|
||||||
command.getMaterialContent(),
|
command.getMaterialContent(),
|
||||||
command.getRemark(),
|
command.getRemark(),command.getTopOrganizationId(),command.getOrganizationId(),
|
||||||
codeGenerator
|
codeGenerator
|
||||||
);
|
);
|
||||||
return materialRepository.save(material).getId();
|
return materialRepository.save(material).getId();
|
||||||
@@ -61,7 +61,7 @@ public class MaterialCommandService {
|
|||||||
command.getWeight(),
|
command.getWeight(),
|
||||||
command.getMaterialVolume(),
|
command.getMaterialVolume(),
|
||||||
command.getMaterialContent(),
|
command.getMaterialContent(),
|
||||||
command.getRemark()
|
command.getRemark(),command.getTopOrganizationId(),command.getOrganizationId()
|
||||||
);
|
);
|
||||||
|
|
||||||
materialRepository.update(material);
|
materialRepository.update(material);
|
||||||
|
|||||||
+4
@@ -47,4 +47,8 @@ public class UpdateMaterialCommand {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "物料内容")
|
@ApiModelProperty(value = "物料内容")
|
||||||
private String materialContent;
|
private String materialContent;
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
}
|
}
|
||||||
|
|||||||
+13
-4
@@ -33,6 +33,10 @@ public class Material {
|
|||||||
private String materialContent;
|
private String materialContent;
|
||||||
private LocalDateTime createTime;
|
private LocalDateTime createTime;
|
||||||
private LocalDateTime updateTime;
|
private LocalDateTime updateTime;
|
||||||
|
/**组织相关*/
|
||||||
|
private String topOrganizationId;
|
||||||
|
/**组织相关*/
|
||||||
|
private String organizationId;
|
||||||
|
|
||||||
|
|
||||||
// 私有构造方法
|
// 私有构造方法
|
||||||
@@ -47,7 +51,7 @@ public class Material {
|
|||||||
BigDecimal weight,
|
BigDecimal weight,
|
||||||
BigDecimal materialVolume,
|
BigDecimal materialVolume,
|
||||||
String materialContent,
|
String materialContent,
|
||||||
String remark) {
|
String remark,String topOrganizationId,String organizationId ) {
|
||||||
validateRequiredFields( category, name, unit);
|
validateRequiredFields( category, name, unit);
|
||||||
this.ownerId = ownerId;
|
this.ownerId = ownerId;
|
||||||
this.shipper = shipper;
|
this.shipper = shipper;
|
||||||
@@ -63,6 +67,8 @@ public class Material {
|
|||||||
this.materialContent = materialContent;
|
this.materialContent = materialContent;
|
||||||
this.createTime = LocalDateTime.now();
|
this.createTime = LocalDateTime.now();
|
||||||
this.updateTime = LocalDateTime.now();
|
this.updateTime = LocalDateTime.now();
|
||||||
|
this.topOrganizationId = topOrganizationId;
|
||||||
|
this.organizationId = organizationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -78,10 +84,11 @@ public class Material {
|
|||||||
BigDecimal weight,
|
BigDecimal weight,
|
||||||
BigDecimal materialVolume,
|
BigDecimal materialVolume,
|
||||||
String materialContent,
|
String materialContent,
|
||||||
String remark,
|
String remark,String topOrganizationId,String organizationId,
|
||||||
MaterialCodeGenerator codeGenerator) {
|
MaterialCodeGenerator codeGenerator) {
|
||||||
Material material = new Material(ownerId, shipper, category, name, model,
|
Material material = new Material(ownerId, shipper, category, name, model,
|
||||||
unit, value, codeManaged, weight, materialVolume, materialContent, remark
|
unit, value, codeManaged, weight, materialVolume, materialContent, remark,
|
||||||
|
topOrganizationId,organizationId
|
||||||
);
|
);
|
||||||
material.materialCode = codeGenerator.generate();
|
material.materialCode = codeGenerator.generate();
|
||||||
return material;
|
return material;
|
||||||
@@ -97,7 +104,7 @@ public class Material {
|
|||||||
BigDecimal weight,
|
BigDecimal weight,
|
||||||
BigDecimal materialVolume,
|
BigDecimal materialVolume,
|
||||||
String materialContent,
|
String materialContent,
|
||||||
String remark) {
|
String remark,String topOrganizationId,String organizationId ) {
|
||||||
this.ownerId = ownerId;
|
this.ownerId = ownerId;
|
||||||
this.shipper = shipper;
|
this.shipper = shipper;
|
||||||
this.category = category;
|
this.category = category;
|
||||||
@@ -111,6 +118,8 @@ public class Material {
|
|||||||
this.codeManaged = codeManaged;
|
this.codeManaged = codeManaged;
|
||||||
this.remark = remark;
|
this.remark = remark;
|
||||||
this.updateTime = LocalDateTime.now();
|
this.updateTime = LocalDateTime.now();
|
||||||
|
this.topOrganizationId = topOrganizationId;
|
||||||
|
this.organizationId = organizationId;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 保留的核心校验
|
// 保留的核心校验
|
||||||
|
|||||||
Reference in New Issue
Block a user