liuqq пре 3 година
родитељ
комит
46b1a8a656
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/java/com/diagbot/facade/ViewFacade.java

+ 2 - 2
src/main/java/com/diagbot/facade/ViewFacade.java

@@ -250,7 +250,7 @@ public class ViewFacade {
                 xyHomePageVo.setDockModeType("0");
                 this.getHomePageByView(xyHomePageVo);
                 //获取病人医嘱
-                String doctorAdviceSql = "select * from doctor_order where behospitalCode= '" + hospitalCode + "' and behospitalnum= '" + hospitalNum + "'";
+                String doctorAdviceSql = "select * from doctor_order where behospitalCode= '" + hospitalCode + "' and behospitalnum= '" + hospitalNum + "' and diagnosetype='出院诊断'";
                 this.getDoctorAdvice(doctorAdviceSql);
 
                 //获取化验信息和相应的化验结果并添加修改
@@ -286,7 +286,7 @@ public class ViewFacade {
         //从视图拉取数据
 
         String homepageSql = "select * from homePage where behospitalCode= '" + xyHomePageVo.getBehospitalCode() + "' and behospitalnum= '" + xyHomePageVo.getFileCode() + "'";
-        String diagSql = "select * from homePage_diag where behospitalCode= '" + xyHomePageVo.getBehospitalCode() + "' and behospitalnum= '" + xyHomePageVo.getFileCode() + "'";
+        String diagSql = "select * from homePage_diag where behospitalCode= '" + xyHomePageVo.getBehospitalCode() + "' and behospitalnum= '" + xyHomePageVo.getFileCode() + "' and diagnosetype='出院诊断'";
         String opsSql = "select * from homePage_operation where behospitalCode= '" + xyHomePageVo.getBehospitalCode() + "' and behospitalnum= '" + xyHomePageVo.getFileCode() + "'";
 
         this.getHomePage(homepageSql);