From ff6e84a8f969e2196041c500af051e3e33c46009 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期六, 22 二月 2025 18:16:32 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml | 294 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 294 insertions(+), 0 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml new file mode 100644 index 0000000..db3b5bf --- /dev/null +++ b/smartor/src/main/resources/mapper/smartor/PatMedOperationItemMapper.xml @@ -0,0 +1,294 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper + PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<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"/> + </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 + from pat_med_operation_item + </sql> + + <select id="selectPatMedOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem" + 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> + </where> + </select> + + <select id="selectPatMedOperationItemById" parameterType="Long" + resultMap="PatMedOperationItemResult"> + <include refid="selectPatMedOperationItemVo"/> + where id = #{id} + </select> + + <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> + </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> + </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> + </trim> + where id = #{id} + </update> + + <update id="deletePatMedOperationItemById" parameterType="Long"> + update pat_med_operation_item + <trim prefix="SET" suffixOverrides=","> + del_flag =1 + </trim> + where id = #{id} + </update> + + <update id="deletePatMedOperationItemByIds" parameterType="String"> + update pat_med_operation_item + <trim prefix="SET" suffixOverrides=","> + del_flag =1 + </trim> + where id in + <foreach item="id" collection="array" open="(" separator="," close=")"> + #{id} + </foreach> + </update> + + +</mapper> -- Gitblit v1.9.3