|  |  | 
 |  |  | <mapper namespace="com.smartor.mapper.BaseDictOperationMapper"> | 
 |  |  |  | 
 |  |  |     <resultMap type="com.smartor.domain.BaseDictOperation" id="BaseDictOperationResult"> | 
 |  |  |             <result property="id" column="id"/> | 
 |  |  |             <result property="opid" column="opid"/> | 
 |  |  |             <result property="opcode" column="opcode"/> | 
 |  |  |             <result property="opdesc" column="opdesc"/> | 
 |  |  |             <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="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="selectBaseDictOperationVo"> | 
 |  |  |         select id, opid, opcode, opdesc, 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, | 
 |  |  |                incitypecode, | 
 |  |  |                incitypedesc, | 
 |  |  |                oplevelcode, | 
 |  |  |                opleveldesc, | 
 |  |  |                opposition, | 
 |  |  |                del_flag, | 
 |  |  |                update_by, | 
 |  |  |                update_time, | 
 |  |  |                create_by, | 
 |  |  |                create_time, | 
 |  |  |                isupload, | 
 |  |  |                upload_time, | 
 |  |  |                orgid, | 
 |  |  |                pguid, | 
 |  |  |                guid, | 
 |  |  |                pid | 
 |  |  |         from base_dict_operation | 
 |  |  |     </sql> | 
 |  |  |  | 
 |  |  | 
 |  |  |             resultMap="BaseDictOperationResult"> | 
 |  |  |         <include refid="selectBaseDictOperationVo"/> | 
 |  |  |         <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="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 like concat('%', #{opdesc}, '%') | 
 |  |  |             </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="selectBaseDictOperationById" parameterType="Long" | 
 |  |  |             resultMap="BaseDictOperationResult"> | 
 |  |  |             <include refid="selectBaseDictOperationVo"/> | 
 |  |  |             where id = #{id} | 
 |  |  |         <include refid="selectBaseDictOperationVo"/> | 
 |  |  |         where id = #{id} | 
 |  |  |     </select> | 
 |  |  |  | 
 |  |  |     <insert id="insertBaseDictOperation" parameterType="com.smartor.domain.BaseDictOperation"> | 
 |  |  |         insert into base_dict_operation | 
 |  |  |         <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="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="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="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="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="updateBaseDictOperation" parameterType="com.smartor.domain.BaseDictOperation"> | 
 |  |  |         update base_dict_operation | 
 |  |  |         <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="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="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="deleteBaseDictOperationById" parameterType="Long"> | 
 |  |  |     <update id="deleteBaseDictOperationById" parameterType="Long"> | 
 |  |  |         update base_dict_operation | 
 |  |  |         <trim prefix="SET" suffixOverrides=","> | 
 |  |  |             del_flag =1 | 
 |  |  |         </trim> | 
 |  |  |         where  id = #{id} | 
 |  |  |         where id = #{id} | 
 |  |  |     </update> | 
 |  |  |  | 
 |  |  |                             <update id="deleteBaseDictOperationByIds" parameterType="String"> | 
 |  |  |         update  base_dict_operation | 
 |  |  |     <update id="deleteBaseDictOperationByIds" parameterType="String"> | 
 |  |  |         update base_dict_operation | 
 |  |  |         <trim prefix="SET" suffixOverrides=","> | 
 |  |  |             del_flag =1 | 
 |  |  |         </trim> | 
 |  |  | 
 |  |  |             #{id} | 
 |  |  |         </foreach> | 
 |  |  |     </update> | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | </mapper> |