sys_user添加app_user_id,好区分用户对照

This commit is contained in:
sh
2026-02-10 18:46:45 +08:00
parent c0154cd633
commit 270e3c291d
6 changed files with 35 additions and 7 deletions

View File

@@ -543,6 +543,7 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
// 构建系统用户
SysUser sysUser = buildSysUser(appUser);
// 插入系统用户
sysUser.setAppUserId(appUser.getUserId());
appUserMapper.insertSysUser(sysUser);
// 关联用户角色
roleMap.put("userId", sysUser.getUserId());

View File

@@ -645,10 +645,13 @@ public class ESJobSearchImpl implements IESJobSearchService
wrapper.and(x->x.like(ESJobDocument::getJobLocation,jobQuery.getJobLocation()));
}
if(!StringUtil.isEmptyOrNull(jobQuery.getRegionCode())){
wrapper.and(x->x.like(ESJobDocument::getRegionCode,jobQuery.getRegionCode()));
wrapper.and(x->x.eq(ESJobDocument::getRegionCode,jobQuery.getRegionCode()));
}
if(!StringUtil.isEmptyOrNull(jobQuery.getStaffType())){
wrapper.and(x->x.like(ESJobDocument::getStaffType,jobQuery.getStaffType()));
wrapper.and(x->x.eq(ESJobDocument::getStaffType,jobQuery.getStaffType()));
}
if(!StringUtil.isEmptyOrNull(jobQuery.getJobStatus())){
wrapper.and(x->x.eq(ESJobDocument::getJobStatus,jobQuery.getJobStatus()));
}
if(Objects.nonNull(jobQuery.getOrder())){
if (jobQuery.getOrder()==2){

View File

@@ -90,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="remark != null and remark != ''">remark,</if>
<if test="idCard != null and idCard != ''">id_card,</if>
<if test="appUserId != null">app_user_id,</if>
create_time
)values(
<if test="userId != null and userId != ''">#{userId},</if>
@@ -105,6 +106,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="remark != null and remark != ''">#{remark},</if>
<if test="idCard != null and idCard != ''">#{idCard},</if>
<if test="appUserId != null">#{appUserId},</if>
sysdate()
)
</insert>