|
@@ -116,14 +116,15 @@ public class TbPeopleService extends ServiceImpl<TbPeopleMapper, TbPeople> imple
|
|
//获取启停状态
|
|
//获取启停状态
|
|
Integer isLock = startStopDto.getIsLock();
|
|
Integer isLock = startStopDto.getIsLock();
|
|
//设置启/停
|
|
//设置启/停
|
|
- tbPeople1.setIsLock(isLock);
|
|
|
|
|
|
+ tbPeople1.setStatus(isLock);
|
|
//保存结果
|
|
//保存结果
|
|
int i = tbPeopleMapper.updateById(tbPeople1);
|
|
int i = tbPeopleMapper.updateById(tbPeople1);
|
|
//远程调用停用app user表中的边民账号
|
|
//远程调用停用app user表中的边民账号
|
|
int lock = adminInterface.isLock(id.toString(), People.PEOPLE_TYPE_ONE.getCode(), isLock);
|
|
int lock = adminInterface.isLock(id.toString(), People.PEOPLE_TYPE_ONE.getCode(), isLock);
|
|
- if((lock + i) != 2)throw new RuntimeException("停用失败!");
|
|
|
|
-
|
|
|
|
- return i == 1 && lock == 1;
|
|
|
|
|
|
+// if((lock + i) != 2)throw new RuntimeException("停用失败!");
|
|
|
|
+//
|
|
|
|
+// return i == 1 && lock == 1;
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|