|
@@ -595,7 +595,7 @@ 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) " +
|
|
|
+ " , zy_serial_no, charge_code_mx, serial,ss_code,yb_self_flag,refer_physician,doctor_code) " +
|
|
|
"VALUES " +
|
|
|
"<foreach collection='list' item='item' separator=','>" +
|
|
|
"(#{zyDetailCharge.inpatientNo}, #{zyDetailCharge.admissTimes}, #{ledgerSn}, #{item.detailSn}, getdate() " +
|
|
@@ -610,7 +610,8 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
"<if test=\"item.ybSelfFlag != null\">" +
|
|
|
"#{item.ybSelfFlag}" +
|
|
|
"</if>" +
|
|
|
- ",#{zyDetailCharge.referPhysician})" +
|
|
|
+ ",#{zyDetailCharge.referPhysician}," +
|
|
|
+ "#{item.doctorCode})" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
void chaRuFeiYong(@Param("zyDetailCharge") ZyDetailCharge zyDetailCharge,
|
|
@@ -618,6 +619,14 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
@Param("infantFlag") int infantFlag,
|
|
|
@Param("ledgerSn") Integer ledgerSn);
|
|
|
|
|
|
+ @Select("<script>" +
|
|
|
+ "SELECT charge_code charge_code_mx,group_no,serial FROM yp_base_yf WHERE charge_code in " +
|
|
|
+ "<foreach collection='list' item='item' index='index' open='(' close=')' separator=','>" +
|
|
|
+ "#{item.chargeCodeMx}" +
|
|
|
+ "</foreach>" +
|
|
|
+ "</script>")
|
|
|
+ List<ZyDetailCharge> yaoFang(List<ZyDetailCharge> yaoPingCode);
|
|
|
+
|
|
|
|
|
|
@Insert("<script>" +
|
|
|
"insert into zy_drug ( inpatient_no , admiss_times , ledger_sn , detail_sn , charge_date , op_id_code , charge_code , infant_flag , " +
|
|
@@ -633,7 +642,7 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
" cast(#{item.chargeFee,jdbcType=DECIMAL} / #{item.chargeAmount,jdbcType=DECIMAL} as decimal(14,5)) , " +
|
|
|
// 数量
|
|
|
"cast(#{item.chargeAmount,jdbcType=DECIMAL} as decimal(14,5)) " +
|
|
|
- ", #{zyDetailCharge.zySerialNo} , #{item.serial} , #{item.groupNo} ,'1' )" +
|
|
|
+ ", #{zyDetailCharge.zySerialNo} , #{item.serial} , 73 ,'1' )" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
void shenQingYaoPing(@Param("zyDetailCharge") ZyDetailCharge zyDetailCharge,
|
|
@@ -1098,4 +1107,5 @@ public interface XiangMuLuRuDao extends BaseMapper<ZyDetailCharge> {
|
|
|
@Param("ledgerSn") Integer ledgerSn,
|
|
|
@Param("detailSn") Integer detailSn,
|
|
|
@Param("oriDetailSn") Integer oriDetailSn);
|
|
|
+
|
|
|
}
|