怎样把考勤机上的数据用java程序得到? 5
2个回答
展开全部
汉王希望帮到你
FaceId faceId=new FaceId();
FaceId_ErrorCode faceId_ErrorCode = faceId.Connect("192.xxx.xxx.xxx",xxxx,x);
System.out.println(faceId_ErrorCode);
FaceIdAnswer output =new FaceIdAnswer();
String Command = "GetRecord(start_time='2018-05-15 12:36:36' end_time=\"" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\")";
FaceId_ErrorCode execute = faceId.Execute(Command, output,"GBK");
System.out.println(execute);
if (execute.equals(FaceId_ErrorCode.Success))
{
// System.out.println(output.answer);
// 提取考勤记录
List<String> RecordList = new ArrayList<String>();
下面遍历你自己写吧。希望采纳。
FaceId faceId=new FaceId();
FaceId_ErrorCode faceId_ErrorCode = faceId.Connect("192.xxx.xxx.xxx",xxxx,x);
System.out.println(faceId_ErrorCode);
FaceIdAnswer output =new FaceIdAnswer();
String Command = "GetRecord(start_time='2018-05-15 12:36:36' end_time=\"" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()) + "\")";
FaceId_ErrorCode execute = faceId.Execute(Command, output,"GBK");
System.out.println(execute);
if (execute.equals(FaceId_ErrorCode.Success))
{
// System.out.println(output.answer);
// 提取考勤记录
List<String> RecordList = new ArrayList<String>();
下面遍历你自己写吧。希望采纳。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询