移位管理修改和新增共用同一个方法bug修改

This commit is contained in:
zhou-hongcheng
2026-02-02 14:52:24 +08:00
parent 440129373c
commit 6af1bd8aa0
@@ -129,7 +129,13 @@ public class ShiftManageImpl extends ServiceImpl<ShiftManageMapper, ShiftManage>
shiftMaterialDetailList.add(shiftMaterialDetail);
});
iShiftMaterialDetailService.saveBatch(shiftMaterialDetailList);
return this.updateById(shiftManage);
Boolean b;
if (shiftManage.getShiftManageId() == null){
b = this.save(shiftManage);
}else {
b = this.updateById(shiftManage);
}
return b;
}
/**