From 2c6f87e7a430f52f709c4686dbecc767ca377e2c Mon Sep 17 00:00:00 2001 From: zhuo <2089219845@qq.com> Date: 星期二, 25 二月 2025 11:12:53 +0800 Subject: [PATCH] 报告生成查询字典值 --- ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml index 4ede96f..0b30ccc 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -23,6 +23,9 @@ <result property="updateBy" column="update_by" /> <result property="updateTime" column="update_time" /> <result property="remark" column="remark" /> + <result property="nameEn" column="name_en" /> + <result property="signatureUrl" column="signature_url" /> + <result property="company" column="company" /> <association property="dept" javaType="SysDept" resultMap="deptResult" /> <collection property="roles" javaType="java.util.List" resultMap="RoleResult" /> </resultMap> @@ -47,7 +50,7 @@ </resultMap> <sql id="selectUserVo"> - select u.id, u.dept_id, u.account, u.name, u.email, u.picture_url, u.phone, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, + select u.id, u.dept_id, u.account, u.name, u.email, u.picture_url, u.phone, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, u.name_en, u.signature_url, u.company, d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status, r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status from user u @@ -65,6 +68,9 @@ </if> <if test="userName != null and userName != ''"> AND u.account like concat('%', #{userName}, '%') + </if> + <if test="nickName != null and nickName != ''"> + AND u.name like concat('%', #{nickName}, '%') </if> <if test="status != null and status != ''"> AND u.status = #{status} @@ -156,6 +162,9 @@ <if test="status != null and status != ''">status,</if> <if test="createBy != null and createBy != ''">create_by,</if> <if test="remark != null and remark != ''">remark,</if> + <if test="nameEn != null and nameEn != ''">name_en,</if> + <if test="signatureUrl != null and signatureUrl != ''">signature_url,</if> + <if test="company != null and company != ''">company,</if> create_time )values( <if test="userId != null and userId != ''">#{userId},</if> @@ -170,6 +179,9 @@ <if test="status != null and status != ''">#{status},</if> <if test="createBy != null and createBy != ''">#{createBy},</if> <if test="remark != null and remark != ''">#{remark},</if> + <if test="nameEn != null and nameEn != ''">#{nameEn},</if> + <if test="signatureUrl != null and signatureUrl != ''">#{signatureUrl},</if> + <if test="company != null and company != ''">#{company},</if> sysdate() ) </insert> @@ -190,6 +202,9 @@ <if test="loginDate != null">login_date = #{loginDate},</if> <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> <if test="remark != null">remark = #{remark},</if> + <if test="nameEn != null and nameEn != ''">name_en = #{nameEn},</if> + <if test="signatureUrl != null and signatureUrl != ''">signature_url = #{signatureUrl},</if> + <if test="company != null and company != ''">company = #{company},</if> update_time = sysdate() </set> where id = #{userId} -- Gitblit v1.9.3