Bladeren bron

子医嘱的给药方式

DESKTOP-0GD05B0\Administrator 2 jaren geleden
bovenliggende
commit
a31287dd02
1 gewijzigde bestanden met toevoegingen van 10 en 2 verwijderingen
  1. 10 2
      src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/YiZhuLuRuDao.java

+ 10 - 2
src/main/java/thyyxxk/webserver/dao/his/zhuyuanyisheng/YiZhuLuRuDao.java

@@ -493,8 +493,16 @@ public interface YiZhuLuRuDao {
             "set confirm_time = #{confirmDate}, " +
             "    signer       = #{userCode}, " +
             "    status_time  = #{confirmDate}, " +
-            "    status_flag  = '2' " +
-            " where act_order_no = #{decimal} ")
+            "    status_flag  = '2'," +
+            "    supply_code  = case " +
+            "                      when parent_no is not null then (select isnull(nullif(supply_child, ''), '044') " +
+            "                                                       from yz_supply_type c " +
+            "                                                       where c.supply_code = (select supply_code " +
+            "                                                                              from yz_act_order b " +
+            "                                                                              where b.act_order_no = yz_act_order.parent_no)) " +
+            "                      else " +
+            "                          yz_act_order.supply_code end " +
+            " where act_order_no = #{decimal}")
     void confirmOrders(BigDecimal decimal, String userCode, Date confirmDate);