From 7d60a3c2cdb13c64b631e545696b05c3a7b775b7 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Mon, 29 Jan 2024 09:07:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=8D=A1=E5=8F=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BA=BA=E5=91=98=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/controller/system/UsersController.java | 12 +++++++++++- .../zcloud/mapper/datasource/system/UsersMapper.java | 2 ++ .../java/com/zcloud/service/system/UsersService.java | 9 +++++++++ .../zcloud/service/system/impl/UsersServiceImpl.java | 5 +++++ .../mybatis/datasource/system/UsersMapper.xml | 8 ++++++++ 5 files changed, 35 insertions(+), 1 deletion(-) 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 +