|
@@ -292,34 +292,24 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
" , op_id_code, charge_code, infant_flag, charge_status, charge_fee " +
|
|
|
" , self_flag, separate_flag, suppress_flag, ward_code, dept_code " +
|
|
|
" , order_no, ope_flag, exec_unit, charge_amount, gen_time " +
|
|
|
- " , zy_serial_no, charge_code_mx, serial,ss_code,yb_self_flag,refer_physician,doctor_code) " +
|
|
|
+ " , zy_serial_no, charge_code_mx, serial,ss_code,yb_self_flag,refer_physician,doctor_code,receipt_no) " +
|
|
|
"VALUES " +
|
|
|
"<foreach collection='list' item='item' separator=','>" +
|
|
|
- "(#{zyDetailCharge.inpatientNo}, #{zyDetailCharge.admissTimes}, #{ledgerSn}, #{item.detailSn}, getdate() " +
|
|
|
+ "(#{zyDetailCharge.inpatientNo}, #{zyDetailCharge.admissTimes}, #{ledgerSn}, #{item.detailSn}, '${chargeDate}' " +
|
|
|
" , #{zyDetailCharge.opIdCode}, #{item.chargeCode}, #{infantFlag}, '2', cast(#{item.chargeAmount,jdbcType=DECIMAL} as decimal(14,5)) " +
|
|
|
" , '0', '0', NULL, #{zyDetailCharge.ward}, #{zyDetailCharge.dept} " +
|
|
|
- " , #{item.orderNo}, '0', #{item.deptCode}, cast(#{item.amount,jdbcType=DECIMAL} as decimal(14,5)), getdate() " +
|
|
|
+ " , #{item.orderNo}, '0', #{item.deptCode}, cast(#{item.amount,jdbcType=DECIMAL} as decimal(14,5)), '${chargeDate}' " +
|
|
|
" , #{zyDetailCharge.zySerialNo}, #{item.chargeCodeMx}, #{item.serial},#{zyDetailCharge.ssCode}" +
|
|
|
" ,#{item.ybSelfFlag} " +
|
|
|
- ",#{zyDetailCharge.referPhysician},null)" +
|
|
|
+ ",#{zyDetailCharge.referPhysician},null,#{receiptNo})" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
void chaRuFeiYong(@Param("zyDetailCharge") ZyDetailCharge zyDetailCharge,
|
|
|
@Param("list") List<ZyDetailCharge> list,
|
|
|
@Param("infantFlag") int infantFlag,
|
|
|
- @Param("ledgerSn") Integer ledgerSn);
|
|
|
-
|
|
|
- @Select("select b.class as class_code," +
|
|
|
- " a.drug_flag as drug_class," +
|
|
|
- " a.mini_unit " +
|
|
|
- "from yz_act_order a, " +
|
|
|
- " yz_supply_type b " +
|
|
|
- "where a.supply_code = b.supply_code " +
|
|
|
- " and a.act_order_no = #{order} ")
|
|
|
- ZyDetailCharge selectDrugClassByOrderNo(BigDecimal order);
|
|
|
-
|
|
|
- @Select("select count(1) from yp_zd_dict where code = #{code} and serial = #{serial} and drug_kind = '0013'")
|
|
|
- Integer getDrugKing(String code, String serial);
|
|
|
+ @Param("ledgerSn") Integer ledgerSn,
|
|
|
+ @Param("chargeDate") String chargeDate,
|
|
|
+ @Param("receiptNo") String receiptNo);
|
|
|
|
|
|
@Insert("<script>" +
|
|
|
"insert into zy_drug ( inpatient_no , admiss_times , ledger_sn , detail_sn , charge_date , op_id_code ," +
|