| | |
| | | <mapper namespace="com.smartor.mapper.PatMedOperationItemMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOperationItem" id="PatMedOperationItemResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="opid" column="opid"/> |
| | | <result property="opcode" column="opcode"/> |
| | | <result property="opdesc" column="opdesc"/> |
| | | <result property="mainFlag" column="main_flag"/> |
| | | <result property="incitypecode" column="incitypecode"/> |
| | | <result property="incitypedesc" column="incitypedesc"/> |
| | | <result property="oplevelcode" column="oplevelcode"/> |
| | | <result property="opleveldesc" column="opleveldesc"/> |
| | | <result property="opposition" column="opposition"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="id" column="id"/> |
| | | <result property="opid" column="opid"/> |
| | | <result property="opcode" column="opcode"/> |
| | | <result property="opdesc" column="opdesc"/> |
| | | <result property="mainFlag" column="main_flag"/> |
| | | <result property="incitypecode" column="incitypecode"/> |
| | | <result property="incitypedesc" column="incitypedesc"/> |
| | | <result property="oplevelcode" column="oplevelcode"/> |
| | | <result property="opleveldesc" column="opleveldesc"/> |
| | | <result property="opposition" column="opposition"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pid" column="pid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOperationItemVo"> |
| | | select id, opid, opcode, opdesc, main_flag, incitypecode, incitypedesc, oplevelcode, opleveldesc, opposition, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pguid, guid, pid |
| | | select id, |
| | | opid, |
| | | opcode, |
| | | opdesc, |
| | | main_flag, |
| | | incitypecode, |
| | | incitypedesc, |
| | | oplevelcode, |
| | | opleveldesc, |
| | | opposition, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pguid, |
| | | guid, |
| | | pid |
| | | from pat_med_operation_item |
| | | </sql> |
| | | |
| | |
| | | resultMap="PatMedOperationItemResult"> |
| | | <include refid="selectPatMedOperationItemVo"/> |
| | | <where> |
| | | <if test="opid != null "> |
| | | and opid = #{opid} |
| | | </if> |
| | | <if test="opcode != null and opcode != ''"> |
| | | and opcode = #{opcode} |
| | | </if> |
| | | <if test="opdesc != null and opdesc != ''"> |
| | | and opdesc = #{opdesc} |
| | | </if> |
| | | <if test="mainFlag != null and mainFlag != ''"> |
| | | and main_flag = #{mainFlag} |
| | | </if> |
| | | <if test="incitypecode != null and incitypecode != ''"> |
| | | and incitypecode = #{incitypecode} |
| | | </if> |
| | | <if test="incitypedesc != null and incitypedesc != ''"> |
| | | and incitypedesc = #{incitypedesc} |
| | | </if> |
| | | <if test="oplevelcode != null and oplevelcode != ''"> |
| | | and oplevelcode = #{oplevelcode} |
| | | </if> |
| | | <if test="opleveldesc != null and opleveldesc != ''"> |
| | | and opleveldesc = #{opleveldesc} |
| | | </if> |
| | | <if test="opposition != null and opposition != ''"> |
| | | and opposition = #{opposition} |
| | | </if> |
| | | <if test="isupload != null "> |
| | | and isupload = #{isupload} |
| | | </if> |
| | | <if test="uploadTime != null "> |
| | | and upload_time = #{uploadTime} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="opid != null "> |
| | | and opid = #{opid} |
| | | </if> |
| | | <if test="opcode != null and opcode != ''"> |
| | | and opcode = #{opcode} |
| | | </if> |
| | | <if test="opdesc != null and opdesc != ''"> |
| | | and opdesc = #{opdesc} |
| | | </if> |
| | | <if test="mainFlag != null and mainFlag != ''"> |
| | | and main_flag = #{mainFlag} |
| | | </if> |
| | | <if test="incitypecode != null and incitypecode != ''"> |
| | | and incitypecode = #{incitypecode} |
| | | </if> |
| | | <if test="incitypedesc != null and incitypedesc != ''"> |
| | | and incitypedesc = #{incitypedesc} |
| | | </if> |
| | | <if test="oplevelcode != null and oplevelcode != ''"> |
| | | and oplevelcode = #{oplevelcode} |
| | | </if> |
| | | <if test="opleveldesc != null and opleveldesc != ''"> |
| | | and opleveldesc = #{opleveldesc} |
| | | </if> |
| | | <if test="opposition != null and opposition != ''"> |
| | | and opposition = #{opposition} |
| | | </if> |
| | | <if test="isupload != null "> |
| | | and isupload = #{isupload} |
| | | </if> |
| | | <if test="uploadTime != null "> |
| | | and upload_time = #{uploadTime} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | and orgid = #{orgid} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedOperationItemById" parameterType="Long" |
| | | resultMap="PatMedOperationItemResult"> |
| | | <include refid="selectPatMedOperationItemVo"/> |
| | | where id = #{id} |
| | | <include refid="selectPatMedOperationItemVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedOperationItem" parameterType="com.smartor.domain.PatMedOperationItem"> |
| | | <insert id="insertPatMedOperationItem" parameterType="com.smartor.domain.PatMedOperationItem" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_med_operation_item |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="opid != null">opid, |
| | | </if> |
| | | <if test="opcode != null">opcode, |
| | | </if> |
| | | <if test="opdesc != null">opdesc, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc, |
| | | </if> |
| | | <if test="opposition != null">opposition, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="id != null">id, |
| | | </if> |
| | | <if test="opid != null">opid, |
| | | </if> |
| | | <if test="opcode != null">opcode, |
| | | </if> |
| | | <if test="opdesc != null">opdesc, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc, |
| | | </if> |
| | | <if test="opposition != null">opposition, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="opid != null">#{opid}, |
| | | </if> |
| | | <if test="opcode != null">#{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">#{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">#{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">#{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">#{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">#{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">#{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">#{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="id != null">#{id}, |
| | | </if> |
| | | <if test="opid != null">#{opid}, |
| | | </if> |
| | | <if test="opcode != null">#{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">#{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">#{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">#{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">#{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">#{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">#{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">#{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatMedOperationItem" parameterType="com.smartor.domain.PatMedOperationItem"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="opid != null">opid = |
| | | #{opid}, |
| | | </if> |
| | | <if test="opcode != null">opcode = |
| | | #{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">opdesc = |
| | | #{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag = |
| | | #{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode = |
| | | #{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc = |
| | | #{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode = |
| | | #{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc = |
| | | #{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">opposition = |
| | | #{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="opid != null">opid = |
| | | #{opid}, |
| | | </if> |
| | | <if test="opcode != null">opcode = |
| | | #{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">opdesc = |
| | | #{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag = |
| | | #{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode = |
| | | #{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc = |
| | | #{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode = |
| | | #{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc = |
| | | #{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">opposition = |
| | | #{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOperationItemById" parameterType="Long"> |
| | | <update id="deletePatMedOperationItemById" parameterType="Long"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOperationItemByIds" parameterType="String"> |
| | | update pat_med_operation_item |
| | | <update id="deletePatMedOperationItemByIds" parameterType="String"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |