|
@@ -2,7 +2,9 @@ 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.bsentity.vo.QhseVisitorManagementVo;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.base.R;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
import com.rongwei.rwcommon.vo.generalsql.MasterSlaveInsertVo;
|
|
import com.rongwei.rwcommon.vo.generalsql.MasterSlaveInsertVo;
|
|
@@ -63,6 +65,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 +75,41 @@ public class QhseVisitorManagementController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *根据手机号获取当天的访客申请纪录
|
|
|
|
+ * @param
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getRecordByPhone/{phone}")
|
|
|
|
+ public R getRecordByPhone(@PathVariable String phone) {
|
|
|
|
+ logger.info("/getRecordByPhone 入参 phone: {}", phone);
|
|
|
|
+ try {
|
|
|
|
+ // 业务逻辑
|
|
|
|
+ List<QhseVisitorManagementVo> list = qhseVisitorManagementService.getRecordByPhone(phone);
|
|
|
|
+ return R.ok(list);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("查询失败: {}", e.getMessage(), e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据身份证号获取 黑名单信息
|
|
|
|
+ * @param idNumber
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/getBlackListByIdNum/{idNumber}") // 路径参数
|
|
|
|
+ public R getBlackListByIdNum(@PathVariable 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());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|