| | |
| | | if (UpdatePositionStatus(db, entity.Id, "B")) // 禁用岗位 |
| | | return 1; |
| | | break; |
| | | case "2": |
| | | if (InsertOrUpdatePosition(db, entity)) // 插入或更新岗位 |
| | | return 1; |
| | | break; |
| | | case "3": |
| | | if (DeletePosition(db, entity.Id)) // 删除岗位 |
| | | return 1; |
| | | break; |
| | | case "2": |
| | | case "4": |
| | | if (InsertOrUpdatePosition(db, entity)) // 插入或更新岗位 |
| | | return 1; |
| | |
| | | "B")) // 批量禁用岗位 |
| | | throw new NotImplementedException("禁用失败"); |
| | | break; |
| | | case "2": |
| | | if (!InsertPositionBatch(db, |
| | | positionGroup.Value)) // 批量插入岗位 |
| | | throw new NotImplementedException("插入失败"); |
| | | break; |
| | | case "3": |
| | | if (!DeletePositionBatch(db, |
| | | positionGroup.Value)) // 批量删除岗位 |
| | | throw new NotImplementedException("删除失败"); |
| | | break; |
| | | case "2": |
| | | case "4": |
| | | if (!InsertOrUpdatePositionBatch(db, |
| | | positionGroup.Value)) // 批量插入或更新岗位 |