|
@@ -988,55 +988,6 @@ public interface YiZhuLuRuDao {
|
|
|
XinZhenYiZhu queryPatientInfo(@Param("patNo") String patNo,
|
|
|
@Param("times") Integer times);
|
|
|
|
|
|
- @Insert("<script>" +
|
|
|
- "INSERT INTO yz_act_order (order_code, order_name, frequ_code, instruction, discription, infant_flag, order_time, " +
|
|
|
- " /*录入人*/physician, start_time, drug_specification, drug_quan, supply_code, act_order_no, inpatient_no, " +
|
|
|
- " admiss_times, drug_flag/*药品中找这个是 药品的类型 a i d*/, enter_oper, /*录入时间*/ enter_time, " +
|
|
|
- " mini_unit /*药品中找 最小包装规格*/, " +
|
|
|
- " drug_weight/*药品的重量*/, drug_weight_unit/*药品重量单位*/, " +
|
|
|
- " status_flag/*2*/, self_buy, dose, dose_unit, /*这个是算出来的 输入的 dose 除以选中的单位 */drug_occ, drug_volume/*药品中的 volum 找*/, " +
|
|
|
- " drug_vol_unit/* 药品中的 vol_unit */, pay_self/*0*/, " +
|
|
|
- " serial/*前端传*/, group_no/*药房 */, doctor_flag/*写死为 1*/, exec_unit, dept_code/* 在院病人表中的 dept */, " +
|
|
|
- " ward_code /* 在院病人表中的 zk_ward*/, " +
|
|
|
- " reg_flag/* 0 */, " +
|
|
|
- " yb_self_flag/*医保自费标志*/,emergency_flag, " +
|
|
|
- " kf_flag /*饭前饭后*/,parent_no, refer_physician/*患者的管床医生*/, confirm_time/*确认时间*/, signer/*确认人*/,end_time,modifier) " +
|
|
|
- "VALUES " +
|
|
|
- "<foreach collection='list' item='item' separator=','>" +
|
|
|
- "(#{item.orderCode,jdbcType=VARCHAR}, #{item.orderName,jdbcType=VARCHAR}, #{item.frequCode,jdbcType=VARCHAR}," +
|
|
|
- " #{item.instruction,jdbcType=VARCHAR}, #{item.discription,jdbcType=VARCHAR}, #{infantFlag,jdbcType=VARCHAR}, " +
|
|
|
- "#{item.orderTime,jdbcType=VARCHAR}, " +
|
|
|
- " #{inputCode,jdbcType=TIMESTAMP}, #{item.startTime,jdbcType=TIMESTAMP}, #{item.drugSpecification}, " +
|
|
|
- "#{item.drugQuan,jdbcType=DECIMAL}," +
|
|
|
- " #{item.supplyCode}," +
|
|
|
- " #{item.actOrderNo,jdbcType=DECIMAL}, #{patNo}, #{times}, " +
|
|
|
- "#{item.drugFlag}," +
|
|
|
- " #{inputCode}, " +
|
|
|
- " getdate(), #{item.miniUnit}, " +
|
|
|
- "#{item.drugWeight,jdbcType=DECIMAL}, " +
|
|
|
- "#{item.drugWeightUnit}, '2', #{item.selfBuy}, " +
|
|
|
- "cast(#{item.dose,jdbcType=DECIMAL} as decimal(10,2))," +
|
|
|
- " #{item.doseUnit}, " +
|
|
|
- "cast(#{item.drugOcc,jdbcType=DECIMAL} as decimal(10,2))," +
|
|
|
- "cast(#{item.drugVolume,jdbcType=DECIMAL} as decimal(10,2))," +
|
|
|
- " #{item.drugVolUnit}, 0, #{item.serial}, " +
|
|
|
- "#{item.groupNo}," +
|
|
|
- "'1', #{item.execUnit}, " +
|
|
|
- "#{deptCode}, #{wardCode}, '0', #{item.ybSelfFlag},#{item.emergencyFlag}, #{item.kfFlag}," +
|
|
|
- "#{item.parentNo,jdbcType=DECIMAL}," +
|
|
|
- " #{referPhysician}, getdate(), #{inputCode},#{item.endTime,jdbcType=TIMESTAMP},#{item.modifier})" +
|
|
|
- "</foreach>" +
|
|
|
- "</script>")
|
|
|
- void chaRuYiZhu(@Param("patNo") String patNo,
|
|
|
- @Param("times") Integer times,
|
|
|
- @Param("inputCode") String inputCode,
|
|
|
- @Param("infantFlag") Integer infantFlag,
|
|
|
- @Param("deptCode") String deptCode,
|
|
|
- @Param("wardCode") String wardCode,
|
|
|
- @Param("referPhysician") String referPhysician,
|
|
|
- @Param("list") List<XinZhenYzActOrder> list);
|
|
|
-
|
|
|
-
|
|
|
@Select("<script>" +
|
|
|
"select top 20 * from (" +
|
|
|
"SELECT row_number() over (order by pattern_code ) row_number," +
|