|
@ -71,7 +71,7 @@ public class DoctorSchemeService {
|
|
* @date 2017/9/13 16:23
|
|
* @date 2017/9/13 16:23
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
public List<String> getPatientsByDiseaseConditionDiseaseDeviceType(String teamCode, Integer disease, String diseaseCondition, Integer deviceType) throws Exception{
|
|
|
|
|
|
public List<String> getPatientsByDiseaseConditionDiseaseDeviceType(String teamCode, Integer disease, String diseaseCondition, Integer deviceType,String doctorcode) throws Exception{
|
|
|
|
|
|
String sql = "select DISTINCT p.code from wlyy_patient p ";
|
|
String sql = "select DISTINCT p.code from wlyy_patient p ";
|
|
|
|
|
|
@ -99,6 +99,8 @@ public class DoctorSchemeService {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
sql = sql + " and (sf.doctor = "+doctorcode+" or sf.doctor_health ="+doctorcode+")";
|
|
|
|
|
|
sql = sql + " and p.status > 0 and p.disease > 0 ";
|
|
sql = sql + " and p.status > 0 and p.disease > 0 ";
|
|
|
|
|
|
List<String> result = jdbcTemplate.queryForList(sql,new Object[]{},String.class);
|
|
List<String> result = jdbcTemplate.queryForList(sql,new Object[]{},String.class);
|