|
|
@@ -70,8 +70,8 @@ public class DeptServiceImpl implements DeptService {
|
|
|
@Override
|
|
|
public Result<String> updateOne(MiddleDeptParam param) {
|
|
|
YtMiddleDept old = deptMapper.selectPrimary(param.getDeptId());
|
|
|
- if(Objects.nonNull(old)){
|
|
|
- return Result.resultErr(RepMessage.OBJECT_ALREADY_EXIST);
|
|
|
+ if(Objects.isNull(old)){
|
|
|
+ return Result.resultErr(RepMessage.OBJECT_NOT_EXIST);
|
|
|
}
|
|
|
YtMiddleDept dept = new YtMiddleDept();
|
|
|
BeanUtils.copyProperties(param, dept);
|