mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-09 08:20:31 +08:00
feat: add service config templates and extraction script
Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
+6
-6
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* 设备与通行相关 HTTP 入口:设备网关查询、电梯码、通行记录等 {@code /device/v2/} 下接口。
|
||||
* <p>
|
||||
* 负责表单/JSON 与业务 {@code param} 的转换,业务规则与远程协作放在 service 层。
|
||||
*/
|
||||
package cn.cloudwalk.elevator.handler.device;
|
||||
/**
|
||||
* 设备与通行相关 HTTP 入口:设备网关查询、电梯码、通行记录等 {@code /device/v2/} 下接口。
|
||||
* <p>
|
||||
* 负责表单/JSON 与业务 {@code param} 的转换,业务规则与远程协作放在 service 层。
|
||||
*/
|
||||
package cn.cloudwalk.elevator.handler.device;
|
||||
|
||||
+14
-2
@@ -55,9 +55,21 @@ public class AcsPersonController extends AbstractCloudwalkController {
|
||||
AcsPersonAddVisitorParam param =
|
||||
(AcsPersonAddVisitorParam)BeanCopyUtils.copyProperties(form, AcsPersonAddVisitorParam.class);
|
||||
try {
|
||||
return this.personRuleService.addVisitor(param, getCloudwalkContext());
|
||||
String businessId = getCloudwalkContext().getCompany().getCompanyId();
|
||||
this.LOGGER.info(
|
||||
"访客派梯接口请求开始 businessId={} personId={} visitorId={} requestFloorSize={} beginTime={} endTime={}",
|
||||
businessId, form.getPersonId(), form.getVisitorId(),
|
||||
Integer.valueOf(form.getFloorIds() == null ? 0 : form.getFloorIds().size()), form.getBegVisitorTime(),
|
||||
form.getEndVisitorTime());
|
||||
CloudwalkResult<Boolean> result = this.personRuleService.addVisitor(param, getCloudwalkContext());
|
||||
this.LOGGER.info("访客派梯接口请求结束 businessId={} personId={} visitorId={} success={} code={} message={}",
|
||||
businessId, form.getPersonId(), form.getVisitorId(), Boolean.valueOf(result.isSuccess()),
|
||||
result.getCode(), result.getMessage());
|
||||
return result;
|
||||
} catch (ServiceException e) {
|
||||
this.LOGGER.error("根据被访人添加访客派梯权限失败,原因:", (Throwable)e);
|
||||
this.LOGGER.error("访客派梯接口异常 businessId={} personId={} visitorId={},原因:",
|
||||
getCloudwalkContext().getCompany().getCompanyId(), form.getPersonId(), form.getVisitorId(),
|
||||
(Throwable)e);
|
||||
return CloudwalkResult.fail("76260521", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user