Ver código fonte

医嘱领药单时间加一秒

xiaochan 2 meses atrás
pai
commit
b8ea9ede39

+ 2 - 2
src/main/java/thyyxxk/webserver/dao/his/inpatient/HospitalizationCostsDao.java

@@ -100,8 +100,8 @@ public interface HospitalizationCostsDao extends BaseMapper<ZyDetailChargeTable>
             "charge_fee , self_flag , separate_flag , supress_flag , ward_code , dept_code , ope_flag ," +
             " exec_unit , retprice , amount , zy_serial_no , " +
             "serial , group_no , occ_cate ) values " +
-            "<foreach collection='list' item='item' separator=','>" +
-            "( #{yz.inpatientNo} , #{yz.admissTimes} , #{ledgerSn} , #{item.detailSn} , getdate() , #{opIdCode} , " +
+            "<foreach collection='list' item='item' index='index' separator=','>" +
+            "( #{yz.inpatientNo} , #{yz.admissTimes} , #{ledgerSn} , #{item.detailSn} , DATEADD(second, index, GETDATE()) , #{opIdCode} , " +
             "#{item.chargeCodeMx} ,  #{infantFlag} , " +
             // 金额
             "cast(#{item.chargeFee,jdbcType=DECIMAL} as decimal(14,5))," +

+ 2 - 2
src/main/java/thyyxxk/webserver/dao/his/inpatient/xmlr/XiangMuLuRuDao.java

@@ -317,8 +317,8 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
             "charge_fee , self_flag , separate_flag , supress_flag , ward_code , dept_code , ope_flag , exec_unit ," +
             " retprice , amount , zy_serial_no , " +
             "serial , group_no , occ_cate ) values " +
-            "<foreach collection='list' item='item' separator=','>" +
-            "( #{zyDetailCharge.inpatientNo} , #{zyDetailCharge.admissTimes} , #{ledgerSn} , #{item.detailSn} , getdate() , #{opIdCode} , " +
+            "<foreach collection='list' item='item' index='index' separator=','>" +
+            "( #{zyDetailCharge.inpatientNo} , #{zyDetailCharge.admissTimes} , #{ledgerSn} , #{item.detailSn} , DATEADD(second, index, GETDATE())  , #{opIdCode} , " +
             "#{item.chargeCodeMx} ,  #{infantFlag} , " +
             // 金额
             "cast(#{item.chargeFee,jdbcType=DECIMAL} as decimal(14,5))," +