根据卡号查询人员信息

pull/4/head
dearlin 2024-01-29 09:07:29 +08:00
parent 99a4514737
commit 7d60a3c2cd
5 changed files with 35 additions and 1 deletions

View File

@ -72,6 +72,16 @@ public class UsersController extends BaseController {
@Autowired @Autowired
private ImgFilesService imgfilesService; private ImgFilesService imgfilesService;
@RequestMapping("/getUserByCardNo")
@ResponseBody
public Object getUserByCardNo() {
PageData pageData = getPageData();
pageData.put("CORPINFO_ID",Jurisdiction.getCORPINFO_ID());
PageData pd = usersService.getUserByCardNo(pageData);
return ReturnMap.ok().put("pd",usersService.getUserByCardNo(pageData));
}
/** /**
* *
* *
@ -1428,7 +1438,7 @@ public class UsersController extends BaseController {
String postId = ""; String postId = "";
if (postValMap != null) { if (postValMap != null) {
PageData o = (PageData) postValMap.get(postName); PageData o = (PageData) postValMap.get(postName);
if (o!= null) { if (o != null) {
postId = o.getString("POST_ID"); postId = o.getString("POST_ID");
} }
} }

View File

@ -255,4 +255,6 @@ public interface UsersMapper {
PageData findByCardNo(PageData getCordNo); PageData findByCardNo(PageData getCordNo);
List<PageData> getUserCardNoAll(PageData departPd); List<PageData> getUserCardNoAll(PageData departPd);
PageData getUserByCardNo(PageData pageData);
} }

View File

@ -292,4 +292,13 @@ public interface UsersService {
String changeOrUpdUserCardNo(PageData pd) throws Exception; String changeOrUpdUserCardNo(PageData pd) throws Exception;
List<PageData> getUserCardNoAll(PageData departPd); List<PageData> getUserCardNoAll(PageData departPd);
/**
* @Description: id
* @Author: dearLin
* @Date: 2024/1/29/029 9:05
* @Param: [com.zcloud.entity.PageData] [pageData]
* @Return: com.zcloud.entity.PageData
*/
PageData getUserByCardNo(PageData pageData);
} }

View File

@ -277,6 +277,11 @@ public class UsersServiceImpl implements UsersService {
return usersMapper.getUserCardNoAll(departPd); return usersMapper.getUserCardNoAll(departPd);
} }
@Override
public PageData getUserByCardNo(PageData pageData) {
return usersMapper.getUserByCardNo(pageData);
}
@Override @Override
public ReturnMap saveUserNew(PageData pd) throws Exception { public ReturnMap saveUserNew(PageData pd) throws Exception {
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());

View File

@ -1394,5 +1394,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="tableName"></include> <include refid="tableName"></include>
where CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0 where CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0
</select> </select>
<select id="getUserByCardNo" resultType="com.zcloud.entity.PageData">
select
*
from
<include refid="tableName"></include>
where
CARDNO = #{CARDNO} and ISDELETE = 0 and CORPINFO_ID = #{CORPINFO_ID}
</select>
</mapper> </mapper>