物料修改

This commit is contained in:
zhou-hongcheng
2026-01-24 16:19:44 +08:00
parent 12a5cc6129
commit 1997aa2e8d
@@ -54,7 +54,7 @@ public class MaterialBaseInfoApi extends BaseController {
{
//转换实体
MaterialBaseInfoDO materialBaseInfoDO = materialBaseInfoAssembler.toDO(materialBaseInfoDTO);
if(1 == materialBaseInfoDTO.getUpdateFeign()){
if(materialBaseInfoDTO.getMaterialBaseInfoId() != null){
return toAjax(materialBaseInfoApplicationService.update(materialBaseInfoDO));
}else {
return toAjax(materialBaseInfoApplicationService.insert(materialBaseInfoDO));