移位管理修改和新增共用同一个方法bug修改
This commit is contained in:
+7
-1
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user