日志添加
This commit is contained in:
@@ -294,6 +294,7 @@ public class SysPeopleController extends BaseController
|
||||
List<SysEquipment> list = equipmentService.selectSysEquipmentList(equipment);
|
||||
for (SysEquipment e : list) {
|
||||
String data = sdkService.personDelete(admitGuids, e.getIp(), e.getPassword());
|
||||
log.info("remove-宇泛设备删除人员结果:{}", data);
|
||||
JSONObject jsons = JSONObject.parseObject(data);
|
||||
if (jsons == null || !jsons.containsKey("code") || !StrUtil.equals("LAN_SUS-0", jsons.getString("code"))) {
|
||||
throw new ServiceException("人员删除失败:设备" + e.getIp() + "删除异常");
|
||||
@@ -740,8 +741,9 @@ public class SysPeopleController extends BaseController
|
||||
|
||||
SysEquipment equipment=new SysEquipment();
|
||||
equipment.setFlag("0");
|
||||
equipment.setProductId(3L);
|
||||
List<SysEquipment> list = equipmentService.selectSysEquipmentList(equipment);
|
||||
if(list.size()>0){
|
||||
if (CollUtil.isNotEmpty(list)) {
|
||||
for (Long id : ids) {//下发到设备上
|
||||
SysPeople people = sysPeopleService.selectSysPeopleById(id);
|
||||
//下发设备
|
||||
|
||||
@@ -729,6 +729,7 @@ public class SysSdkServiceImpl implements ISysSdkService {
|
||||
//删除人员信息
|
||||
if (operType == 1) {
|
||||
String data = this.personDelete(person.getId(), e.getIp(), e.getPassword());
|
||||
log.info("authDeviceAddUpdate-宇泛设备删除人员结果:{}", data);
|
||||
if (!verifyResult(data, sysEqDownRecord)) {
|
||||
i++;
|
||||
continue;
|
||||
@@ -737,12 +738,14 @@ public class SysSdkServiceImpl implements ISysSdkService {
|
||||
|
||||
//新增人员信息
|
||||
String data = this.personCreate(person, e.getIp(), e.getPassword());
|
||||
log.info("authDeviceAddUpdate-宇泛设备新增人员结果:{}", data);
|
||||
if (!verifyResult(data, sysEqDownRecord)) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if (StringUtils.isNotEmpty(people.getFaceGuid())) {
|
||||
String dataImg = this.imageCreateUrl(people.getGuid(), people.getFaceGuid(), people.getAvatar(), e.getIp(), e.getPassword());
|
||||
log.info("authDeviceAddUpdate-宇泛设备新增人员人脸结果:{}", dataImg);
|
||||
if (!verifyResult(dataImg, sysEqDownRecord)) {
|
||||
i++;
|
||||
sysEqDownRecord.setFaceDownResult(1);
|
||||
|
||||
Reference in New Issue
Block a user