package cn.hnthyy.thmz.mapper.his.mz;


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

/**
 * 病历字典数据库操作
 */
public interface MzBaRecordMapper {

    @Insert("insert INTO mz_ba_record(patient_id,times,bl_code,create_date,create_code,archive_mark,keyword1,keyword2,keyword3,keyword4,keyword5,record_date,archive_date,archive_code,last_modifier,dept_code,ward_code,remark_text) " +
            "VALUES (#{patientId,jdbcType=CHAR},#{times,jdbcType=INTEGER},#{blCode,jdbcType=CHAR},#{createDate,jdbcType=TIMESTAMP},#{createCode,jdbcType=CHAR},#{archiveMark,jdbcType=CHAR}" +
            ",#{keyword1,jdbcType=CHAR},#{keyword2,jdbcType=CHAR},#{keyword3,jdbcType=CHAR},#{keyword4,jdbcType=CHAR},#{keyword5,jdbcType=CHAR},#{recordDate,jdbcType=TIMESTAMP}" +
            ",#{archiveDate,jdbcType=TIMESTAMP},#{archiveCode,jdbcType=CHAR},#{lastModifier,jdbcType=CHAR},#{deptCode,jdbcType=CHAR},#{wardCode,jdbcType=CHAR},#{remarkText,jdbcType=VARCHAR}) ")
    int insertMzBaRecord(MzBaRecord mzBaRecord);
}
