物料wms模块回滚之前修改

This commit is contained in:
zhou-hongcheng
2026-01-26 11:17:38 +08:00
parent df671374b3
commit 1fadbbdec5
2 changed files with 2 additions and 2 deletions
@@ -25,7 +25,7 @@ public class MaterialBaseInfo extends BaseVOEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("物料基础信息id")
@TableId(type = IdType.ASSIGN_ID)
@TableId(type = IdType.INPUT)
private Long materialBaseInfoId;
@ApiModelProperty("组织表ID")
@@ -54,7 +54,7 @@ public class MaterialBaseInfoApi extends BaseController {
{
//转换实体
MaterialBaseInfoDO materialBaseInfoDO = materialBaseInfoAssembler.toDO(materialBaseInfoDTO);
if(materialBaseInfoDTO.getMaterialBaseInfoId() != null){
if(1 == materialBaseInfoDTO.getUpdateFeign()){
return toAjax(materialBaseInfoApplicationService.update(materialBaseInfoDO));
}else {
return toAjax(materialBaseInfoApplicationService.insert(materialBaseInfoDO));