/**
 * 更新传感器的用户信息
 *
 * @param sensorNumber
 * @param attendanceEmployeeVos
 */
 private synchronized void initializeAdd(String sensorNumber, List attendanceEmployeeVos) {
 if (attendanceEmployeeVos != null && attendanceEmployeeVos.size() > 0) {
 StringBuilder builder = new StringBuilder();
 int y = 1;
 for (AttendanceDataEmployeeVo attendanceEmployeeVo : attendanceEmployeeVos) {
 // 更新用户信息命令
 builder.append("\nC:-" + (++y) + “:DATA UPDATE USERINFO”);
 builder.append("\tPIN=" + attendanceEmployeeVo.getEmployeePin() +
 “\tName=” + attendanceEmployeeVo.getEmployeeName() +
 “\tGrp=” + attendanceEmployeeVo.getDeptId());
 for (int i = 0; i < attendanceEmployeeVo.getEmployeeFingers().size(); i++) {
 //更新指模命令
 builder.append("\nC:-" + (++y) + “:DATA UPDATE FINGERTMP”);
 builder.append("\tPIN=" + attendanceEmployeeVo.getEmployeePin() +
 “\tFID=” + attendanceEmployeeVo.getEmployeeFingers().get(i).getFid() +
 “\tSize=” + attendanceEmployeeVo.getEmployeeFingers().get(i).getTmp().length() +
 “\tTMP=” + attendanceEmployeeVo.getEmployeeFingers().get(i).getTmp());
 }
 }
 mapUpdate.put(sensorNumber, builder.toString());
 }
 }