|
@ -103,7 +103,7 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
* @param teamCode
|
|
|
* @return
|
|
|
*/
|
|
|
public Integer isShowRemindBtns(long teamCode) {
|
|
|
public Integer isShowRemindBtns(long teamCode,String doctor) {
|
|
|
Integer re = 0;
|
|
|
List<Map<String, Object>> signList = new ArrayList<>();
|
|
|
String sql = "";
|
|
@ -116,6 +116,7 @@ public class PhysicalExaminationRemindService extends BaseService {
|
|
|
" WHERE " +
|
|
|
" t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? " +
|
|
|
" AND (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" AND (YEAR(curdate()) -IF(length(idcard) = 18,substring(idcard, 7, 4),IF(length(idcard) = 15,concat('19', substring(idcard, 7, 2)),NULL)))>=65 " +
|
|
|
" AND t1.idcard not in " +
|
|
|
" (SELECT DISTINCT s.idcard " +
|