| | |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="opercheckFlag" column="opercheck_flag"/> |
| | | <result property="longTaskReason" column="long_task_reason"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOperationItemVo"> |
| | | select id, operationid, 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, operationid, 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, opercheck_flag, long_task_reason |
| | | from pat_med_operation_item |
| | | </sql> |
| | | |
| | | <select id="selectPatMedOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem" |
| | | resultMap="PatMedOperationItemResult"> |
| | | <include refid="selectPatMedOperationItemVo"/> |
| | | <where> |
| | | where 1=1 |
| | | <if test="operationid != null "> |
| | | and operationid = #{operationid} |
| | | </if> |
| | |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedOperationItemById" parameterType="Long" |
| | |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="opercheckFlag != null">opercheck_flag, |
| | | </if> |
| | | <if test="longTaskReason != null">long_task_reason, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id}, |
| | |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="opercheckFlag != null">#{opercheckFlag}, |
| | | </if> |
| | | <if test="longTaskReason != null">#{longTaskReason}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="opercheckFlag != null">opercheck_flag = |
| | | #{opercheckFlag}, |
| | | </if> |
| | | <if test="longTaskReason != null">long_task_reason = |
| | | #{longTaskReason}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |