|
@ -342,16 +342,16 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
week = 6;
|
|
|
}
|
|
|
startDate.add(Calendar.DATE, -week);
|
|
|
sql += " and apply_date >= '" + (df.format(startDate.getTime()) + " 00:00:00")
|
|
|
+ "' and apply_date <= '" + (df.format(today.getTime()) + " 23:59:59'");
|
|
|
sql += " and apply_date between '" + (df.format(startDate.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(today.getTime()) + " 23:59:59'");
|
|
|
} else if (label.getLabelCode().equals("2")) {
|
|
|
startDate.set(Calendar.DATE, 1);
|
|
|
sql += " and apply_date >= '" + (df.format(startDate.getTime()) + " 00:00:00")
|
|
|
+ "' and apply_date <= '" + (df.format(today.getTime()) + " 23:59:59'");
|
|
|
sql += " and apply_date between '" + (df.format(startDate.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(today.getTime()) + " 23:59:59'");
|
|
|
} else if (label.getLabelCode().equals("3")) {
|
|
|
startDate.add(Calendar.DATE, 29);
|
|
|
sql += " and apply_date >= '" + (df.format(today.getTime()) + " 00:00:00")
|
|
|
+ "' and apply_date <= '" + (df.format(startDate.getTime()) + " 23:59:59'");
|
|
|
sql += " and end between '" + (df.format(today.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(startDate.getTime()) + " 23:59:59'");
|
|
|
} else {
|
|
|
throw new Exception("label is not exist");
|
|
|
}
|