feat: add service config templates and extraction script

Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
反编译工作区
2026-05-01 19:38:01 +08:00
parent 3175b7074b
commit 8b15445328
2433 changed files with 8322164 additions and 1604 deletions
@@ -0,0 +1,67 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* com.fasterxml.jackson.annotation.JsonAutoDetect$Visibility
* com.fasterxml.jackson.annotation.PropertyAccessor
* com.fasterxml.jackson.databind.ObjectMapper
* com.fasterxml.jackson.databind.ObjectMapper$DefaultTyping
* org.springframework.context.annotation.Bean
* org.springframework.context.annotation.Configuration
* org.springframework.context.annotation.Primary
* org.springframework.data.redis.connection.RedisConnectionFactory
* org.springframework.data.redis.core.RedisTemplate
* org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer
* org.springframework.data.redis.serializer.RedisSerializer
* org.springframework.data.redis.serializer.StringRedisSerializer
*/
package cn.cloudwalk.biz.ninca.accesscontrol.cache;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
@Configuration
public class CacheOverrideConfig {
public static final String CACHE_NAME_APPLICATIONIDS = "ACS_Applicationids";
public static final String CACHE_NAME_ACS_DEVICE_TYPES = "ACS_DeviceTypesCache";
public static final String CACHE_NAME_ACS_DEVICE_TYPE_FEATURES = "ACS_DeviceTypeFeaturesCache";
public static final String CACHE_NAME_ACS_DEVICE_ATTRS = "ACS_DeviceAttrsCache";
public static final String CACHE_NAME_ACS_RECORD_STATISTICS = "ACS_RecordStatisticsCache";
public static final String CACHE_NAME_ACS_DEVICE_TREE = "ACS_DeviceTreeCache";
public static final String CACHE_NAME_ACS_AREA_TREE = "ACS_AreaTreeCache";
public static final String CACHE_KEY_APPLICATION_IDS_PREFIX = "acs_applicationIds:";
public static final String CACHE_KEY_ACS_DEVICE_TYPES_PREFIX = "acs_deviceTypes:";
public static final String CACHE_KEY_ACS_DEVICE_TYPE_FEATURES_PREFIX = "acs_deviceTypeFeatures:";
public static final String CACHE_KEY_ACS_EXPORT_PREFIX = "acs_export_prefix:";
public static final String CACHE_KEY_ACS_DEVICE_ATTRS_PREFIX = "acs_deviceAttrs:";
public static final String CACHE_KEY_ACS_RECORD_STATISTICS_PREFIX = "acs_recordStatistics:";
public static final String CACHE_KEY_ACS_DEVICE_TREE_PREFIX = "acs_deviceTreeCache";
public static final String CACHE_KEY_ACS_AREA_TREE_PREFIX = "acs_areaTreeCache:";
@Primary
@Bean(value={"redisTemplate"})
public RedisTemplate<Object, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate redisTemplate = new RedisTemplate();
redisTemplate.setConnectionFactory(redisConnectionFactory);
StringRedisSerializer stringRedisSerializer = new StringRedisSerializer();
Jackson2JsonRedisSerializer jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer(Object.class);
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
objectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
jackson2JsonRedisSerializer.setObjectMapper(objectMapper);
redisTemplate.setValueSerializer((RedisSerializer)jackson2JsonRedisSerializer);
redisTemplate.setKeySerializer((RedisSerializer)stringRedisSerializer);
redisTemplate.afterPropertiesSet();
return redisTemplate;
}
}
@@ -0,0 +1,31 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.serial.UUIDSerial
* cn.cloudwalk.cloud.utils.CloudwalkDateUtils
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
*/
package cn.cloudwalk.biz.ninca.accesscontrol.common;
import cn.cloudwalk.cloud.serial.UUIDSerial;
import cn.cloudwalk.cloud.utils.CloudwalkDateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
public abstract class AbstractCloudwalkManager {
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
@Autowired(required=false)
private UUIDSerial uuidSerial;
public String genUUID() {
if (null != this.uuidSerial) {
return this.uuidSerial.uuid();
}
return CloudwalkDateUtils.getUUID();
}
}
@@ -0,0 +1,61 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsCheckDeviceDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsCheckDeviceResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsCheckDeviceDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsCheckDeviceManager
extends AbstractCloudwalkManager {
@Autowired
private AcsCheckDeviceDao acsCheckDeviceDao;
public List<AcsCheckDeviceResultDTO> listDevices(AcsCheckDeviceQueryDTO dto) throws DataAccessException {
try {
return this.acsCheckDeviceDao.listDevices(dto);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u8003\u52e4\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer addCheckDevices(List<AcsCheckDeviceAddDTO> addDTOS) throws DataAccessException {
try {
return this.acsCheckDeviceDao.addCheckDevices(addDTOS);
}
catch (Exception e) {
this.logger.error("\u6279\u91cf\u65b0\u589e\u8003\u52e4\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer deleteByDeviceIds(List<String> deviceIds) throws DataAccessException {
try {
return this.acsCheckDeviceDao.deleteByDeviceIds(deviceIds);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u8bbe\u5907ids\u5220\u9664\u8003\u52e4\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,63 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrEditDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrQueryDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrResultDto
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceAttrDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrEditDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrQueryDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAttrResultDto;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceAttrDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsDeviceAttrManager
extends AbstractCloudwalkManager {
@Autowired
private AcsDeviceAttrDao acsDeviceAttrDao;
public Integer insert(AcsDeviceAttrAddDto dto) throws DataAccessException {
try {
return this.acsDeviceAttrDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u95e8\u7981\u8bbe\u5907\u5c5e\u6027\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer update(AcsDeviceAttrEditDto dto) throws DataAccessException {
try {
return this.acsDeviceAttrDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u95e8\u7981\u8bbe\u5907\u5c5e\u6027\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsDeviceAttrResultDto> query(AcsDeviceAttrQueryDto dto) throws DataAccessException {
try {
return this.acsDeviceAttrDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u95e8\u7981\u8bbe\u5907\u5c5e\u6027\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,99 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceDeleteDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceUpdateStatusDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceDeleteDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceUpdateStatusDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsDeviceManager
extends AbstractCloudwalkManager {
@Autowired
private AcsDeviceDao acsDeviceDao;
public Integer insert(AcsDeviceAddDTO dto) throws DataAccessException {
try {
return this.acsDeviceDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u65b0\u589e\u95e8\u7981\u8bbe\u5907\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer batchInsert(List<AcsDeviceAddDTO> list) throws DataAccessException {
try {
return this.acsDeviceDao.batchInsert(list);
}
catch (Exception e) {
this.logger.error("\u6279\u91cf\u6dfb\u52a0\u95e8\u7981\u8bbe\u5907\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsDeviceDeleteDTO dto) throws DataAccessException {
try {
return this.acsDeviceDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u95e8\u7981\u8bbe\u5907\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsDeviceResultDTO> page(AcsDeviceQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsDeviceDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u95e8\u7981\u8bbe\u5907\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsDeviceResultDTO> list(AcsDeviceQueryDTO dto) throws DataAccessException {
try {
return this.acsDeviceDao.list(dto);
}
catch (Exception e) {
this.logger.error("\u5217\u8868\u67e5\u8be2\u95e8\u7981\u8bbe\u5907\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer updateOpenStatus(AcsDeviceUpdateStatusDTO dto) throws DataAccessException {
try {
return this.acsDeviceDao.updateOpenStatus(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u95e8\u7981\u8bbe\u5907\u5f00\u95ed\u72b6\u6001\u6570\u636e\u5e93\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,68 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTaskAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTaskDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTaskDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTaskAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTaskDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTaskDao;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsDeviceTaskManager
extends AbstractCloudwalkManager {
@Resource
private AcsDeviceTaskDao acsDeviceTaskDao;
public Integer add(AcsDeviceTaskAddDto dto) throws DataAccessException {
try {
return this.acsDeviceTaskDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u95e8\u7981\u8bbe\u5907\u7ed1\u5b9a\u4efb\u52a1\u8fdb\u5ea6\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer updateBingDevices(AcsDeviceTaskAddDto dto) throws DataAccessException {
try {
return this.acsDeviceTaskDao.updateBingDevices(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u4efb\u52a1\u5df2\u7ed1\u5b9a\u6570\u91cf\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer updateIsStop(AcsDeviceTaskAddDto dto) throws DataAccessException {
try {
return this.acsDeviceTaskDao.updateIsStop(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u4efb\u52a1\u72b6\u6001\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public AcsDeviceTaskDTO getById(String taskId) throws DataAccessException {
try {
return this.acsDeviceTaskDao.getById(taskId);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u4efb\u52a1id\u83b7\u53d6\u95e8\u7981\u8bbe\u5907\u7ed1\u5b9a\u4efb\u52a1\u8fdb\u5ea6\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,57 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTypeDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTypeFeaturesDto
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTypeDao
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTypeFeaturesDao
* javax.annotation.Resource
* org.springframework.cache.annotation.Cacheable
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTypeDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsDeviceTypeFeaturesDto;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTypeDao;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsDeviceTypeFeaturesDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;
@Component
public class AcsDeviceTypeManager
extends AbstractCloudwalkManager {
@Resource
private AcsDeviceTypeDao acsDeviceTypeDao;
@Resource
private AcsDeviceTypeFeaturesDao acsDeviceTypeFeaturesDao;
@Cacheable(cacheNames={"ACS_DeviceTypesCache"}, key="T(cn.cloudwalk.biz.ninca.accesscontrol.cache.CacheOverrideConfig).CACHE_KEY_ACS_DEVICE_TYPES_PREFIX")
public List<AcsDeviceTypeDTO> typeListAll() throws DataAccessException {
try {
return this.acsDeviceTypeDao.list(null);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u8bbe\u5907\u7c7b\u578b\u5217\u8868\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
@Cacheable(cacheNames={"ACS_DeviceTypeFeaturesCache"}, key="T(cn.cloudwalk.biz.ninca.accesscontrol.cache.CacheOverrideConfig).CACHE_KEY_ACS_DEVICE_TYPE_FEATURES_PREFIX + #dto.deviceTypeCode")
public List<AcsDeviceTypeFeaturesDto> query(AcsDeviceTypeFeaturesDto dto) throws DataAccessException {
try {
return this.acsDeviceTypeFeaturesDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u8bbe\u5907\u7c7b\u578b\u7684\u529f\u80fd\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,89 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupDelDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupEditDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentDeviceGroupDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupDelDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupEditDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceGroupResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentDeviceGroupDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsUrgentDeviceGroupManager
extends AbstractCloudwalkManager {
@Autowired
private AcsUrgentDeviceGroupDao acsUrgentDeviceGroupDao;
public Integer add(AcsUrgentDeviceGroupAddDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceGroupDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u7d27\u6025\u758f\u6563\u5206\u7ec4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer edit(AcsUrgentDeviceGroupEditDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceGroupDao.edit(dto);
}
catch (Exception e) {
this.logger.error("\u7f16\u8f91\u7d27\u6025\u758f\u6563\u5206\u7ec4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsUrgentDeviceGroupDelDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceGroupDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u7d27\u6025\u758f\u6563\u5206\u7ec4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsUrgentDeviceGroupResultDTO> page(AcsUrgentDeviceGroupQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsUrgentDeviceGroupDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u7d27\u6025\u758f\u6563\u5206\u7ec4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsUrgentDeviceGroupResultDTO> query(AcsUrgentDeviceGroupQueryDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceGroupDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u7d27\u6025\u758f\u6563\u5206\u7ec4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,87 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceDeleteDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceNewDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentDeviceDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceDeleteDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceNewDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentDeviceResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentDeviceDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsUrgentDeviceManager
extends AbstractCloudwalkManager {
@Autowired
private AcsUrgentDeviceDao acsUrgentDeviceDao;
public List<AcsUrgentDeviceResultDTO> gets(AcsUrgentDeviceQueryDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceDao.gets(dto);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u7d27\u6025\u76f8\u5173\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsUrgentDeviceResultDTO> page(AcsUrgentDeviceQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsUrgentDeviceDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u7d27\u6025\u76f8\u5173\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer add(AcsUrgentDeviceNewDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u65b0\u589e\u7d27\u6025\u76f8\u5173\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsUrgentDeviceDeleteDTO dto) throws DataAccessException {
try {
return this.acsUrgentDeviceDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u7d27\u6025\u76f8\u5173\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer batchInsert(List<AcsUrgentDeviceNewDTO> dto) throws DataAccessException {
try {
return this.acsUrgentDeviceDao.batchInsert(dto);
}
catch (Exception e) {
this.logger.error("\u6279\u91cf\u6dfb\u52a0\u7d27\u6025\u76f8\u5173\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,63 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceDelDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentGroupDeviceDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceDelDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.AcsUrgentGroupDeviceResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.AcsUrgentGroupDeviceDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsUrgentGroupDeviceManager
extends AbstractCloudwalkManager {
@Autowired
private AcsUrgentGroupDeviceDao acsUrgentGroupDeviceDao;
public Integer batchAdd(List<AcsUrgentGroupDeviceAddDTO> list) throws DataAccessException {
try {
return this.acsUrgentGroupDeviceDao.batchAdd(list);
}
catch (Exception e) {
this.logger.error("\u7d27\u6025\u758f\u6563\u5206\u7ec4\u6279\u91cf\u6dfb\u52a0\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsUrgentGroupDeviceDelDTO dto) throws DataAccessException {
try {
return this.acsUrgentGroupDeviceDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u7d27\u6025\u758f\u6563\u5206\u7ec4\u6279\u91cf\u5220\u9664\u8bbe\u5907\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsUrgentGroupDeviceResultDTO> query(AcsUrgentGroupDeviceQueryDTO dto) throws DataAccessException {
try {
return this.acsUrgentGroupDeviceDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u7d27\u6025\u758f\u6563\u5206\u7ec4\u8bbe\u5907\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,57 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.ClockDeviceResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.device.dao.ClockDeviceDao
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.device;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.device.dto.ClockDeviceResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.device.dao.ClockDeviceDao;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class ClockDeviceManager
extends AbstractCloudwalkManager {
@Autowired
private ClockDeviceDao clockDeviceDao;
public String getAreaIdByDeviceId(String deviceId) throws DataAccessException {
try {
return this.clockDeviceDao.getAreaIdByDeviceId(deviceId);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u8bbe\u5907id\u67e5\u8be2\u8bbe\u5907\u6240\u5c5e\u697c\u5c42id\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<String> getDeviceIds() throws DataAccessException {
try {
return this.clockDeviceDao.getDeviceIds();
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u6240\u6709\u7684\u6253\u5361\u8bbe\u5907id\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<ClockDeviceResultDTO> listAll() throws DataAccessException {
try {
return this.clockDeviceDao.listAll();
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u6240\u6709\u8bbe\u5907\u6240\u5c5e\u697c\u5c42id\u5f02\u5e38\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,121 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.utils.ApplicationContextUtils
* cn.cloudwalk.common.ninca.accesscontrol.annotation.ExcelAttribute
* cn.cloudwalk.common.ninca.accesscontrol.annotation.ExcelBytesAttribute
* cn.cloudwalk.common.ninca.accesscontrol.util.StringUtils
* cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException
* cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager
* com.google.common.base.Stopwatch
* javax.annotation.PreDestroy
* org.slf4j.Logger
* org.slf4j.LoggerFactory
* org.springframework.beans.factory.annotation.Autowired
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.export;
import cn.cloudwalk.cloud.utils.ApplicationContextUtils;
import cn.cloudwalk.common.ninca.accesscontrol.annotation.ExcelAttribute;
import cn.cloudwalk.common.ninca.accesscontrol.annotation.ExcelBytesAttribute;
import cn.cloudwalk.common.ninca.accesscontrol.util.StringUtils;
import cn.cloudwalk.intelligent.davinci.common.exception.DavinciServiceException;
import cn.cloudwalk.intelligent.davinci.storage.manager.FileStorageManager;
import com.google.common.base.Stopwatch;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveAction;
import java.util.concurrent.TimeUnit;
import javax.annotation.PreDestroy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component
public class AcsParallelismDownloadManager {
private static final Logger LOGGER = LoggerFactory.getLogger(AcsParallelismDownloadManager.class);
@Autowired
private FileStorageManager fileStorageManager;
private static ForkJoinPool parallelDownloadPool = new ForkJoinPool(10);
@PreDestroy
public void destroy() {
parallelDownloadPool.shutdown();
}
public <T> void parallelResolve(List<T> list, Class<T> clazz) throws Exception {
Field[] allFields = clazz.getDeclaredFields();
HashMap<String, Field> fieldMap = new HashMap<String, Field>();
for (Field field : allFields) {
ExcelBytesAttribute bytesAttribute;
String pathField;
if (!field.isAnnotationPresent(ExcelAttribute.class) || !field.isAnnotationPresent(ExcelBytesAttribute.class) || !StringUtils.isNotBlank((String)(pathField = (bytesAttribute = field.getAnnotation(ExcelBytesAttribute.class)).pathField()))) continue;
String getMethod = "get" + StringUtils.toUpperCase((String)pathField, (int)1);
fieldMap.put(getMethod, field);
}
if (fieldMap.size() == 0) {
return;
}
Stopwatch stopwatch = Stopwatch.createStarted();
BatchDownloadTask<T> batchDownloadTask = new BatchDownloadTask<T>(fieldMap, clazz, list);
parallelDownloadPool.submit(batchDownloadTask).get();
LOGGER.info("\u4e0b\u8f7d\u56fe\u7247\u8017\u65f6:{},\u8bb0\u5f55\u6761\u6570:{}", (Object)stopwatch.elapsed(TimeUnit.SECONDS), (Object)list.size());
}
private static class BatchDownloadTask<T>
extends RecursiveAction {
private static final Logger LOGGER = LoggerFactory.getLogger(BatchDownloadTask.class);
private static final Integer SIZE = 10;
private Map<String, Field> fileField;
private Class cls;
private List<T> list;
public BatchDownloadTask(Map<String, Field> fileField, Class cls, List<T> list) {
this.fileField = fileField;
this.cls = cls;
this.list = list;
}
@Override
protected void compute() {
if (this.list.size() <= SIZE) {
for (T entry : this.list) {
try {
this.computeSingle(entry, this.fileField, this.cls);
}
catch (Exception e) {
LOGGER.error("\u5e76\u884c\u5904\u7406\u6587\u4ef6\u4e0b\u8f7d\u51fa\u73b0\u5f02\u5e38", (Throwable)e);
}
}
return;
}
int middle = this.list.size() / 2;
BatchDownloadTask<T> taskLeft = new BatchDownloadTask<T>(this.fileField, this.cls, this.list.subList(0, middle));
BatchDownloadTask<T> taskRight = new BatchDownloadTask<T>(this.fileField, this.cls, this.list.subList(middle, this.list.size()));
BatchDownloadTask.invokeAll(taskLeft, taskRight);
}
private void computeSingle(T obj, Map<String, Field> fileField, Class cls) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException, DavinciServiceException {
for (Map.Entry<String, Field> fieldEntry : fileField.entrySet()) {
Method getMethod = cls.getMethod(fieldEntry.getKey(), new Class[0]);
Object filePathObj = getMethod.invoke(obj, new Object[0]);
String filePath = null;
if (filePathObj == null || !StringUtils.isNotBlank((String)(filePath = (String)filePathObj))) continue;
FileStorageManager fileStorageManager = (FileStorageManager)ApplicationContextUtils.getBean(FileStorageManager.class);
byte[] bytes = fileStorageManager.fileDownload(filePath);
String setMethodName = "set" + StringUtils.toUpperCase((String)fieldEntry.getValue().getName(), (int)1);
Method setMethod = cls.getMethod(setMethodName, fieldEntry.getValue().getType());
setMethod.invoke(obj, new Object[]{bytes});
}
}
}
}
@@ -0,0 +1,109 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleDeleteDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleEditDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleQueryDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleResultDto
* cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassRuleDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.passtime;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleDeleteDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleEditDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleQueryDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassRuleResultDto;
import cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassRuleDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsPassRuleManager
extends AbstractCloudwalkManager {
@Resource
private AcsPassRuleDao acsPassRuleDao;
public Integer add(AcsPassRuleAddDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer edit(AcsPassRuleEditDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u7f16\u8f91\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsPassRuleDeleteDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsPassRuleResultDto> page(AcsPassRuleQueryDto dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsPassRuleDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsPassRuleResultDto> query(AcsPassRuleQueryDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.list(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u7d27\u901a\u884c\u89c4\u5219\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<String> listDeviceIdsByDto(AcsPassRuleQueryDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.listDeviceIdsByDto(dto);
}
catch (Exception e) {
this.logger.error("\u83b7\u53d6\u56fe\u5e93\u5173\u8054\u7684\u8bbe\u5907\u4fe1\u606f\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public String getByName(AcsPassRuleQueryDto dto) throws DataAccessException {
try {
return this.acsPassRuleDao.getByName(dto);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u89c4\u5219\u540d\u79f0\u83b7\u53d6\u89c4\u5219id\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,89 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeDeleteDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeEditDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeQueryDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeResultDto
* cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassTimeDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.passtime;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeDeleteDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeEditDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeQueryDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassTimeResultDto;
import cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassTimeDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsPassTimeManager
extends AbstractCloudwalkManager {
@Resource
private AcsPassTimeDao acsPassTimeDao;
public Integer add(AcsPassTimeAddDto dto) throws DataAccessException {
try {
return this.acsPassTimeDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u901a\u884c\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer edit(AcsPassTimeEditDto dto) throws DataAccessException {
try {
return this.acsPassTimeDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u7f16\u8f91\u901a\u884c\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsPassTimeDeleteDto dto) throws DataAccessException {
try {
return this.acsPassTimeDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u901a\u884c\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsPassTimeResultDto> page(AcsPassTimeQueryDto dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsPassTimeDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u901a\u884c\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsPassTimeResultDto> query(AcsPassTimeQueryDto dto) throws DataAccessException {
try {
return this.acsPassTimeDao.list(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u901a\u884c\u65f6\u95f4\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,85 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefDeleteDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefEditDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefQueryDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefResultDto
* cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassableRefDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.passtime;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefDeleteDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefEditDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefQueryDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.pass.dto.AcsPassableRefResultDto;
import cn.cloudwalk.data.ninca.accesscontrol.passtime.dao.AcsPassableRefDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsPassableRefManager
extends AbstractCloudwalkManager {
@Resource
private AcsPassableRefDao acsPassableRefDao;
public Integer add(AcsPassableRefAddDto dto) throws DataAccessException {
try {
return this.acsPassableRefDao.insert(dto);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u56fe\u5e93\u4eba\u5458\u65f6\u95f4\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer batchAdd(List<AcsPassableRefAddDto> dtos) throws DataAccessException {
try {
return this.acsPassableRefDao.batchInsert(dtos);
}
catch (Exception e) {
this.logger.error("\u6dfb\u52a0\u56fe\u5e93\u4eba\u5458\u65f6\u95f4\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer edit(AcsPassableRefEditDto dto) throws DataAccessException {
try {
return this.acsPassableRefDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u7f16\u8f91\u56fe\u5e93\u4eba\u5458\u65f6\u95f4\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer delete(AcsPassableRefDeleteDto dto) throws DataAccessException {
try {
return this.acsPassableRefDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u56fe\u5e93\u4eba\u5458\u65f6\u95f4\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsPassableRefResultDto> query(AcsPassableRefQueryDto dto) throws DataAccessException {
try {
return this.acsPassableRefDao.list(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u56fe\u5e93\u4eba\u5458\u65f6\u95f4\u5173\u8054\u5f02\u5e38\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,87 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonAddDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonDelDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonEditDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonGetsDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonQueryDto
* cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonResultDto
* cn.cloudwalk.data.ninca.accesscontrol.person.dao.AcsPersonDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.person;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonAddDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonDelDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonEditDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonGetsDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonQueryDto;
import cn.cloudwalk.common.ninca.accesscontrol.bean.person.dto.AcsPersonResultDto;
import cn.cloudwalk.data.ninca.accesscontrol.person.dao.AcsPersonDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsPersonManager
extends AbstractCloudwalkManager {
@Resource
private AcsPersonDao acsPersonDao;
public int add(AcsPersonAddDto dto) throws DataAccessException {
try {
return this.acsPersonDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u65b0\u589e\u95e8\u7981\u4eba\u5458\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public int update(AcsPersonEditDto dto) throws DataAccessException {
try {
return this.acsPersonDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u4fee\u6539\u95e8\u7981\u4eba\u5458\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public int delete(AcsPersonDelDto dto) throws DataAccessException {
try {
return this.acsPersonDao.delete(dto);
}
catch (Exception e) {
this.logger.error("\u5220\u9664\u95e8\u7981\u4eba\u5458\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsPersonResultDto> gets(AcsPersonGetsDto getsDto) throws DataAccessException {
try {
return this.acsPersonDao.gets(getsDto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u95e8\u7981\u4eba\u5458\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsPersonResultDto> query(AcsPersonQueryDto queryDto) throws DataAccessException {
try {
return this.acsPersonDao.query(queryDto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u95e8\u7981\u4eba\u5458\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,81 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordDetailQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordDetailQueryResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordQueryResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordEditDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsElevatorRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordDetailQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordDetailQueryResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsElevatorRecordQueryResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordEditDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsElevatorRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsElevatorRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsElevatorRecordDao acsElevatorRecordDao;
public Integer add(AcsElevatorRecordAddDTO dto) throws DataAccessException {
try {
return this.acsElevatorRecordDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u5237\u8138\u6d3e\u68af\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer update(AcsOpenDoorRecordEditDTO dto) throws DataAccessException {
try {
return this.acsElevatorRecordDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u4fee\u6539\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsElevatorRecordDetailQueryResultDTO> detail(AcsElevatorRecordDetailQueryDTO queryDTO, CloudwalkPageInfo pageInfo) throws DataAccessException {
try {
return this.acsElevatorRecordDao.detail(queryDTO, pageInfo);
}
catch (Exception e) {
this.logger.error("\u5237\u8138\u6d3e\u68af\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsElevatorRecordQueryResultDTO> query(AcsOpenDoorRecordQueryDTO dto) throws DataAccessException {
try {
return this.acsElevatorRecordDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,87 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordEditDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsEvacuateRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordEditDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsEvacuateRecordResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsEvacuateRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsEvacuateRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsEvacuateRecordDao acsEvacuateRecordDao;
public Integer add(AcsEvacuateRecordAddDTO dto) throws DataAccessException {
try {
return this.acsEvacuateRecordDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u589e\u52a0\u758f\u6563\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer batchAdd(List<AcsEvacuateRecordAddDTO> list) throws DataAccessException {
try {
return this.acsEvacuateRecordDao.batchAdd(list);
}
catch (Exception e) {
this.logger.error("\u6279\u91cf\u589e\u52a0\u758f\u6563\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer update(AcsEvacuateRecordEditDTO dto) throws DataAccessException {
try {
return this.acsEvacuateRecordDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u758f\u6563\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsEvacuateRecordResultDTO> page(AcsEvacuateRecordQueryDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsEvacuateRecordDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u758f\u6563\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsEvacuateRecordResultDTO> query(AcsEvacuateRecordQueryDTO dto) throws DataAccessException {
try {
return this.acsEvacuateRecordDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u758f\u6563\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,85 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordEditDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordStatisticsResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsOpenDoorRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordEditDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordQueryResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOpenDoorRecordStatisticsResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsOpenDoorRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsOpenDoorRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsOpenDoorRecordDao acsOpenDoorRecordDao;
public Integer add(AcsOpenDoorRecordAddDTO dto) throws DataAccessException {
try {
return this.acsOpenDoorRecordDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsOpenDoorRecordStatisticsResultDTO> statisticsByDay(AcsOpenDoorRecordQueryDTO dto) throws DataAccessException {
try {
return this.acsOpenDoorRecordDao.statisticsByDay(dto);
}
catch (Exception e) {
this.logger.error("\u6309\u65e5\u7edf\u8ba1\u5f00\u95e8\u6b21\u6570\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer update(AcsOpenDoorRecordEditDTO dto) throws DataAccessException {
try {
return this.acsOpenDoorRecordDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u4fee\u6539\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsOpenDoorRecordQueryResultDTO> query(AcsOpenDoorRecordQueryDTO dto) throws DataAccessException {
try {
return this.acsOpenDoorRecordDao.query(dto);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
public Integer updateRecogOpenDoorType(String openDoorTable, String recogTable, Long startTime, Long endTime) throws DataAccessException {
try {
return this.acsOpenDoorRecordDao.updateRecogOpenDoorType(openDoorTable, recogTable, startTime, endTime);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u8bc6\u522b\u8bb0\u5f55\u5f00\u95e8\u7c7b\u578b\u5931\u8d25\uff0c\u539f\u56e0\uff1a[{}]", (Object)e.getMessage(), (Object)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,81 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordEditDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordPageDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordQueryResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsOperateRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordEditDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordPageDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordQueryResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsOperateRecordResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsOperateRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsOperateRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsOperateRecordDao acsOperateRecordDao;
public int add(AcsOperateRecordAddDTO dto) throws DataAccessException {
try {
return this.acsOperateRecordDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u95e8\u7981\u64cd\u4f5c\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public int update(AcsOperateRecordEditDTO dto) throws DataAccessException {
try {
return this.acsOperateRecordDao.update(dto);
}
catch (Exception e) {
this.logger.error("\u66f4\u65b0\u95e8\u7981\u64cd\u4f5c\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsOperateRecordQueryResultDTO> queryOrderByOperateTime(AcsOperateRecordQueryDTO queryDTO) throws DataAccessException {
try {
return this.acsOperateRecordDao.queryOrderByOperateTime(queryDTO);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u95e8\u7981\u64cd\u4f5c\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsOperateRecordResultDTO> pageRecord(AcsOperateRecordPageDTO queryDTO, CloudwalkPageInfo pageInfo) throws DataAccessException {
try {
return this.acsOperateRecordDao.pageRecord(queryDTO, pageInfo);
}
catch (Exception e) {
this.logger.error("\u7acb\u523b\u5f00\u95e8\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,69 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordPageDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordStatisticsResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecogRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordPageDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecogRecordStatisticsResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecogRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsRecogRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsRecogRecordDao acsRecogRecordDao;
public Integer add(AcsRecogRecordAddDTO dto) throws DataAccessException {
try {
return this.acsRecogRecordDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u8bc6\u522b\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsRecogRecordResultDTO> page(AcsRecogRecordPageDTO dto, CloudwalkPageInfo page) throws DataAccessException {
try {
return this.acsRecogRecordDao.page(dto, page);
}
catch (Exception e) {
this.logger.error("\u5206\u9875\u67e5\u8be2\u8bc6\u522b\u8bb0\u5f55\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsRecogRecordStatisticsResultDTO> statisticsByDay(AcsRecogRecordQueryDTO dto) throws DataAccessException {
try {
return this.acsRecogRecordDao.statisticsByDay(dto);
}
catch (Exception e) {
this.logger.error("\u6309\u65e5\u7edf\u8ba1\u8bc6\u522b\u6b21\u6570\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,69 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.cloud.page.CloudwalkPageAble
* cn.cloudwalk.cloud.page.CloudwalkPageInfo
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordDetailQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordDetailQueryResultDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordThreeSendQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsTemperatureRecordDetailQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsTemperatureRecordDetailQueryResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecordDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordDetailQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordDetailQueryResultDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordThreeSendQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsTemperatureRecordDetailQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsTemperatureRecordDetailQueryResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecordDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsRecordManager
extends AbstractCloudwalkManager {
@Resource
private AcsRecordDao acsRecordDao;
public CloudwalkPageAble<AcsRecordDetailQueryResultDTO> detail(AcsRecordDetailQueryDTO queryDTO, CloudwalkPageInfo pageInfo) throws DataAccessException {
try {
return this.acsRecordDao.detail(queryDTO, pageInfo);
}
catch (Exception e) {
this.logger.error("\u5f00\u95e8\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public CloudwalkPageAble<AcsTemperatureRecordDetailQueryResultDTO> temperature(AcsTemperatureRecordDetailQueryDTO queryDTO, CloudwalkPageInfo pageInfo) throws DataAccessException {
try {
return this.acsRecordDao.temperature(queryDTO, pageInfo);
}
catch (Exception e) {
this.logger.error("\u5f02\u5e38\u4f53\u6e29\u8bb0\u5f55\u8be6\u60c5\u67e5\u8be2\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsRecordDetailQueryResultDTO> listByTime(AcsRecordThreeSendQueryDTO queryDTO) throws DataAccessException {
try {
return this.acsRecordDao.listByTime(queryDTO);
}
catch (Exception e) {
this.logger.error("\u6839\u636e\u65f6\u95f4\u67e5\u8be2\u6210\u529f\u7684\u5f00\u95e8\u8bb0\u5f55\u5931\u8d25,\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,61 @@
/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* cn.cloudwalk.cloud.exception.DataAccessException
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsAddDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsQueryDTO
* cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsResultDTO
* cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecordStatisticsDao
* javax.annotation.Resource
* org.springframework.stereotype.Component
*/
package cn.cloudwalk.biz.ninca.accesscontrol.record;
import cn.cloudwalk.biz.ninca.accesscontrol.common.AbstractCloudwalkManager;
import cn.cloudwalk.cloud.exception.DataAccessException;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsAddDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsQueryDTO;
import cn.cloudwalk.common.ninca.accesscontrol.bean.record.AcsRecordStatisticsResultDTO;
import cn.cloudwalk.data.ninca.accesscontrol.record.dao.AcsRecordStatisticsDao;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
@Component
public class AcsRecordStatisticsManager
extends AbstractCloudwalkManager {
@Resource
private AcsRecordStatisticsDao acsRecordStatisticsDao;
public int add(AcsRecordStatisticsAddDTO dto) throws DataAccessException {
try {
return this.acsRecordStatisticsDao.add(dto);
}
catch (Exception e) {
this.logger.error("\u4fdd\u5b58\u95e8\u7981\u8bb0\u5f55\u7edf\u8ba1\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public int addList(List<AcsRecordStatisticsAddDTO> dto) throws DataAccessException {
try {
return this.acsRecordStatisticsDao.addList(dto);
}
catch (Exception e) {
this.logger.error("\u6279\u91cf\u4fdd\u5b58\u95e8\u7981\u8bb0\u5f55\u7edf\u8ba1\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
public List<AcsRecordStatisticsResultDTO> query(AcsRecordStatisticsQueryDTO queryDTO) throws DataAccessException {
try {
return this.acsRecordStatisticsDao.query(queryDTO);
}
catch (Exception e) {
this.logger.error("\u67e5\u8be2\u95e8\u7981\u8bb0\u5f55\u7edf\u8ba1\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
throw new DataAccessException((Throwable)e);
}
}
}
@@ -0,0 +1,2 @@
Summary for /tmp/crk_lib_extract_6o_f40r3/ninca-crk-access-control-biz-2.9.1_210630-SNAPSHOT.jar
Decompiled with CFR 0.152