zouyu
4 天以前 abd73edd5d08e26fba60ab47f53722502a87505a
src/main/resources/mapper/system/SysPostMapper.xml
@@ -19,7 +19,7 @@
   
   <sql id="selectPostVo">
        select post_id, post_code, post_name, post_sort, status, create_by, create_time, remark 
      from sys_post
      from sys_post p
    </sql>
   
   <select id="selectPostList" parameterType="com.ruoyi.project.system.domain.SysPost" resultMap="SysPostResult">
@@ -34,6 +34,8 @@
         <if test="postName != null and postName != ''">
            AND post_name like concat('%', #{postName}, '%')
         </if>
            <!-- 数据范围过滤 -->
            ${params.dataScope}
      </where>
   </select>
   
@@ -95,6 +97,7 @@
          <if test="status != null and status != ''">status,</if>
          <if test="remark != null and remark != ''">remark,</if>
          <if test="createBy != null and createBy != ''">create_by,</if>
          <if test="tenantId != null and tenantId != ''">tenant_id,</if>
          create_time
       )values(
          <if test="postId != null and postId != 0">#{postId},</if>
@@ -104,6 +107,7 @@
          <if test="status != null and status != ''">#{status},</if>
          <if test="remark != null and remark != ''">#{remark},</if>
          <if test="createBy != null and createBy != ''">#{createBy},</if>
          <if test="tenantId != null and tenantId != ''">#{tenantId},</if>
          sysdate()
       )
   </insert>