|
@ -361,15 +361,18 @@ public class ImService {
|
|
return consultCode;
|
|
return consultCode;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public List<ConsultTeamDo> getUnfinishedConsult3(String patient, String doctor,int type) {
|
|
|
|
return consultTeamDao.findUnfinishedConsultType(patient,doctor,type);
|
|
|
|
}
|
|
|
|
|
|
public String getUnfinishedConsult(String patient, String doctor,int type) {
|
|
public String getUnfinishedConsult(String patient, String doctor,int type) {
|
|
String totalSql = "SELECT a.consult as \"consultCode\" " +
|
|
String totalSql = "SELECT a.consult as \"consultCode\" " +
|
|
"FROM wlyy_consult_team a,wlyy_consult_team_doctor b " +
|
|
|
|
"WHERE a.consult=b.consult " +
|
|
|
|
"AND a.patient= '" + patient + "' " +
|
|
|
|
"AND b.to_doctor='" + doctor + "' " +
|
|
|
|
|
|
"FROM wlyy_consult_team a " +
|
|
|
|
"WHERE a.patient= '" + patient + "' " +
|
|
|
|
"AND a.doctor='" + doctor + "' " +
|
|
"AND a.del='1' " +
|
|
"AND a.del='1' " +
|
|
"AND a.type=" +type+
|
|
"AND a.type=" +type+
|
|
"AND a.status=0";
|
|
|
|
|
|
" AND a.status=0";
|
|
List<Map<String, Object>> rstotal = hibenateUtils.createSQLQuery(totalSql);
|
|
List<Map<String, Object>> rstotal = hibenateUtils.createSQLQuery(totalSql);
|
|
String consultCode = null;
|
|
String consultCode = null;
|
|
if (rstotal != null && rstotal.size() > 0) {
|
|
if (rstotal != null && rstotal.size() > 0) {
|