|
@ -1719,7 +1719,14 @@ public class FamilyContractService extends BaseService {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public int countAmountSigned(String doctor) {
|
|
public int countAmountSigned(String doctor) {
|
|
return signFamilyDao.countAmountSignedByDoctor(doctor);
|
|
|
|
|
|
AdminTeam adminTeam = doctorAdminTeamDao.findByLeaderCode(doctor);
|
|
|
|
if(adminTeam!=null){
|
|
|
|
//团队长只显示实际有签约关系的数量
|
|
|
|
return signFamilyDao.countAmountSignedByAdminTeam(adminTeam.getId());
|
|
|
|
}else{
|
|
|
|
//不是团队长显示所有有服务关系的数量
|
|
|
|
return signFamilyDao.countAmountSignedByDoctor(doctor);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -4051,7 +4058,7 @@ public class FamilyContractService extends BaseService {
|
|
" a.patient=p.`code` " +
|
|
" a.patient=p.`code` " +
|
|
" AND a.`status` IN (1, 2) ");
|
|
" AND a.`status` IN (1, 2) ");
|
|
List params = new ArrayList<>();
|
|
List params = new ArrayList<>();
|
|
if (teamCode!=null&&teamCode>0) {
|
|
|
|
|
|
if (teamCode != null && teamCode > 0) {
|
|
sb.append(" AND a.admin_team_code =? ");
|
|
sb.append(" AND a.admin_team_code =? ");
|
|
params.add(teamCode);
|
|
params.add(teamCode);
|
|
}
|
|
}
|
|
@ -4064,12 +4071,12 @@ public class FamilyContractService extends BaseService {
|
|
return patients;
|
|
return patients;
|
|
}
|
|
}
|
|
|
|
|
|
public String getSickArchiveFlag(String patient)throws Exception{
|
|
|
|
|
|
public String getSickArchiveFlag(String patient) throws Exception {
|
|
|
|
|
|
Patient p = patientDao.findByCode(patient);
|
|
Patient p = patientDao.findByCode(patient);
|
|
|
|
|
|
String rs = jwArchivesService.getSickArchiveFlag(p.getIdcard());
|
|
String rs = jwArchivesService.getSickArchiveFlag(p.getIdcard());
|
|
|
|
|
|
return rs ;
|
|
|
|
|
|
return rs;
|
|
}
|
|
}
|
|
}
|
|
}
|