|
@ -86,9 +86,9 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" where " + (doc.getLevel() == 2 ? " doctor" : "doctor_health") + " = ? and status > 0 and admin_team_code = ? ";
|
|
|
|
|
|
if (labelCode.equals("1")) {
|
|
|
int week = today.get(Calendar.DAY_OF_WEEK) - 1;
|
|
|
int week = today.get(Calendar.DAY_OF_WEEK) - 2;
|
|
|
|
|
|
if (week == 0) {
|
|
|
if (week == -1) {
|
|
|
week = 6;
|
|
|
}
|
|
|
startDate.add(Calendar.DATE, -week);
|
|
@ -99,7 +99,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
sql += " and apply_date between '" + (df.format(startDate.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(today.getTime()) + " 23:59:59'");
|
|
|
} else if (labelCode.equals("3")) {
|
|
|
startDate.add(Calendar.DATE, 29);
|
|
|
startDate.add(Calendar.DATE, 30);
|
|
|
sql += " and end between '" + (df.format(today.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(startDate.getTime()) + " 23:59:59'");
|
|
|
} else {
|
|
@ -352,7 +352,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
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);
|
|
|
startDate.add(Calendar.DATE, 30);
|
|
|
sql += " and end between '" + (df.format(today.getTime()) + " 00:00:00")
|
|
|
+ "' and '" + (df.format(startDate.getTime()) + " 23:59:59'");
|
|
|
} else {
|