forked from integrated_whb/integrated_whb
根据卡号查询人员信息
parent
99a4514737
commit
7d60a3c2cd
|
@ -72,6 +72,16 @@ public class UsersController extends BaseController {
|
|||
@Autowired
|
||||
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 = "";
|
||||
if (postValMap != null) {
|
||||
PageData o = (PageData) postValMap.get(postName);
|
||||
if (o!= null) {
|
||||
if (o != null) {
|
||||
postId = o.getString("POST_ID");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -255,4 +255,6 @@ public interface UsersMapper {
|
|||
PageData findByCardNo(PageData getCordNo);
|
||||
|
||||
List<PageData> getUserCardNoAll(PageData departPd);
|
||||
|
||||
PageData getUserByCardNo(PageData pageData);
|
||||
}
|
||||
|
|
|
@ -292,4 +292,13 @@ public interface UsersService {
|
|||
String changeOrUpdUserCardNo(PageData pd) throws Exception;
|
||||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -277,6 +277,11 @@ public class UsersServiceImpl implements UsersService {
|
|||
return usersMapper.getUserCardNoAll(departPd);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageData getUserByCardNo(PageData pageData) {
|
||||
return usersMapper.getUserByCardNo(pageData);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ReturnMap saveUserNew(PageData pd) throws Exception {
|
||||
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
|
||||
|
|
|
@ -1394,5 +1394,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<include refid="tableName"></include>
|
||||
where CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0
|
||||
</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>
|
||||
|
|
Loading…
Reference in New Issue