This commit is contained in:
lightming7 2026-04-07 16:03:03 +08:00
commit 1fc82fb3f7
4 changed files with 18 additions and 6 deletions

View File

@ -278,7 +278,7 @@ public class SysUserController extends BaseController
} }
else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user))
{ {
return error("修改用户'" + user.getUserName() + "'失败,邮箱账号已存在,如账号已删除请重新激活"); return error("修改用户'" + user.getUserName() + "'失败,人员编号已存在,如账号已删除请重新激活");
} }
if (StringUtils.isNotEmpty(user.getIdentityCard()) && !userService.checkIdentityCardUnique(user)) if (StringUtils.isNotEmpty(user.getIdentityCard()) && !userService.checkIdentityCardUnique(user))
{ {
@ -292,7 +292,7 @@ public class SysUserController extends BaseController
user.setCurDepId(user.getDeptId()); user.setCurDepId(user.getDeptId());
user.setCurUnitId(user.getUnitId()); user.setCurUnitId(user.getUnitId());
return toAjax(userService.updateUserInfo(user)); return toAjax(userService.updateUser(user));
} }
@ApiOperation("拉取完用户照片修改状态(安卓用)") @ApiOperation("拉取完用户照片修改状态(安卓用)")

View File

@ -6,9 +6,9 @@ spring:
druid: druid:
# 主库数据源 # 主库数据源
master: master:
# url: jdbc:dm://192.168.0.151:5236?schema=SY url: jdbc:dm://192.168.0.151:5236?schema=SY
# url: jdbc:dm://172.16.1.97:5236?schema=SY # url: jdbc:dm://172.16.1.97:5236?schema=SY
url: jdbc:dm://localhost:5236?schema=SY # url: jdbc:dm://localhost:5236?schema=SY
username: SYSDBA username: SYSDBA
# password: jm@61020900 # password: jm@61020900
password: jsjcy@123 password: jsjcy@123

View File

@ -100,7 +100,7 @@ public class BaseMonitorapplicationServiceImpl implements IBaseMonitorapplicatio
return list.size(); return list.size();
} }
} }
return 0; return 1;
} }
/** /**

View File

@ -135,6 +135,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="pullState != null and pullState != ''"> <if test="pullState != null and pullState != ''">
AND u.pullState = #{pullState} AND u.pullState = #{pullState}
</if> </if>
<if test="email != null and email != ''">
AND u.email = #{email,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler}
</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</select> </select>
@ -153,6 +156,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="phonenumber != null and phonenumber != ''"> <if test="phonenumber != null and phonenumber != ''">
AND u.phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler} AND u.phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler}
</if> </if>
<if test="email != null and email != ''">
AND u.email = #{email,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler}
</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</select> </select>
@ -172,6 +178,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="phonenumber != null and phonenumber != ''"> <if test="phonenumber != null and phonenumber != ''">
AND u.phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler} AND u.phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler}
</if> </if>
<if test="email != null and email != ''">
AND u.email = #{email,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler}
</if>
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
${params.dataScope} ${params.dataScope}
</select> </select>
@ -249,7 +258,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="userName != null and userName != ''">user_name = #{userName},</if> <if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="userType != null and userType != ''">user_type = #{userType},</if> <if test="userType != null and userType != ''">user_type = #{userType},</if>
<if test="email != null and email != ''">email = #{email,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if> <if test="email != null and email != ''">email = #{email,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if>
<if test="phonenumber != null and phonenumber != ''">phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if> <if test="email == null">email = null,</if>
<if test="phonenumber != null and phonenumber != ''">phonenumber = #{phonenumber,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if>
<if test="phonenumber == null">phonenumber = null,</if>
<if test="sex != null and sex != ''">sex = #{sex},</if> <if test="sex != null and sex != ''">sex = #{sex},</if>
<if test="avatar != null and avatar != ''">avatar = #{avatar},</if> <if test="avatar != null and avatar != ''">avatar = #{avatar},</if>
<if test="signPath != null and signPath != ''">sign_path = #{signPath},</if> <if test="signPath != null and signPath != ''">sign_path = #{signPath},</if>
@ -263,6 +274,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="identityCard != null and identityCard != ''" >identity_card = #{identityCard,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if> <if test="identityCard != null and identityCard != ''" >identity_card = #{identityCard,typeHandler=com.ruoyi.common.utils.EncryptTypeHandler},</if>
<if test="identityCard == null" >identity_card = null,</if> <if test="identityCard == null" >identity_card = null,</if>
<if test="digitalTelephoneNumber != null and digitalTelephoneNumber != ''">digital_telephone_number = #{digitalTelephoneNumber},</if> <if test="digitalTelephoneNumber != null and digitalTelephoneNumber != ''">digital_telephone_number = #{digitalTelephoneNumber},</if>
<if test="digitalTelephoneNumber == null">digital_telephone_number = null,</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
update_time = sysdate() update_time = sysdate()
</set> </set>