修改岗位

This commit is contained in:
2023-07-03 09:35:41 +08:00
parent 16e88aafba
commit 58c5f8455d
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func (r *AdminPostDao) DeleteAdminPostById(tx *gorm.DB, deptId int64) error {
// EditAdminPostById 修改岗位-岗位id
func (r *AdminPostDao) EditAdminPostById(tx *gorm.DB, deptId int64, data interface{}) error {
err := tx.Model(&model.AdminPost{}).Where("dept_id = ?", deptId).Updates(data).Error
err := tx.Model(&model.AdminPost{}).Where("post_id = ?", deptId).Updates(data).Error
if err != nil {
return err
}