|
@ -216,7 +216,7 @@ public class BirthdayWishesService {
|
|
|
//获取当天0点
|
|
|
SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
|
|
|
String now = f.format(new Date());
|
|
|
String sql = "SELECT COUNT(DISTINCT p.id) " +
|
|
|
String sql = "SELECT DISTINCT p.id " +
|
|
|
"from wlyy_archive a,base_patient p WHERE a.patient = p.id and a.sign_status = 1 and EXISTS( " +
|
|
|
"SELECT DISTINCT sr.patient from base_service_package_sign_record sr,base_service_package_record r, " +
|
|
|
"base_service_package_item i,base_team_member m " +
|