|
@@ -20,7 +20,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"sex," +
|
|
|
"doctorName=(select rtrim(name) from a_employee_mi where code=refer_physician), " +
|
|
|
"admissDate=convert(varchar(10), admiss_date, 21) " +
|
|
|
- "from zy_actpatient where ward=#{ward} and " +
|
|
|
+ "from zy_actpatient where (small_dept=#{ward} or ward=#{ward}) and " +
|
|
|
"charindex('$',inpatient_no)=0 " +
|
|
|
"ORDER BY cast(bed_no AS int)")
|
|
|
List<SheetOverview> getPatientOverview(@Param("ward") String ward);
|
|
@@ -34,7 +34,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"sex " +
|
|
|
"from zy_inactpatient where " +
|
|
|
"dis_date>=#{start} and dis_date<=#{end} and " +
|
|
|
- "ward=#{ward} and " +
|
|
|
+ "(small_dept=#{ward} or ward=#{ward}) and " +
|
|
|
"charindex('$',inpatient_no)=0 " +
|
|
|
"ORDER BY cast(bed_no AS int)")
|
|
|
List<SheetOverview> getOutPatients(GetOutSheetParam param);
|
|
@@ -531,6 +531,9 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
|
|
|
"from zy_dis_diag_yb where inpatient_no=#{bah} and admiss_times=#{times}")
|
|
|
List<YiBaoDisdiag> getYbDiags(@Param("bah") String bah, @Param("times") int times);
|
|
|
|
|
|
+ @Update("update zy_actpatient set operation=#{operation} where inpatient_no=#{patNo}")
|
|
|
+ void updateOperation(@Param("patNo") String patNo, @Param("operation") String operation);
|
|
|
+
|
|
|
@Delete("delete from zy_dis_diag_yb where inpatient_no=#{bah} and admiss_times=#{times}")
|
|
|
void deleteOldYbDiag(@Param("bah") String bah, @Param("times") int times);
|
|
|
|