private double workDuration(List<Worker> workerList1, String workerName,
			String date) {
		long workStartTime = 0;
		long workEndTime = 0;
		boolean flog = false; //8：00整打卡的标志位，"08:00:00"时workerTime=0，影响数据
		for (Worker worker : workerList1) {
			String workerDate;
			try {
				workerDate = dateFormat3.format(dateFormat3.parse(worker
						.getSignTime()));
				 String signTimeFormat2 = dateFormat2.format(dateFormat1.parse(worker
						.getSignTime()));
				long workerTime = dateFormat2.parse(signTimeFormat2).getTime();
				//"08:00:00"时workerTime=0
				if (worker.getName().equals(workerName)
						&& workerDate.equals(date)) {
					if (workStartTime == 0&&flog==false) {
						flog=true;
						workStartTime = workerTime;
					} else if (workEndTime == 0) {
						workEndTime = workerTime;
					} else if (workStartTime > workerTime) {
						workStartTime = workerTime;
					} else if (workEndTime < workerTime) {
						workEndTime = workerTime;
					}
				}
			} catch (ParseException e) {
				e.printStackTrace();
			}
		}
		double workingTime = (float) (workEndTime - workStartTime)
				/ (1000 * 60 * 60);
		return workingTime;
	}