Selaa lähdekoodia

修复admissDate由String类型改为Date类型引发的bug

lighter 3 vuotta sitten
vanhempi
commit
7f0cb2e113

+ 5 - 5
src/main/java/thyyxxk/webserver/dao/his/casefrontsheet/CaseFrontSheetDao.java

@@ -19,7 +19,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "name=rtrim(name)," +
             "sex," +
             "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=refer_physician), " +
-            "admissDate=convert(varchar(10), admiss_date, 21) " +
+            "admiss_date " +
             "from zy_actpatient with(nolock) where (small_dept=#{ward} or ward=#{ward}) and " +
             "charindex('$',inpatient_no)=0 " +
             "ORDER BY cast(bed_no AS int)")
@@ -607,7 +607,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=b.zyys), " +
             "signDate=(convert(varchar(10), b.sign_date, 21)), " +
             "rtrim(b.blfx) blfx, " +
-            "disDate=(convert(varchar(19), a.dis_date, 21))," +
+            "a.dis_date," +
             "inDays=(select datediff(day, a.admiss_date, a.dis_date)), " +
             "a.total_charge totalCost " +
             "from zy_inactpatient a with(nolock), batj_ba2 b with(nolock) " +
@@ -627,7 +627,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "a.sex, " +
             "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=b.zyys), " +
             "signDate=(convert(varchar(10), b.sign_date, 21)), " +
-            "disDate=(convert(varchar(19), a.dis_date, 21))," +
+            "a.dis_date," +
             "admissDept=(select rtrim(name) from zd_unit_code with(nolock) where code=a.admiss_dept), " +
             "dismissDept=(select rtrim(name) from zd_unit_code with(nolock) where code=a.dis_dept), " +
             "rtrim(b.blfx) blfx, " +
@@ -656,7 +656,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "a.sex, " +
             "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=b.zyys), " +
             "signDate=(convert(varchar(10), b.sign_date, 21)), " +
-            "disDate=(convert(varchar(19), a.dis_date, 21))," +
+            "a.dis_date," +
             "admissDept=(select rtrim(name) from zd_unit_code with(nolock) where code=a.admiss_dept), " +
             "dismissDept=(select rtrim(name) from zd_unit_code with(nolock) where code=a.dis_dept), " +
             "rtrim(b.blfx) blfx, " +
@@ -679,7 +679,7 @@ public interface CaseFrontSheetDao extends BaseMapper<CaseFrontsheetMain> {
             "rtrim(a.inpatient_no) bah, " +
             "a.admiss_times times, " +
             "rtrim(a.name) name, " +
-            "disDate=(convert(varchar(19), a.dis_date, 21))," +
+            "a.dis_date," +
             "a.sex, " +
             "doctorName=(select rtrim(name) from a_employee_mi with(nolock) where code=b.zyys), " +
             "signDate=(convert(varchar(10), b.sign_date, 21)), " +