sys_user添加app_user_id,好区分用户对照
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user