mirror of
https://github.com/hpd840321/starRiverProperty.git
synced 2026-06-12 01:40:30 +08:00
feat: add service config templates and extraction script
Former-commit-id: 1de24b7eb79676d1aba9d799a58c5a753290cf52
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* org.slf4j.Logger
|
||||
* org.slf4j.LoggerFactory
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.common;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public abstract class AbstractManager {
|
||||
protected final Logger logger = LoggerFactory.getLogger(this.getClass());
|
||||
}
|
||||
|
||||
+91
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* 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.conference.bean.conference.dto.ConferenceEditDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceGetsDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceImageStoreExpiredDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceImageStoreExpiredResultDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceResultDTO
|
||||
* cn.cloudwalk.data.ninca.conference.conference.dao.ConferenceDao
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.conference;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceEditDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceGetsDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceImageStoreExpiredDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceImageStoreExpiredResultDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.conference.dto.ConferenceResultDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.conference.dao.ConferenceDao;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceManager
|
||||
extends AbstractManager {
|
||||
@Autowired
|
||||
private ConferenceDao conferenceDao;
|
||||
|
||||
public Integer add(ConferenceEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDao.add(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u4f1a\u8bae\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer edit(ConferenceEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDao.edit(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u7f16\u8f91\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferenceResultDTO> gets(ConferenceGetsDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDao.gets(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u83b7\u53d6\u4f1a\u8bae\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public CloudwalkPageAble<ConferenceResultDTO> page(CloudwalkPageInfo page, ConferenceQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDao.page(page, dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u4f1a\u8bae\u4fe1\u606f\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public CloudwalkPageAble<ConferenceImageStoreExpiredResultDTO> expiredPage(CloudwalkPageInfo page, ConferenceImageStoreExpiredDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDao.expiredPage(page, dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5206\u9875\u67e5\u8be2\u8fc7\u671f\u7684\u4f1a\u8bae\u56fe\u5e93\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceDelDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceEditDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceResultDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceUnbindQueryDTO
|
||||
* cn.cloudwalk.data.ninca.conference.device.dao.ConferenceDeviceDao
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.device;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceDelDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceEditDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceResultDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.device.dto.ConferenceDeviceUnbindQueryDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.device.dao.ConferenceDeviceDao;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceDeviceManager
|
||||
extends AbstractManager {
|
||||
@Autowired
|
||||
private ConferenceDeviceDao conferenceDeviceDao;
|
||||
|
||||
public Integer add(List<ConferenceDeviceEditDTO> list) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDeviceDao.add(list);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u4f1a\u8bae\u7b7e\u5230\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferenceDeviceResultDTO> applicationUnbindDevice(ConferenceDeviceUnbindQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDeviceDao.applicationUnbindDevice(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5e94\u7528\u4e0d\u53ef\u89e3\u7ed1\u8bbe\u5907\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer delete(ConferenceDeviceDelDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDeviceDao.delete(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5220\u9664\u4f1a\u8bae\u7b7e\u5230\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferenceDeviceResultDTO> query(ConferenceDeviceQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceDeviceDao.query(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u67e5\u8be2\u4f1a\u8bae\u8bbe\u5907\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+121
@@ -0,0 +1,121 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.utils.ApplicationContextUtils
|
||||
* cn.cloudwalk.common.ninca.conference.annotation.ExcelAttribute
|
||||
* cn.cloudwalk.common.ninca.conference.annotation.ExcelBytesAttribute
|
||||
* cn.cloudwalk.common.ninca.conference.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.conference.export;
|
||||
|
||||
import cn.cloudwalk.cloud.utils.ApplicationContextUtils;
|
||||
import cn.cloudwalk.common.ninca.conference.annotation.ExcelAttribute;
|
||||
import cn.cloudwalk.common.ninca.conference.annotation.ExcelBytesAttribute;
|
||||
import cn.cloudwalk.common.ninca.conference.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 ConferenceParallelismDownloadManager {
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(ConferenceParallelismDownloadManager.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});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+61
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreEditDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreGetDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreResultDTO
|
||||
* cn.cloudwalk.data.ninca.conference.imagestore.dao.ConferenceImageStoreDao
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.imagestore;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreEditDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreGetDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.imagestore.dto.ConferenceImageStoreResultDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.imagestore.dao.ConferenceImageStoreDao;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceImageStoreManager
|
||||
extends AbstractManager {
|
||||
@Autowired
|
||||
private ConferenceImageStoreDao conferenceImageStoreDao;
|
||||
|
||||
public Integer add(ConferenceImageStoreEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceImageStoreDao.add(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u4f1a\u8bae\u56fe\u5e93\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer edit(ConferenceImageStoreEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceImageStoreDao.edit(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u7f16\u8f91\u4f1a\u8bae\u56fe\u5e93\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferenceImageStoreResultDTO> gets(ConferenceImageStoreGetDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceImageStoreDao.gets(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u83b7\u53d6\u4f1a\u8bae\u56fe\u5e93\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+101
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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.conference.bean.person.dto.ConferencePersonCountQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonCountResultDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonDelDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonEditDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonResultDTO
|
||||
* cn.cloudwalk.data.ninca.conference.person.dao.ConferencePersonDao
|
||||
* org.springframework.beans.factory.annotation.Autowired
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.person;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonCountQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonCountResultDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonDelDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonEditDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.person.dto.ConferencePersonResultDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.person.dao.ConferencePersonDao;
|
||||
import java.util.List;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferencePersonManager
|
||||
extends AbstractManager {
|
||||
@Autowired
|
||||
private ConferencePersonDao conferencePersonDao;
|
||||
|
||||
public Integer add(List<ConferencePersonEditDTO> list) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.add(list);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u65b0\u589e\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer delete(ConferencePersonDelDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.delete(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u5220\u9664\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferencePersonCountResultDTO> personCount(ConferencePersonCountQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.personCount(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u7edf\u8ba1\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferencePersonResultDTO> query(ConferencePersonQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.query(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public Integer edit(ConferencePersonEditDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.edit(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u7f16\u8f91\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public CloudwalkPageAble<ConferencePersonResultDTO> page(ConferencePersonQueryDTO dto, CloudwalkPageInfo pageInfo) throws DataAccessException {
|
||||
try {
|
||||
return this.conferencePersonDao.page(dto, pageInfo);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u53c2\u4f1a\u4eba\u5458\u5206\u9875\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+51
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordAddDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordQueryResultDTO
|
||||
* cn.cloudwalk.data.ninca.conference.result.dao.ConferenceRecordDao
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.result;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordAddDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceRecordQueryResultDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.result.dao.ConferenceRecordDao;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceRecordManager
|
||||
extends AbstractManager {
|
||||
@Resource
|
||||
private ConferenceRecordDao conferenceRecordDao;
|
||||
|
||||
public int add(ConferenceRecordAddDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceRecordDao.add(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u7b7e\u5230\u8bb0\u5f55\u65b0\u589e\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
|
||||
public List<ConferenceRecordQueryResultDTO> query(ConferenceRecordQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceRecordDao.query(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u7b7e\u5230\u8bb0\u5f55\u67e5\u8be2\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Decompiled with CFR 0.152.
|
||||
*
|
||||
* Could not load the following classes:
|
||||
* cn.cloudwalk.cloud.exception.DataAccessException
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.gen.dto.ConferenceResultConferenceDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.gen.dto.ConferenceResultConferenceQueryDTO
|
||||
* cn.cloudwalk.data.ninca.conference.result.dao.ConferenceResultGenDao
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.result;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.gen.dto.ConferenceResultConferenceDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.gen.dto.ConferenceResultConferenceQueryDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.result.dao.ConferenceResultGenDao;
|
||||
import java.util.List;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceResultGenManager
|
||||
extends AbstractManager {
|
||||
@Resource
|
||||
private ConferenceResultGenDao ConferenceResultGenDao;
|
||||
|
||||
public List<ConferenceResultConferenceDTO> queryConference(ConferenceResultConferenceQueryDTO dto) throws DataAccessException {
|
||||
try {
|
||||
return this.ConferenceResultGenDao.queryConference(dto);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u7ed3\u679c\u751f\u6210\uff0c\u67e5\u8be2\u53ef\u7528\u7684\u4f1a\u8bae\u5217\u8868\u5931\u8d25\uff0c\u539f\u56e0\uff1a", (Throwable)e);
|
||||
throw new DataAccessException((Throwable)e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* 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.conference.bean.result.dto.ConferenceResultPageQueryDTO
|
||||
* cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceResultPageQueryResultDTO
|
||||
* cn.cloudwalk.data.ninca.conference.result.dao.ConferenceResultQueryDao
|
||||
* javax.annotation.Resource
|
||||
* org.springframework.stereotype.Component
|
||||
*/
|
||||
package cn.cloudwalk.biz.ninca.conference.result;
|
||||
|
||||
import cn.cloudwalk.biz.ninca.conference.common.AbstractManager;
|
||||
import cn.cloudwalk.cloud.exception.DataAccessException;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageAble;
|
||||
import cn.cloudwalk.cloud.page.CloudwalkPageInfo;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceResultPageQueryDTO;
|
||||
import cn.cloudwalk.common.ninca.conference.bean.result.dto.ConferenceResultPageQueryResultDTO;
|
||||
import cn.cloudwalk.data.ninca.conference.result.dao.ConferenceResultQueryDao;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class ConferenceResultQueryManager
|
||||
extends AbstractManager {
|
||||
@Resource
|
||||
private ConferenceResultQueryDao conferenceResultQueryDao;
|
||||
|
||||
public CloudwalkPageAble<ConferenceResultPageQueryResultDTO> page(ConferenceResultPageQueryDTO dto, CloudwalkPageInfo pageInfo) throws DataAccessException {
|
||||
try {
|
||||
return this.conferenceResultQueryDao.page(dto, pageInfo);
|
||||
}
|
||||
catch (Exception e) {
|
||||
this.logger.error("\u4f1a\u8bae\u8bb0\u5f55\u5206\u9875\u67e5\u8be2\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-conference-attendance-biz-2.9.1_210630-SNAPSHOT.jar
|
||||
Decompiled with CFR 0.152
|
||||
Reference in New Issue
Block a user