龚焕茏
2024-04-15 b86b34a3ba3a844207d3db527db8f9e9fa22033b
ycl-server/src/main/resources/mapper/system/SysUserMapper.xml
@@ -142,7 +142,14 @@
   <select id="checkEmailUnique" parameterType="String" resultMap="SysUserResult">
      select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
   </select>
   <select id="selectUserIdByNames" resultType="java.lang.Long">
      select user_id from sys_user where user_name in
      <foreach item="item" index="index" collection="names" open="(" separator="," close=")">
         #{item}
      </foreach>
   </select>
   <insert id="insertUser" parameterType="com.ycl.system.entity.SysUser" useGeneratedKeys="true" keyProperty="userId">
       insert into sys_user(
          <if test="userId != null and userId != 0">user_id,</if>
@@ -192,7 +199,6 @@
          <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
          <if test="remark != null">remark = #{remark},</if>
           <if test="firstLogin !=null ">first_login = #{firstLogin}</if>
          update_time = sysdate()
       </set>
       where user_id = #{userId}
   </update>