|
@@ -2,6 +2,7 @@ package com.rongwei.controller;
|
|
|
|
|
|
import com.rongwei.bscommon.sys.service.QhseVisitorManagementService;
|
|
import com.rongwei.bscommon.sys.service.QhseVisitorManagementService;
|
|
import com.rongwei.bscommon.sys.service.SysPagePartService;
|
|
import com.rongwei.bscommon.sys.service.SysPagePartService;
|
|
|
|
+import com.rongwei.bsentity.domain.QhseVisitorManagementDo;
|
|
import com.rongwei.bsentity.domain.SysPagePartDo;
|
|
import com.rongwei.bsentity.domain.SysPagePartDo;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
@@ -63,6 +64,7 @@ public class QhseVisitorManagementController {
|
|
|
|
|
|
@PostMapping("/getUserByCodes")
|
|
@PostMapping("/getUserByCodes")
|
|
public R getUserByCodes(@RequestBody List<String> codes) {
|
|
public R getUserByCodes(@RequestBody List<String> codes) {
|
|
|
|
+ logger.info("/getUserByCodes 入参 codes: {}", codes.toString());
|
|
try {
|
|
try {
|
|
List<Map<String, String>> userByCodes = qhseVisitorManagementService.getUserByCodes(codes);
|
|
List<Map<String, String>> userByCodes = qhseVisitorManagementService.getUserByCodes(codes);
|
|
return R.ok(userByCodes);
|
|
return R.ok(userByCodes);
|
|
@@ -72,5 +74,42 @@ public class QhseVisitorManagementController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *根据手机号获取当天的访客申请纪录
|
|
|
|
+ * @param
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/getRecordByPhone")
|
|
|
|
+ public R getRecordByPhone(@RequestParam String phone) {
|
|
|
|
+ logger.info("/getRecordByPhone 入参 phone: {}", phone);
|
|
|
|
+ try {
|
|
|
|
+ // 业务逻辑
|
|
|
|
+ List<QhseVisitorManagementDo> list = qhseVisitorManagementService.getRecordByPhone(phone);
|
|
|
|
+ return R.ok(list);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("查询失败: {}", e.getMessage(), e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据身份证号获取 黑名单信息
|
|
|
|
+ * @param idNumber
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @PostMapping("/getBlackListByIdNum")
|
|
|
|
+ public R getBlackListByIdNum(@RequestParam String idNumber) {
|
|
|
|
+ logger.info("/getBlackListByIdNum 入参 idNumber: {}", idNumber);
|
|
|
|
+ try {
|
|
|
|
+ // 业务逻辑
|
|
|
|
+ int count= qhseVisitorManagementService.getBlackListByIdNum(idNumber);
|
|
|
|
+ return R.ok(count);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("查询失败: {}", e.getMessage(), e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|