调整新增人员的照片下发

新增设备连接上之后的照片自动下发
This commit is contained in:
andy 2025-06-19 12:39:28 +08:00
parent 7d1ddcb9a4
commit 41313ef7d3
2 changed files with 3 additions and 1 deletions

View File

@ -169,6 +169,8 @@ public class WebSocketServer{
}
//发送设备按钮信息
snDetailService.sendButtons(Collections.asList(snDetail.getSn()));
//发送照片
snDetailService.sendPhoto(Collections.asList(snDetail.getSn()), null);
}else{
//接受设备端返回的数据先不做处理
System.out.println("设备返回信息:"+message);

View File

@ -178,7 +178,7 @@ public class SysStaffServiceImpl extends ServiceImpl<SysStaffMapper, SysStaff> i
dkj_list.add(com.evo.equipment.constant.Constants.EQ_DEVICE_PUBLIC_CODE); //公共
dkj_list.add(sysStaff.getTimeClock());
//下发照片
eqSnDetailService.sendPhoto(dkj_list, Collections.asList(Collections.asMap("userId", String.valueOf(sysStaff.getUserId()), "name", sysStaff.getName(), "photoUrl", com.evo.equipment.constant.Constants.STAFF_IMAGE_URL_OVER_TIME+upload.getFileName())));
eqSnDetailService.sendPhoto(dkj_list, Collections.asList(Collections.asMap("userId", String.valueOf(sysStaff.getUserId()), "name", sysStaff.getName(), "photoUrl", ParamUtils.getGlobalStaticUrl()+upload.getFileName())));
}
}