diff --git a/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java b/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java index 118787998..d9686405c 100644 --- a/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java +++ b/kernel-s-system/system-business-organization/src/main/java/cn/stylefeng/roses/kernel/system/modular/organization/service/impl/HrPositionServiceImpl.java @@ -16,7 +16,6 @@ import cn.stylefeng.roses.kernel.system.modular.organization.mapper.HrPositionMa import cn.stylefeng.roses.kernel.system.modular.organization.service.HrPositionService; import cn.stylefeng.roses.kernel.system.pojo.organization.HrPositionRequest; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; -import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; @@ -86,11 +85,9 @@ public class HrPositionServiceImpl extends ServiceImpl updateWrapper = new LambdaUpdateWrapper<>(); - updateWrapper.eq(HrPosition::getPositionId, sysPosition.getPositionId()); - updateWrapper.set(HrPosition::getStatusFlag, hrPositionRequest.getStatusFlag()); + sysPosition.setStatusFlag(hrPositionRequest.getStatusFlag()); - this.update(updateWrapper); + this.updateById(sysPosition); } @Override