添加根据身份证,查询个人信息,用于注册用
This commit is contained in:
@@ -260,4 +260,18 @@ public class AppUserController extends BaseController
|
|||||||
public AjaxResult recognition(@RequestParam("file") MultipartFile file) throws Exception{
|
public AjaxResult recognition(@RequestParam("file") MultipartFile file) throws Exception{
|
||||||
return appUserService.recognition(file.getBytes(),file.getOriginalFilename(),SiteSecurityUtils.getUserId());
|
return appUserService.recognition(file.getBytes(),file.getOriginalFilename(),SiteSecurityUtils.getUserId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("根据身份证获取当前用户信息")
|
||||||
|
@GetMapping("/searchAppUserBase")
|
||||||
|
@ResponseBody
|
||||||
|
@BussinessLog(title = "根据身份证获取当前用户信息")
|
||||||
|
public AjaxResult searchAppUserBase(@RequestParam(name = "idCard") String idCard){
|
||||||
|
if(!SiteSecurityUtils.isLogin()){
|
||||||
|
return AjaxResult.error("用户未登录!");
|
||||||
|
}
|
||||||
|
if(StringUtils.isBlank(idCard)){
|
||||||
|
return AjaxResult.error("查询条件为空!");
|
||||||
|
}
|
||||||
|
return AjaxResult.success(appUserService.getAppUserBase(idCard));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,4 +54,6 @@ public interface AppUserMapper extends BaseMapper<AppUser>
|
|||||||
void batchUpdateDifferUser(List<AppUser> list);
|
void batchUpdateDifferUser(List<AppUser> list);
|
||||||
|
|
||||||
void batchAddUser(List<AppUser> list);
|
void batchAddUser(List<AppUser> list);
|
||||||
|
|
||||||
|
AppUser getAppUserBase(@Param("idCard") String idCard);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -97,4 +97,6 @@ public interface IAppUserService
|
|||||||
public AppUser selectAppuserByIdcard(String idCard,String userType);
|
public AppUser selectAppuserByIdcard(String idCard,String userType);
|
||||||
|
|
||||||
public void updateAppUserWgyEncrypt();
|
public void updateAppUserWgyEncrypt();
|
||||||
|
|
||||||
|
public AppUser getAppUserBase(String idCard);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1099,4 +1099,8 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserMapper,AppUser> imple
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public AppUser getAppUserBase(String idCard){
|
||||||
|
return appUserMapper.getAppUserBase(idCard);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -322,4 +322,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
</if>
|
</if>
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
<select id="getAppUserBase" resultMap="AppUserResult">
|
||||||
|
select aac003 as name,c1.code as sex,c2.code as nation,c3.code as education,aab299 as region_code,am.map_key as area from inspur_public.dwd_ac01 ac
|
||||||
|
LEFT join sys_dict_compare365 c1 on c1.type='sex' and c1.reback_code=ac.aac004
|
||||||
|
LEFT join sys_dict_compare365 c2 on c2.type='nation' and c2.reback_code=ac.aac005
|
||||||
|
LEFT join sys_dict_compare365 c3 on c3.type='education' AND c3.reback_code=ac.aac011
|
||||||
|
LEFT join area_code_mapping am on left(ac.aab299, 6) = am.code
|
||||||
|
where aac147=#{idCard} limit 1
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Reference in New Issue
Block a user