diff --git a/src/main/java/com/zcloud/controller/system/UsersController.java b/src/main/java/com/zcloud/controller/system/UsersController.java index 068179d..86bcfd8 100644 --- a/src/main/java/com/zcloud/controller/system/UsersController.java +++ b/src/main/java/com/zcloud/controller/system/UsersController.java @@ -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"); } } diff --git a/src/main/java/com/zcloud/mapper/datasource/system/UsersMapper.java b/src/main/java/com/zcloud/mapper/datasource/system/UsersMapper.java index 0cf781d..0e009e1 100644 --- a/src/main/java/com/zcloud/mapper/datasource/system/UsersMapper.java +++ b/src/main/java/com/zcloud/mapper/datasource/system/UsersMapper.java @@ -255,4 +255,6 @@ public interface UsersMapper { PageData findByCardNo(PageData getCordNo); List getUserCardNoAll(PageData departPd); + + PageData getUserByCardNo(PageData pageData); } diff --git a/src/main/java/com/zcloud/service/system/UsersService.java b/src/main/java/com/zcloud/service/system/UsersService.java index 1d22c4c..7be1c69 100644 --- a/src/main/java/com/zcloud/service/system/UsersService.java +++ b/src/main/java/com/zcloud/service/system/UsersService.java @@ -292,4 +292,13 @@ public interface UsersService { String changeOrUpdUserCardNo(PageData pd) throws Exception; List 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); } diff --git a/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java b/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java index 92933d5..fb7a54a 100644 --- a/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java +++ b/src/main/java/com/zcloud/service/system/impl/UsersServiceImpl.java @@ -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()); diff --git a/src/main/resources/mybatis/datasource/system/UsersMapper.xml b/src/main/resources/mybatis/datasource/system/UsersMapper.xml index c951fa2..9fef58d 100644 --- a/src/main/resources/mybatis/datasource/system/UsersMapper.xml +++ b/src/main/resources/mybatis/datasource/system/UsersMapper.xml @@ -1394,5 +1394,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where CORPINFO_ID = #{CORPINFO_ID} and ISDELETE = 0 +