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:
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>cn.cloudwalk.ninca</groupId>
|
||||
<artifactId>ninca-crk-from-lib-reactor</artifactId>
|
||||
<version>2.9.1_210630-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>ninca-crk-conference-attendance-web</artifactId>
|
||||
<name>ninca-crk-conference-attendance-web</name>
|
||||
<description>CFR from ninca-crk-conference-attendance-web-2.9.1_210630-SNAPSHOT.jar (embedded pom: none)</description>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.ninca</groupId>
|
||||
<artifactId>ninca-crk-conference-attendance-service</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.ninca</groupId>
|
||||
<artifactId>ninca-crk-conference-attendance-interface</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.intelligent</groupId>
|
||||
<artifactId>intelligent-cwoscomponent-interface</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.cloudwalk.cloud</groupId>
|
||||
<artifactId>cloudwalk-common-result</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework</groupId>
|
||||
<artifactId>spring-webmvc</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.validation</groupId>
|
||||
<artifactId>validation-api</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
+78
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder
|
||||
* cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder
|
||||
* cn.cloudwalk.cloud.context.CloudwalkSessionObject
|
||||
* cn.cloudwalk.cloud.session.extend.DefaultExtendContext
|
||||
* cn.cloudwalk.cloud.session.extend.ExtendContext
|
||||
* cn.cloudwalk.common.ninca.conference.context.CloudWalkExtendContextValue
|
||||
* javax.servlet.http.HttpServletRequest
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.context.MessageSource
|
||||
* org.springframework.context.i18n.LocaleContextHolder
|
||||
* org.springframework.web.context.request.RequestContextHolder
|
||||
* org.springframework.web.context.request.ServletRequestAttributes
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.common.controller;
|
||||
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContextBuilder;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkSessionContextHolder;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkSessionObject;
|
||||
import cn.cloudwalk.cloud.session.extend.DefaultExtendContext;
|
||||
import cn.cloudwalk.cloud.session.extend.ExtendContext;
|
||||
import cn.cloudwalk.common.ninca.conference.context.CloudWalkExtendContextValue;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.MessageSource;
|
||||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.web.context.request.RequestContextHolder;
|
||||
import org.springframework.web.context.request.ServletRequestAttributes;
|
||||
|
||||
public abstract class AbstractCloudwalkController {
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
@Autowired
|
||||
private CloudwalkSessionContextHolder cloudwalkSessionContextHolder;
|
||||
@Autowired
|
||||
private MessageSource messageSource;
|
||||
|
||||
public CloudwalkCallContext getCloudwalkContext() {
|
||||
CloudwalkSessionObject session = this.cloudwalkSessionContextHolder.getSession();
|
||||
if (session == null) {
|
||||
session = new CloudwalkSessionObject(new String[]{"0", "0", "\u9ed8\u8ba4\u7528\u6237", "smart-app-id"});
|
||||
this.cloudwalkSessionContextHolder.putSession(session);
|
||||
}
|
||||
CloudwalkCallContext cloudwalkCallContext = CloudwalkCallContextBuilder.buildContext((CloudwalkSessionContextHolder)this.cloudwalkSessionContextHolder);
|
||||
ServletRequestAttributes attributes = (ServletRequestAttributes)RequestContextHolder.getRequestAttributes();
|
||||
if (null != attributes) {
|
||||
DefaultExtendContext extendContext = new DefaultExtendContext();
|
||||
CloudWalkExtendContextValue cloudWalkExtendContextValue = new CloudWalkExtendContextValue();
|
||||
HttpServletRequest request = attributes.getRequest();
|
||||
cloudWalkExtendContextValue.setLoginId(request.getHeader("loginid"));
|
||||
cloudWalkExtendContextValue.setAuthorization(request.getHeader("authorization"));
|
||||
extendContext.setValue((Object)cloudWalkExtendContextValue);
|
||||
cloudwalkCallContext.setExt((ExtendContext)extendContext);
|
||||
}
|
||||
return cloudwalkCallContext;
|
||||
}
|
||||
|
||||
protected HttpServletRequest getHttpServletRequest() {
|
||||
return ((ServletRequestAttributes)RequestContextHolder.getRequestAttributes()).getRequest();
|
||||
}
|
||||
|
||||
public String getMessage(String code, String defaultMsg) {
|
||||
return this.messageSource.getMessage(code, null, defaultMsg, LocaleContextHolder.getLocale());
|
||||
}
|
||||
|
||||
public String getMessage(String code) {
|
||||
return this.getMessage(code, "");
|
||||
}
|
||||
}
|
||||
|
||||
+187
@@ -0,0 +1,187 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceAddParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceCancelParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceDetailParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceEditParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDetailResult
|
||||
* cn.cloudwalk.client.ninca.conference.conference.result.ConferenceResult
|
||||
* cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.exception.BeginTimeLaterThanEndTimeException
|
||||
* cn.cloudwalk.common.ninca.conference.exception.ConferenceEditAfterBeginningException
|
||||
* cn.cloudwalk.common.ninca.conference.exception.ConferenceNotExistsException
|
||||
* cn.cloudwalk.common.ninca.conference.exception.SignTimeLaterThanBeginTimeException
|
||||
* cn.cloudwalk.common.ninca.conference.exception.SignoffDeadlineRequiredException
|
||||
* cn.cloudwalk.common.ninca.conference.exception.SignoffTimeEarlierThanEndTimeException
|
||||
* cn.cloudwalk.service.ninca.conference.export.ConferencePersonExportAsyncService
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RequestMethod
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.controller;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceAddParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceCancelParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceDetailParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceEditParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDetailResult;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.result.ConferenceResult;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.BeginTimeLaterThanEndTimeException;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.ConferenceEditAfterBeginningException;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.ConferenceNotExistsException;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.SignTimeLaterThanBeginTimeException;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.SignoffDeadlineRequiredException;
|
||||
import cn.cloudwalk.common.ninca.conference.exception.SignoffTimeEarlierThanEndTimeException;
|
||||
import cn.cloudwalk.service.ninca.conference.export.ConferencePersonExportAsyncService;
|
||||
import cn.cloudwalk.web.ninca.conference.common.controller.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.web.ninca.conference.conference.form.ConferenceAddForm;
|
||||
import cn.cloudwalk.web.ninca.conference.conference.form.ConferenceCancelForm;
|
||||
import cn.cloudwalk.web.ninca.conference.conference.form.ConferenceDetailForm;
|
||||
import cn.cloudwalk.web.ninca.conference.conference.form.ConferenceEditForm;
|
||||
import cn.cloudwalk.web.ninca.conference.conference.form.ConferencePageForm;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/conference_attendance/conference"})
|
||||
public class ConferenceController
|
||||
extends AbstractCloudwalkController {
|
||||
@Autowired
|
||||
private ConferenceService conferenceService;
|
||||
@Autowired
|
||||
private ConferencePersonExportAsyncService conferencePersonExportAsyncService;
|
||||
|
||||
@RequestMapping(value={"/add"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<String> add(@RequestBody ConferenceAddForm form) {
|
||||
ConferenceAddParam param = (ConferenceAddParam)BeanCopyUtils.copyProperties((Object)form, ConferenceAddParam.class);
|
||||
try {
|
||||
return this.conferenceService.add(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (SignoffDeadlineRequiredException e) {
|
||||
this.logger.error("\u7f3a\u5c11\u7b7e\u9000\u622a\u6b62\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280114", (String)this.getMessage("76280114"));
|
||||
}
|
||||
catch (BeginTimeLaterThanEndTimeException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e\u4f1a\u8bae\u7ed3\u675f\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280115", (String)this.getMessage("76280115"));
|
||||
}
|
||||
catch (SignoffTimeEarlierThanEndTimeException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u7b7e\u9000\u65f6\u95f4\u65e9\u4e8e\u4f1a\u8bae\u7ed3\u675f\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280116", (String)this.getMessage("76280116"));
|
||||
}
|
||||
catch (SignTimeLaterThanBeginTimeException e) {
|
||||
this.logger.error("\u7b7e\u5230\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e\u4f1a\u8bae\u5f00\u59cb\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280117", (String)this.getMessage("76280117"));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u4f1a\u8bae\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280100", (String)this.getMessage("76280100"));
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/edit"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<Boolean> edit(@RequestBody ConferenceEditForm form) {
|
||||
ConferenceEditParam param = (ConferenceEditParam)BeanCopyUtils.copyProperties((Object)form, ConferenceEditParam.class);
|
||||
try {
|
||||
return this.conferenceService.edit(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ConferenceNotExistsException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u4e0d\u5b58\u5728", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280105", (String)this.getMessage("76280105"));
|
||||
}
|
||||
catch (ConferenceEditAfterBeginningException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u5f00\u59cb\u540e\u7f16\u8f91\u5f02\u5e38", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280106", (String)this.getMessage("76280106"));
|
||||
}
|
||||
catch (SignoffDeadlineRequiredException e) {
|
||||
this.logger.error("\u7f3a\u5c11\u7b7e\u9000\u622a\u6b62\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280114", (String)this.getMessage("76280114"));
|
||||
}
|
||||
catch (BeginTimeLaterThanEndTimeException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e\u4f1a\u8bae\u7ed3\u675f\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280115", (String)this.getMessage("76280115"));
|
||||
}
|
||||
catch (SignoffTimeEarlierThanEndTimeException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u7b7e\u9000\u65f6\u95f4\u65e9\u4e8e\u4f1a\u8bae\u7ed3\u675f\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280116", (String)this.getMessage("76280116"));
|
||||
}
|
||||
catch (SignTimeLaterThanBeginTimeException e) {
|
||||
this.logger.error("\u7b7e\u5230\u5f00\u59cb\u65f6\u95f4\u665a\u4e8e\u4f1a\u8bae\u5f00\u59cb\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280117", (String)this.getMessage("76280117"));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u7f16\u8f91\u4f1a\u8bae\u5931\u8d25\uff0c\u539f\u56e0\uff1a{}", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280101", (String)this.getMessage("76280101"));
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/page"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<CloudwalkPageAble<ConferenceResult>> page(@RequestBody ConferencePageForm form) {
|
||||
ConferenceQueryParam param = (ConferenceQueryParam)BeanCopyUtils.copyProperties((Object)((Object)form), ConferenceQueryParam.class);
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
|
||||
try {
|
||||
return this.conferenceService.page(param, page, this.getCloudwalkContext());
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u4f1a\u8bae\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280102", (String)this.getMessage("76280102"));
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/detail"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<ConferenceDetailResult> detail(@RequestBody ConferenceDetailForm form) {
|
||||
ConferenceDetailParam param = (ConferenceDetailParam)BeanCopyUtils.copyProperties((Object)form, ConferenceDetailParam.class);
|
||||
try {
|
||||
return this.conferenceService.detail(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8be6\u60c5\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280103", (String)this.getMessage("76280103"));
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/cancel"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<Boolean> cancel(@RequestBody ConferenceCancelForm form) {
|
||||
ConferenceCancelParam conferenceCancelParam = new ConferenceCancelParam();
|
||||
conferenceCancelParam.setId(form.getId());
|
||||
try {
|
||||
return this.conferenceService.cancel(conferenceCancelParam, this.getCloudwalkContext());
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u53d6\u6d88\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280104", (String)this.getMessage("76280104"));
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping(value={"/maxRecord"}, method={RequestMethod.GET})
|
||||
public CloudwalkResult exportMaxRecord() {
|
||||
try {
|
||||
return this.conferencePersonExportAsyncService.exportMaxRecord();
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u83b7\u53d6\u6700\u5927\u5bfc\u51fa\u8bb0\u5f55\u5931\u8d25", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"762508021", (String)"\u83b7\u53d6\u6700\u5927\u5bfc\u51fa\u8bb0\u5f55\u5931\u8d25");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+94
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class ConferenceAddForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 2142058834489791195L;
|
||||
private String name;
|
||||
private String address;
|
||||
private Long beginTime;
|
||||
private Long endTime;
|
||||
private Integer isSignoff;
|
||||
private Long signoffDeadline;
|
||||
private Long signBeginTime;
|
||||
private List<String> deviceIds;
|
||||
private List<String> personIds;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Long getBeginTime() {
|
||||
return this.beginTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(Long beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getIsSignoff() {
|
||||
return this.isSignoff;
|
||||
}
|
||||
|
||||
public void setIsSignoff(Integer isSignoff) {
|
||||
this.isSignoff = isSignoff;
|
||||
}
|
||||
|
||||
public Long getSignoffDeadline() {
|
||||
return this.signoffDeadline;
|
||||
}
|
||||
|
||||
public void setSignoffDeadline(Long signoffDeadline) {
|
||||
this.signoffDeadline = signoffDeadline;
|
||||
}
|
||||
|
||||
public Long getSignBeginTime() {
|
||||
return this.signBeginTime;
|
||||
}
|
||||
|
||||
public void setSignBeginTime(Long signBeginTime) {
|
||||
this.signBeginTime = signBeginTime;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public List<String> getPersonIds() {
|
||||
return this.personIds;
|
||||
}
|
||||
|
||||
public void setPersonIds(List<String> personIds) {
|
||||
this.personIds = personIds;
|
||||
}
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceCancelForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = -3328902993346614462L;
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceDetailForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 7335769563781455160L;
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+103
@@ -0,0 +1,103 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class ConferenceEditForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 8786462416648005764L;
|
||||
private String id;
|
||||
private String name;
|
||||
private String address;
|
||||
private Long beginTime;
|
||||
private Long endTime;
|
||||
private Integer isSignoff;
|
||||
private Long signoffDeadline;
|
||||
private Long signBeginTime;
|
||||
private List<String> deviceIds;
|
||||
private List<String> personIds;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Long getBeginTime() {
|
||||
return this.beginTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(Long beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getIsSignoff() {
|
||||
return this.isSignoff;
|
||||
}
|
||||
|
||||
public void setIsSignoff(Integer isSignoff) {
|
||||
this.isSignoff = isSignoff;
|
||||
}
|
||||
|
||||
public Long getSignoffDeadline() {
|
||||
return this.signoffDeadline;
|
||||
}
|
||||
|
||||
public void setSignoffDeadline(Long signoffDeadline) {
|
||||
this.signoffDeadline = signoffDeadline;
|
||||
}
|
||||
|
||||
public Long getSignBeginTime() {
|
||||
return this.signBeginTime;
|
||||
}
|
||||
|
||||
public void setSignBeginTime(Long signBeginTime) {
|
||||
this.signBeginTime = signBeginTime;
|
||||
}
|
||||
|
||||
public List<String> getDeviceIds() {
|
||||
return this.deviceIds;
|
||||
}
|
||||
|
||||
public void setDeviceIds(List<String> deviceIds) {
|
||||
this.deviceIds = deviceIds;
|
||||
}
|
||||
|
||||
public List<String> getPersonIds() {
|
||||
return this.personIds;
|
||||
}
|
||||
|
||||
public void setPersonIds(List<String> personIds) {
|
||||
this.personIds = personIds;
|
||||
}
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.conference.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
|
||||
public class ConferencePageForm
|
||||
extends CloudwalkBasePageForm {
|
||||
private static final long serialVersionUID = -3244217618252901667L;
|
||||
private String name;
|
||||
private String address;
|
||||
private Integer status;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.device.param.ConferenceDeviceNewPageParam
|
||||
* cn.cloudwalk.client.ninca.conference.device.result.ConferenceDeviceResult
|
||||
* cn.cloudwalk.client.ninca.conference.device.service.ConferenceDeviceService
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.web.bind.annotation.PostMapping
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.device.controller;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.device.param.ConferenceDeviceNewPageParam;
|
||||
import cn.cloudwalk.client.ninca.conference.device.result.ConferenceDeviceResult;
|
||||
import cn.cloudwalk.client.ninca.conference.device.service.ConferenceDeviceService;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.web.ninca.conference.common.controller.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.web.ninca.conference.device.form.ConferenceDeviceNewPageForm;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/intelligent/api/conference/device"})
|
||||
public class ConferenceDeviceController
|
||||
extends AbstractCloudwalkController {
|
||||
@Resource
|
||||
private ConferenceDeviceService attendDeviceService;
|
||||
|
||||
@PostMapping(value={"/page"})
|
||||
public CloudwalkResult<CloudwalkPageAble<ConferenceDeviceResult>> page(@RequestBody ConferenceDeviceNewPageForm form) {
|
||||
ConferenceDeviceNewPageParam param = (ConferenceDeviceNewPageParam)BeanCopyUtils.copyProperties((Object)form, ConferenceDeviceNewPageParam.class);
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
|
||||
try {
|
||||
return this.attendDeviceService.page(param, page, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u8003\u52e4\u8bbe\u5907\u5206\u9875\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76240201", (String)this.getMessage("76240201"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.device.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class ConferenceDeviceNewPageForm
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 5688215744877695100L;
|
||||
private String areaId;
|
||||
private String deviceName;
|
||||
private String districtId;
|
||||
private List<String> districtIds;
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return 5688215744877695100L;
|
||||
}
|
||||
|
||||
public String getAreaId() {
|
||||
return this.areaId;
|
||||
}
|
||||
|
||||
public void setAreaId(String areaId) {
|
||||
this.areaId = areaId;
|
||||
}
|
||||
|
||||
public String getDeviceName() {
|
||||
return this.deviceName;
|
||||
}
|
||||
|
||||
public void setDeviceName(String deviceName) {
|
||||
this.deviceName = deviceName;
|
||||
}
|
||||
|
||||
public String getDistrictId() {
|
||||
return this.districtId;
|
||||
}
|
||||
|
||||
public void setDistrictId(String districtId) {
|
||||
this.districtId = districtId;
|
||||
}
|
||||
|
||||
public List<String> getDistrictIds() {
|
||||
return this.districtIds;
|
||||
}
|
||||
|
||||
public void setDistrictIds(List<String> districtIds) {
|
||||
this.districtIds = districtIds;
|
||||
}
|
||||
}
|
||||
|
||||
+88
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.session.company.CompanyContext
|
||||
* cn.cloudwalk.cloud.session.user.UserContext
|
||||
* cn.cloudwalk.cloud.utils.CloudwalkDateUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.CollectionUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil
|
||||
* javax.annotation.Resource
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.handler;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.param.DeviceQueryParam;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.service.DeviceService;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.session.company.CompanyContext;
|
||||
import cn.cloudwalk.cloud.session.user.UserContext;
|
||||
import cn.cloudwalk.cloud.utils.CloudwalkDateUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.CollectionUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public abstract class AbstractEventHandler {
|
||||
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractEventHandler.class);
|
||||
private static final String DEFAULT_CALLER = "defaultUserId";
|
||||
private static final String DEFAULT_CALLER_NAME = "defaultUserName";
|
||||
@Resource
|
||||
private DeviceService deviceService;
|
||||
|
||||
public CloudwalkCallContext getCloudwalkContext(String businessId) throws ServiceException {
|
||||
CloudwalkCallContext context = new CloudwalkCallContext();
|
||||
CompanyContext companyContext = new CompanyContext();
|
||||
companyContext.setCompanyId(businessId);
|
||||
context.setCompany(companyContext);
|
||||
UserContext userContext = new UserContext();
|
||||
userContext.setCaller(DEFAULT_CALLER);
|
||||
userContext.setCallerName(DEFAULT_CALLER_NAME);
|
||||
context.setUser(userContext);
|
||||
context.setCallTime(CloudwalkDateUtils.getCurrentDate());
|
||||
HashMap<String, String> defaultRequestHeader = new HashMap<String, String>();
|
||||
defaultRequestHeader.put("businessid", businessId);
|
||||
FeignThreadLocalUtil.setRequestHeader(defaultRequestHeader);
|
||||
return context;
|
||||
}
|
||||
|
||||
DeviceResult queryDeviceResult(String deviceCode, CloudwalkCallContext context) throws ServiceException {
|
||||
DeviceQueryParam deviceQueryParam = new DeviceQueryParam();
|
||||
deviceQueryParam.setDeviceCode(deviceCode);
|
||||
CloudwalkResult deviceQueryResult = this.deviceService.list(deviceQueryParam, context);
|
||||
if (deviceQueryResult.isSuccess() && CollectionUtils.isNotEmpty((Collection)((Collection)deviceQueryResult.getData()))) {
|
||||
return (DeviceResult)((List)deviceQueryResult.getData()).get(0);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
void setDevice(ConferenceResultSignParam signParam, DeviceResult deviceResult) {
|
||||
signParam.setDeviceId(deviceResult.getId());
|
||||
signParam.setDeviceType(deviceResult.getDeviceTypeId());
|
||||
signParam.setDeviceTypeName(deviceResult.getDeviceTypeName());
|
||||
signParam.setDeviceCode(deviceResult.getDeviceCode());
|
||||
signParam.setDeviceName(deviceResult.getDeviceName());
|
||||
signParam.setDeviceAreaId(deviceResult.getAreaId());
|
||||
signParam.setDeviceAreaName(deviceResult.getAreaName());
|
||||
signParam.setDistrictId(deviceResult.getDistrictId());
|
||||
signParam.setDistrictName(deviceResult.getDistrictName());
|
||||
signParam.setDistrictMergeName(deviceResult.getDistrictMergeName());
|
||||
}
|
||||
}
|
||||
|
||||
+169
@@ -0,0 +1,169 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
|
||||
* cn.cloudwalk.client.ninca.conference.capture.param.ConferenceCaptureFeatureQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.capture.result.ConferenceFeatureQueryResult
|
||||
* cn.cloudwalk.client.ninca.conference.capture.service.ConferenceBiologyFeatureService
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultGenService
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.em.YesNoTypeEnum
|
||||
* cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil
|
||||
* cn.cloudwalk.cwos.client.event.event.BaseEvent
|
||||
* cn.cloudwalk.cwos.client.event.event.FaceCaptureEvent
|
||||
* cn.cloudwalk.cwos.client.event.event.app.OpendoorFaceCaptureRecordEvent
|
||||
* cn.cloudwalk.cwos.client.event.event.mode.FaceCapture
|
||||
* cn.cloudwalk.event.CloudwalkEventManager
|
||||
* cn.cloudwalk.event.annotation.EventTopicSuffix
|
||||
* cn.cloudwalk.event.handler.EventHandler
|
||||
* cn.cloudwalk.service.ninca.conference.common.ConferenceProperties
|
||||
* com.alibaba.fastjson.JSON
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.handler;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
|
||||
import cn.cloudwalk.client.ninca.conference.capture.param.ConferenceCaptureFeatureQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.capture.result.ConferenceFeatureQueryResult;
|
||||
import cn.cloudwalk.client.ninca.conference.capture.service.ConferenceBiologyFeatureService;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultGenService;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.em.YesNoTypeEnum;
|
||||
import cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil;
|
||||
import cn.cloudwalk.cwos.client.event.event.BaseEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.FaceCaptureEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.app.OpendoorFaceCaptureRecordEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.mode.FaceCapture;
|
||||
import cn.cloudwalk.event.CloudwalkEventManager;
|
||||
import cn.cloudwalk.event.annotation.EventTopicSuffix;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
import cn.cloudwalk.service.ninca.conference.common.ConferenceProperties;
|
||||
import cn.cloudwalk.web.ninca.conference.handler.AbstractEventHandler;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import java.math.BigDecimal;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@EventTopicSuffix(value={"conference-attn"})
|
||||
public class ConferenceFaceCaptureEventHandler
|
||||
extends AbstractEventHandler
|
||||
implements EventHandler<FaceCaptureEvent> {
|
||||
@Resource
|
||||
private ConferenceBiologyFeatureService conferenceBiologyFeatureService;
|
||||
@Resource
|
||||
private CloudwalkEventManager cloudwalkEventManager;
|
||||
@Resource
|
||||
private ConferenceProperties conferenceProperties;
|
||||
@Resource
|
||||
private ConferenceResultGenService conferenceResultGenService;
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public void onEvent(FaceCaptureEvent event) {
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u6536\u5230FaceCaptureEvent\u6d88\u606f:{}", (Object)JSON.toJSONString((Object)event));
|
||||
try {
|
||||
CloudwalkCallContext context = this.getCloudwalkContext(event.getBusinessId());
|
||||
DeviceResult deviceResult = super.queryDeviceResult(event.getDeviceId(), context);
|
||||
if (deviceResult == null) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u67e5\u8be2\u8bbe\u5907\u5931\u8d25\uff0c\u6ca1\u6709\u627e\u5230\u8bbe\u5907\u4fe1\u606f\uff0c\u8bbe\u5907\u7f16\u7801\uff1a{}", (Object)event.getDeviceId());
|
||||
return;
|
||||
}
|
||||
for (FaceCapture face : event.getFace()) {
|
||||
try {
|
||||
ConferenceFeatureQueryResult queryResult = this.featureQuery(event, face, context);
|
||||
BigDecimal threshold = BigDecimal.valueOf(this.conferenceProperties.getCaptureDeviceThreshold());
|
||||
if (queryResult == null) {
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u7ed3\u679c\u751f\u6210\uff0c1:N \u5931\u8d25\u6ca1\u6709\u627e\u5230\u4eba\u5458\u4fe1\u606f,captureId\uff1a{}", (Object)face.getCaptureId());
|
||||
continue;
|
||||
}
|
||||
if (!this.compareSuccess(queryResult, threshold)) {
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u9608\u503c\u6821\u9a8c\u5931\u8d25\uff0ccaptureId\uff1a{},\u9608\u503c\uff1a{}\uff0c\u6bd4\u5bf9\u5206\u6570\uff1a{}", new Object[]{face.getCaptureId(), threshold, queryResult.getScore()});
|
||||
continue;
|
||||
}
|
||||
ConferenceResultSignParam signParam = this.setSignParam(event, face, queryResult, deviceResult, threshold);
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u7ed3\u679c\u751f\u6210\uff0c\u540e\u7aef\u8bc6\u522b\u5206\u6570\uff1a{}", (Object)queryResult.getScore());
|
||||
CloudwalkResult genResult = this.conferenceResultGenService.gen(signParam, context);
|
||||
if (!genResult.isSuccess()) continue;
|
||||
this.publish(event, face, queryResult, threshold);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u7ed3\u679c\u751f\u6210\u5931\u8d25\uff0ccaptureId\uff1a{}\uff0c\u539f\u56e0\uff1a", (Object)face.getCaptureId(), (Object)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u6d88\u8d39\u4eba\u8138\u6293\u62cd\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0:", (Throwable)e);
|
||||
}
|
||||
finally {
|
||||
FeignThreadLocalUtil.remove();
|
||||
}
|
||||
}
|
||||
|
||||
private boolean compareSuccess(ConferenceFeatureQueryResult queryResult, BigDecimal threshold) {
|
||||
return BigDecimal.valueOf(queryResult.getScore() * 100.0).compareTo(threshold) >= 0;
|
||||
}
|
||||
|
||||
private ConferenceFeatureQueryResult featureQuery(FaceCaptureEvent event, FaceCapture face, CloudwalkCallContext context) throws ServiceException {
|
||||
ConferenceCaptureFeatureQueryParam param = new ConferenceCaptureFeatureQueryParam();
|
||||
param.setDeviceCode(event.getDeviceId());
|
||||
param.setImagePath(face.getImagePath());
|
||||
return this.conferenceBiologyFeatureService.featureQuery(param, context);
|
||||
}
|
||||
|
||||
private ConferenceResultSignParam setSignParam(FaceCaptureEvent event, FaceCapture face, ConferenceFeatureQueryResult result, DeviceResult deviceResult, BigDecimal threshold) {
|
||||
ConferenceResultSignParam param = new ConferenceResultSignParam();
|
||||
BeanCopyUtils.copyProperties((Object)face, (Object)param);
|
||||
param.setFaceId(result.getImageId());
|
||||
param.setBusinessId(event.getBusinessId());
|
||||
param.setDeviceCode(event.getDeviceId());
|
||||
param.setRecognitionTime(Long.valueOf(face.getCaptureTime()));
|
||||
param.setRegisterImagePath(face.getImagePath());
|
||||
param.setFaceImagePath(face.getImagePath());
|
||||
if (event.getPanorama() != null) {
|
||||
param.setPanoramaImagePath(event.getPanorama().getPanoramaImagePath());
|
||||
}
|
||||
param.setScore(BigDecimal.valueOf(result.getScore()));
|
||||
param.setThreshold(threshold);
|
||||
param.setQualityScore(null);
|
||||
param.setGroupId(result.getImageStoreId());
|
||||
param.setRecognitionResult(YesNoTypeEnum.Y.getCode());
|
||||
super.setDevice(param, deviceResult);
|
||||
return param;
|
||||
}
|
||||
|
||||
private void publish(FaceCaptureEvent captureEvent, FaceCapture face, ConferenceFeatureQueryResult result, BigDecimal threshold) {
|
||||
OpendoorFaceCaptureRecordEvent event;
|
||||
event.setLogId((event = (OpendoorFaceCaptureRecordEvent)BeanCopyUtils.copyProperties((Object)captureEvent, OpendoorFaceCaptureRecordEvent.class)).getLogId() != null ? event.getLogId() : "" + System.currentTimeMillis());
|
||||
event.setMessageId("" + System.currentTimeMillis());
|
||||
event.setAppServiceCode("conference-attn");
|
||||
event.setOpenDoorType("FACE");
|
||||
event.setRecognitionNo(face.getCaptureId());
|
||||
event.setRecognitionTime(Long.valueOf(face.getCaptureTime()));
|
||||
event.setFaceImagePath(face.getImagePath());
|
||||
event.setServiceCode("access-control");
|
||||
if (captureEvent.getPanorama() != null) {
|
||||
event.setPanoramaImagePath(captureEvent.getPanorama().getPanoramaImagePath());
|
||||
}
|
||||
event.setThreshold(threshold.floatValue());
|
||||
event.setFaceId(result.getImageId());
|
||||
event.setScore(new Float(result.getScore()));
|
||||
if (face.getFaceQuality() != null) {
|
||||
event.setQualityScore(face.getFaceQuality().getQualityScore());
|
||||
}
|
||||
event.setGroupId(result.getImageStoreId());
|
||||
this.cloudwalkEventManager.publish((BaseEvent)event);
|
||||
}
|
||||
}
|
||||
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultGenService
|
||||
* cn.cloudwalk.cloud.context.CloudwalkCallContext
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil
|
||||
* cn.cloudwalk.cwos.client.event.event.PersonRecordUploadEvent
|
||||
* cn.cloudwalk.cwos.client.event.event.mode.Face
|
||||
* cn.cloudwalk.event.annotation.EventTopicSuffix
|
||||
* cn.cloudwalk.event.handler.EventHandler
|
||||
* com.alibaba.fastjson.JSON
|
||||
* javax.annotation.Resource
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.handler;
|
||||
|
||||
import cn.cloudwalk.client.cwoscomponent.intelligent.device.result.DeviceResult;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultSignParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultGenService;
|
||||
import cn.cloudwalk.cloud.context.CloudwalkCallContext;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.FeignThreadLocalUtil;
|
||||
import cn.cloudwalk.cwos.client.event.event.PersonRecordUploadEvent;
|
||||
import cn.cloudwalk.cwos.client.event.event.mode.Face;
|
||||
import cn.cloudwalk.event.annotation.EventTopicSuffix;
|
||||
import cn.cloudwalk.event.handler.EventHandler;
|
||||
import cn.cloudwalk.web.ninca.conference.handler.AbstractEventHandler;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
@EventTopicSuffix(value={"conference-attn"})
|
||||
public class ConferencePersonRecordEventHandler
|
||||
extends AbstractEventHandler
|
||||
implements EventHandler<PersonRecordUploadEvent> {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ConferencePersonRecordEventHandler.class);
|
||||
@Resource
|
||||
private ConferenceResultGenService conferenceResultGenService;
|
||||
|
||||
/*
|
||||
* WARNING - Removed try catching itself - possible behaviour change.
|
||||
*/
|
||||
public void onEvent(PersonRecordUploadEvent personRecordUploadEvent) {
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u6536\u5230personRecordUploadEvent\u6d88\u606f:{}", (Object)JSON.toJSONString((Object)personRecordUploadEvent));
|
||||
try {
|
||||
CloudwalkCallContext context = this.getCloudwalkContext(personRecordUploadEvent.getBusinessId());
|
||||
DeviceResult deviceResult = super.queryDeviceResult(personRecordUploadEvent.getDeviceId(), context);
|
||||
if (deviceResult == null) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u67e5\u8be2\u8bbe\u5907\u5931\u8d25\uff0c\u6ca1\u6709\u627e\u5230\u8bbe\u5907\u4fe1\u606f\uff0c\u8bbe\u5907\u7f16\u7801\uff1a{}", (Object)personRecordUploadEvent.getDeviceId());
|
||||
return;
|
||||
}
|
||||
List<Face> faces = this.filter(personRecordUploadEvent.getFaces());
|
||||
for (Face face : faces) {
|
||||
try {
|
||||
if (face.getRecognitionResult() != null && face.getRecognitionResult().equals(2)) {
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u8be5\u4eba\u8138\u8bc6\u522b\u7ed3\u679c\u4e0d\u7a7a\uff0c\u4e14\u8bc6\u522b\u7ed3\u679c\u5931\u8d25\uff0c\u5ffd\u7565\u8be5\u6d88\u606f\uff0cfaceId={}", (Object)face.getFaceId());
|
||||
continue;
|
||||
}
|
||||
ConferenceResultSignParam signParam = this.setSignParam(personRecordUploadEvent, face, deviceResult);
|
||||
LOGGER.info("\u3010\u4f1a\u8bae\u3011\u7ed3\u679c\u751f\u6210\uff0c\u7b7e\u5230\u5165\u53c2\uff1a{}", (Object)JSON.toJSONString((Object)signParam));
|
||||
this.conferenceResultGenService.gen(signParam, context);
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u7ed3\u679c\u751f\u6210\u5931\u8d25\uff0cfaceId\uff1a{}\uff0c\u539f\u56e0\uff1a", (Object)face.getFaceId(), (Object)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
LOGGER.error("\u3010\u4f1a\u8bae\u3011\u6d88\u8d39\u4eba\u5458\u8bc6\u522b\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0:", (Throwable)e);
|
||||
}
|
||||
finally {
|
||||
FeignThreadLocalUtil.remove();
|
||||
}
|
||||
}
|
||||
|
||||
private List<Face> filter(List<Face> faces) {
|
||||
HashMap<String, Face> tmpMap = new HashMap<String, Face>(faces.size());
|
||||
for (Face face : faces) {
|
||||
tmpMap.put(face.getFaceId() + face.getRecognitionTime(), face);
|
||||
}
|
||||
ArrayList<Face> list = new ArrayList<Face>(tmpMap.size());
|
||||
tmpMap.forEach((k, v) -> list.add((Face)v));
|
||||
return list;
|
||||
}
|
||||
|
||||
private ConferenceResultSignParam setSignParam(PersonRecordUploadEvent event, Face face, DeviceResult deviceResult) {
|
||||
ConferenceResultSignParam param = new ConferenceResultSignParam();
|
||||
BeanCopyUtils.copyProperties((Object)event, (Object)param);
|
||||
BeanCopyUtils.copyProperties((Object)face, (Object)param);
|
||||
if (event.getPanoramaData() != null) {
|
||||
param.setPanoramaImagePath(event.getPanoramaData().getPanoramaImagePath());
|
||||
}
|
||||
param.setDeviceCode(event.getDeviceId());
|
||||
param.setThreshold(BigDecimal.valueOf(event.getThreshold()));
|
||||
param.setScore(BigDecimal.valueOf(face.getScore().floatValue()));
|
||||
param.setQualityScore(BigDecimal.valueOf(face.getQualityScore().floatValue()));
|
||||
if (face.getMaskScore() != null) {
|
||||
param.setMaskScore(BigDecimal.valueOf(face.getMaskScore().floatValue()));
|
||||
}
|
||||
if (face.getTempScore() != null) {
|
||||
param.setTempScore(BigDecimal.valueOf(face.getTempScore().floatValue()));
|
||||
}
|
||||
super.setDevice(param, deviceResult);
|
||||
return param;
|
||||
}
|
||||
}
|
||||
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.CollectionUtils
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RequestMethod
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.controller;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.CollectionUtils;
|
||||
import cn.cloudwalk.web.ninca.conference.common.controller.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.web.ninca.conference.open.form.ConferencePageOpenForm;
|
||||
import cn.cloudwalk.web.ninca.conference.open.result.ConferenceOpenResult;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/conference_attendance/open/conference"})
|
||||
public class ConferenceOpenController
|
||||
extends AbstractCloudwalkController {
|
||||
@Autowired
|
||||
private ConferenceService conferenceService;
|
||||
|
||||
@RequestMapping(value={"/page"}, method={RequestMethod.POST})
|
||||
public CloudwalkResult<CloudwalkPageAble<ConferenceOpenResult>> page(@RequestBody ConferencePageOpenForm form) {
|
||||
ConferenceQueryParam param = (ConferenceQueryParam)BeanCopyUtils.copyProperties((Object)((Object)form), ConferenceQueryParam.class);
|
||||
CloudwalkPageInfo page = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
|
||||
try {
|
||||
CloudwalkResult pageResult = this.conferenceService.page(param, page, this.getCloudwalkContext());
|
||||
if (!pageResult.isSuccess() || CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)pageResult.getData()).getDatas())) {
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(new ArrayList(), page, 0L));
|
||||
}
|
||||
List list = BeanCopyUtils.copy((Collection)((CloudwalkPageAble)pageResult.getData()).getDatas(), ConferenceOpenResult.class);
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble((Collection)list, page, ((CloudwalkPageAble)pageResult.getData()).getTotalRows()));
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u4f1a\u8bae\u4fe1\u606f\u5bf9\u5916\u63a5\u53e3\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280302", (String)this.getMessage("76280302"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+86
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultDetailQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultPageQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultQueryService
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.CollectionUtils
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.web.bind.annotation.PostMapping
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.controller;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultDetailQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultPageQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultQueryService;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.CollectionUtils;
|
||||
import cn.cloudwalk.web.ninca.conference.common.controller.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.web.ninca.conference.open.form.ConferenceResultDetailQueryOpenForm;
|
||||
import cn.cloudwalk.web.ninca.conference.open.form.ConferenceResultPageQueryOpenForm;
|
||||
import cn.cloudwalk.web.ninca.conference.open.result.ConferenceResultDetailQueryGroupOpenResult;
|
||||
import cn.cloudwalk.web.ninca.conference.open.result.ConferenceResultPageQueryOpenResult;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/conference_attendance/open/record/"})
|
||||
public class ConferenceResultOpenController
|
||||
extends AbstractCloudwalkController {
|
||||
@Resource
|
||||
private ConferenceResultQueryService conferenceResultQueryService;
|
||||
|
||||
@PostMapping(value={"/page"})
|
||||
public CloudwalkResult<CloudwalkPageAble<ConferenceResultPageQueryOpenResult>> page(@RequestBody ConferenceResultPageQueryOpenForm form) {
|
||||
try {
|
||||
ConferenceResultPageQueryParam param = (ConferenceResultPageQueryParam)BeanCopyUtils.copyProperties((Object)form, ConferenceResultPageQueryParam.class);
|
||||
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
|
||||
CloudwalkResult page = this.conferenceResultQueryService.page(param, pageInfo, this.getCloudwalkContext());
|
||||
if (!page.isSuccess() || CollectionUtils.isEmpty((Collection)((CloudwalkPageAble)page.getData()).getDatas())) {
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble(new ArrayList(), pageInfo, 0L));
|
||||
}
|
||||
List list = BeanCopyUtils.copy((Collection)((CloudwalkPageAble)page.getData()).getDatas(), ConferenceResultPageQueryOpenResult.class);
|
||||
return CloudwalkResult.success((Object)new CloudwalkPageAble((Collection)list, pageInfo, ((CloudwalkPageAble)page.getData()).getTotalRows()));
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u5206\u9875\u5bf9\u5916\u63a5\u53e3\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280300", (String)this.getMessage("76280300"));
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value={"/detail"})
|
||||
public CloudwalkResult<ConferenceResultDetailQueryGroupOpenResult> detail(@RequestBody ConferenceResultDetailQueryOpenForm form) {
|
||||
try {
|
||||
ConferenceResultDetailQueryParam param = (ConferenceResultDetailQueryParam)BeanCopyUtils.copyProperties((Object)form, ConferenceResultDetailQueryParam.class);
|
||||
CloudwalkResult detail = this.conferenceResultQueryService.detail(param, this.getCloudwalkContext());
|
||||
if (!detail.isSuccess() || detail.getData() == null) {
|
||||
return CloudwalkResult.success((Object)new ConferenceResultDetailQueryGroupOpenResult());
|
||||
}
|
||||
return CloudwalkResult.success((Object)BeanCopyUtils.copyProperties((Object)detail.getData(), ConferenceResultDetailQueryGroupOpenResult.class));
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u8be6\u60c5\u5bf9\u5916\u63a5\u53e3\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280301", (String)this.getMessage("76280301"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
|
||||
public class ConferencePageOpenForm
|
||||
extends CloudwalkBasePageForm {
|
||||
private static final long serialVersionUID = -3244217618252901667L;
|
||||
private String name;
|
||||
private String address;
|
||||
private Integer status;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceResultDetailQueryOpenForm
|
||||
implements Serializable {
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceResultPageQueryOpenForm
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private String name;
|
||||
private Integer status;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
+116
@@ -0,0 +1,116 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDeviceResult
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.result;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDeviceResult;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
public class ConferenceOpenResult
|
||||
implements Serializable {
|
||||
private static final long serialVersionUID = 8285446300005867133L;
|
||||
private String id;
|
||||
private String name;
|
||||
private String address;
|
||||
private Long beginTime;
|
||||
private Long endTime;
|
||||
private Integer isSignoff;
|
||||
private Long signoffDeadline;
|
||||
private Long signBeginTime;
|
||||
private Integer participantsCount;
|
||||
private Integer status;
|
||||
private List<ConferenceDeviceResult> devices;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public Long getBeginTime() {
|
||||
return this.beginTime;
|
||||
}
|
||||
|
||||
public void setBeginTime(Long beginTime) {
|
||||
this.beginTime = beginTime;
|
||||
}
|
||||
|
||||
public Long getEndTime() {
|
||||
return this.endTime;
|
||||
}
|
||||
|
||||
public void setEndTime(Long endTime) {
|
||||
this.endTime = endTime;
|
||||
}
|
||||
|
||||
public Integer getIsSignoff() {
|
||||
return this.isSignoff;
|
||||
}
|
||||
|
||||
public void setIsSignoff(Integer isSignoff) {
|
||||
this.isSignoff = isSignoff;
|
||||
}
|
||||
|
||||
public Long getSignoffDeadline() {
|
||||
return this.signoffDeadline;
|
||||
}
|
||||
|
||||
public void setSignoffDeadline(Long signoffDeadline) {
|
||||
this.signoffDeadline = signoffDeadline;
|
||||
}
|
||||
|
||||
public Long getSignBeginTime() {
|
||||
return this.signBeginTime;
|
||||
}
|
||||
|
||||
public void setSignBeginTime(Long signBeginTime) {
|
||||
this.signBeginTime = signBeginTime;
|
||||
}
|
||||
|
||||
public Integer getParticipantsCount() {
|
||||
return this.participantsCount;
|
||||
}
|
||||
|
||||
public void setParticipantsCount(Integer participantsCount) {
|
||||
this.participantsCount = participantsCount;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public List<ConferenceDeviceResult> getDevices() {
|
||||
return this.devices;
|
||||
}
|
||||
|
||||
public void setDevices(List<ConferenceDeviceResult> devices) {
|
||||
this.devices = devices;
|
||||
}
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailQueryResult
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.result;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailQueryResult;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceResultDetailQueryGroupOpenResult
|
||||
implements Serializable {
|
||||
private ConferenceResultDetailQueryResult latenessPersons;
|
||||
private ConferenceResultDetailQueryResult tardyPersons;
|
||||
private ConferenceResultDetailQueryResult absencePersons;
|
||||
private ConferenceResultDetailQueryResult normalPersons;
|
||||
|
||||
public ConferenceResultDetailQueryResult getLatenessPersons() {
|
||||
return this.latenessPersons;
|
||||
}
|
||||
|
||||
public void setLatenessPersons(ConferenceResultDetailQueryResult latenessPersons) {
|
||||
this.latenessPersons = latenessPersons;
|
||||
}
|
||||
|
||||
public ConferenceResultDetailQueryResult getTardyPersons() {
|
||||
return this.tardyPersons;
|
||||
}
|
||||
|
||||
public void setTardyPersons(ConferenceResultDetailQueryResult tardyPersons) {
|
||||
this.tardyPersons = tardyPersons;
|
||||
}
|
||||
|
||||
public ConferenceResultDetailQueryResult getAbsencePersons() {
|
||||
return this.absencePersons;
|
||||
}
|
||||
|
||||
public void setAbsencePersons(ConferenceResultDetailQueryResult absencePersons) {
|
||||
this.absencePersons = absencePersons;
|
||||
}
|
||||
|
||||
public ConferenceResultDetailQueryResult getNormalPersons() {
|
||||
return this.normalPersons;
|
||||
}
|
||||
|
||||
public void setNormalPersons(ConferenceResultDetailQueryResult normalPersons) {
|
||||
this.normalPersons = normalPersons;
|
||||
}
|
||||
}
|
||||
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.open.result;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
public class ConferenceResultPageQueryOpenResult
|
||||
implements Serializable {
|
||||
private String id;
|
||||
private String name;
|
||||
private Integer status;
|
||||
private Integer participantsCount;
|
||||
private Integer attendanceCount;
|
||||
private BigDecimal attendanceRate;
|
||||
private Integer latenessCount;
|
||||
private Integer tardyCount;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getParticipantsCount() {
|
||||
return this.participantsCount;
|
||||
}
|
||||
|
||||
public void setParticipantsCount(Integer participantsCount) {
|
||||
this.participantsCount = participantsCount;
|
||||
}
|
||||
|
||||
public Integer getAttendanceCount() {
|
||||
return this.attendanceCount;
|
||||
}
|
||||
|
||||
public void setAttendanceCount(Integer attendanceCount) {
|
||||
this.attendanceCount = attendanceCount;
|
||||
}
|
||||
|
||||
public BigDecimal getAttendanceRate() {
|
||||
return this.attendanceRate;
|
||||
}
|
||||
|
||||
public void setAttendanceRate(BigDecimal attendanceRate) {
|
||||
this.attendanceRate = attendanceRate;
|
||||
}
|
||||
|
||||
public Integer getLatenessCount() {
|
||||
return this.latenessCount;
|
||||
}
|
||||
|
||||
public void setLatenessCount(Integer latenessCount) {
|
||||
this.latenessCount = latenessCount;
|
||||
}
|
||||
|
||||
public Integer getTardyCount() {
|
||||
return this.tardyCount;
|
||||
}
|
||||
|
||||
public void setTardyCount(Integer tardyCount) {
|
||||
this.tardyCount = tardyCount;
|
||||
}
|
||||
}
|
||||
|
||||
+120
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.client.ninca.conference.conference.param.ConferenceDetailParam
|
||||
* cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDetailResult
|
||||
* cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultDetailQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultPageQueryParam
|
||||
* cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailExcelResult
|
||||
* cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailQueryGroupResult
|
||||
* cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultPageQueryResult
|
||||
* cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultQueryService
|
||||
* cn.cloudwalk.cloud.exception.ServiceException
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageAble
|
||||
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
|
||||
* cn.cloudwalk.cloud.result.CloudwalkResult
|
||||
* cn.cloudwalk.cloud.utils.BeanCopyUtils
|
||||
* cn.cloudwalk.common.ninca.conference.util.DateUtils
|
||||
* cn.cloudwalk.service.ninca.conference.export.ConferencePersonExportAsyncService
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.validation.BindingResult
|
||||
* org.springframework.validation.ObjectError
|
||||
* org.springframework.web.bind.annotation.PostMapping
|
||||
* org.springframework.web.bind.annotation.RequestBody
|
||||
* org.springframework.web.bind.annotation.RequestMapping
|
||||
* org.springframework.web.bind.annotation.RestController
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.result.controller;
|
||||
|
||||
import cn.cloudwalk.client.ninca.conference.conference.param.ConferenceDetailParam;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.result.ConferenceDetailResult;
|
||||
import cn.cloudwalk.client.ninca.conference.conference.service.ConferenceService;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultDetailQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.param.ConferenceResultPageQueryParam;
|
||||
import cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailExcelResult;
|
||||
import cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultDetailQueryGroupResult;
|
||||
import cn.cloudwalk.client.ninca.conference.result.result.ConferenceResultPageQueryResult;
|
||||
import cn.cloudwalk.client.ninca.conference.result.service.ConferenceResultQueryService;
|
||||
import cn.cloudwalk.cloud.exception.ServiceException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.cloud.result.CloudwalkResult;
|
||||
import cn.cloudwalk.cloud.utils.BeanCopyUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.util.DateUtils;
|
||||
import cn.cloudwalk.service.ninca.conference.export.ConferencePersonExportAsyncService;
|
||||
import cn.cloudwalk.web.ninca.conference.common.controller.AbstractCloudwalkController;
|
||||
import cn.cloudwalk.web.ninca.conference.result.form.ConferenceResultDetailQueryForm;
|
||||
import cn.cloudwalk.web.ninca.conference.result.form.ConferenceResultPageQueryForm;
|
||||
import java.util.Date;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.ObjectError;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@RestController
|
||||
@RequestMapping(value={"/conference_attendance/record/"})
|
||||
public class ConferenceResultController
|
||||
extends AbstractCloudwalkController {
|
||||
@Resource
|
||||
private ConferenceResultQueryService conferenceResultQueryService;
|
||||
@Resource
|
||||
private ConferencePersonExportAsyncService conferencePersonExportAsyncService;
|
||||
@Resource
|
||||
private ConferenceService conferenceService;
|
||||
|
||||
@PostMapping(value={"/page"})
|
||||
public CloudwalkResult<CloudwalkPageAble<ConferenceResultPageQueryResult>> page(@RequestBody ConferenceResultPageQueryForm form) {
|
||||
try {
|
||||
ConferenceResultPageQueryParam param = (ConferenceResultPageQueryParam)BeanCopyUtils.copyProperties((Object)form, ConferenceResultPageQueryParam.class);
|
||||
CloudwalkPageInfo pageInfo = new CloudwalkPageInfo(form.getCurrentPage(), form.getRowsOfPage());
|
||||
return this.conferenceResultQueryService.page(param, pageInfo, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u5206\u9875\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280102", (String)this.getMessage("76280102"));
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value={"/detail"})
|
||||
public CloudwalkResult<ConferenceResultDetailQueryGroupResult> detail(@RequestBody ConferenceResultDetailQueryForm form) {
|
||||
try {
|
||||
ConferenceResultDetailQueryParam param = (ConferenceResultDetailQueryParam)BeanCopyUtils.copyProperties((Object)form, ConferenceResultDetailQueryParam.class);
|
||||
return this.conferenceResultQueryService.detail(param, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280102", (String)this.getMessage("76280102"));
|
||||
}
|
||||
}
|
||||
|
||||
@PostMapping(value={"/export"})
|
||||
public CloudwalkResult<Boolean> export(@RequestBody ConferenceResultDetailQueryForm form, BindingResult bindingResult) {
|
||||
try {
|
||||
if (bindingResult.hasErrors()) {
|
||||
ObjectError objectError = (ObjectError)bindingResult.getAllErrors().get(0);
|
||||
String code = objectError.getDefaultMessage();
|
||||
return CloudwalkResult.fail((String)code, (String)this.getMessage(code));
|
||||
}
|
||||
ConferenceDetailParam detailParam = new ConferenceDetailParam();
|
||||
detailParam.setId(form.getId());
|
||||
CloudwalkResult detail = this.conferenceService.detail(detailParam, this.getCloudwalkContext());
|
||||
if (!detail.isSuccess() || detail.getData() == null) {
|
||||
return CloudwalkResult.fail((String)"76280205", (String)this.getMessage("76280205"));
|
||||
}
|
||||
ConferenceDetailResult result = (ConferenceDetailResult)detail.getData();
|
||||
String fileName = result.getName() + "\u3010" + DateUtils.formatDate((Date)new Date(result.getBeginTime()), (String)"yyyyMMddHHmmss") + "\u3011";
|
||||
ConferenceResultDetailQueryParam param = (ConferenceResultDetailQueryParam)BeanCopyUtils.copyProperties((Object)form, ConferenceResultDetailQueryParam.class);
|
||||
return this.conferencePersonExportAsyncService.startExportTask((Object)param, ConferenceResultDetailExcelResult.class, fileName, this.getCloudwalkContext());
|
||||
}
|
||||
catch (ServiceException e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u8be6\u60c5\u5bfc\u51fa\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
return CloudwalkResult.fail((String)"76280102", (String)this.getMessage("76280102"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.result.form;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceResultDetailQueryForm
|
||||
implements Serializable {
|
||||
private String id;
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.page.CloudwalkBasePageForm
|
||||
*/
|
||||
package cn.cloudwalk.web.ninca.conference.result.form;
|
||||
|
||||
import cn.cloudwalk.cloud.page.CloudwalkBasePageForm;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class ConferenceResultPageQueryForm
|
||||
extends CloudwalkBasePageForm
|
||||
implements Serializable {
|
||||
private String name;
|
||||
private Integer status;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Summary for /tmp/crk_lib_extract_6o_f40r3/ninca-crk-conference-attendance-web-2.9.1_210630-SNAPSHOT.jar
|
||||
Decompiled with CFR 0.152
|
||||
Reference in New Issue
Block a user