package cn.hnthyy.thmz.mapper.his;

import cn.hnthyy.thmz.entity.his.YpOutDetlYf;
import org.apache.ibatis.annotations.Insert;

/**
 * 药房药品出库持久化类
 */
public interface YpOutDetlYfMapper {


    /**
     * 保存药房药品出库记录
     * @param ypOutDetlYf
     * @return
     */
    @Insert("Insert into yp_out_detl_yf ( out_date , out_seri , in_seri , draw_no , dept_code , charge_code , serial , pack_retprice , out_amt , drawer , keeper , eff_date , out_type , stock_amount , group_no , group_no_out , buy_price , input_id , sys_date , confirm_id , confirm_flag , confirm_date , comment ) " +
            "values ( #{outDate} , #{outSeri} , #{inSeri} , #{drawNo} , #{deptCode} , #{chargeCode} , #{serial} , #{packRetprice} , #{outAmt} , #{drawer} , #{keeper} , #{effDate}" +
            " , #{outType} , #{stockAmount} ,#{groupNo} , #{groupNoOut} , #{buyPrice} , #{inputId} , getdate ( ) , #{confirmId} , #{confirmFlag} , #{confirmDate} , #{comment} )")
    int insertYpOutDetlYf(YpOutDetlYf ypOutDetlYf);

}
