commit
1365a98cd6
@ -0,0 +1,106 @@
|
||||
package com.ssf.mysqloracletest.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 单位从业人员信息表
|
||||
* @TableName meta_actual_unit_user_info
|
||||
*/
|
||||
@TableName(value ="meta_actual_unit_user_info")
|
||||
@Data
|
||||
public class MetaActualUnitUserInfo implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 单位id
|
||||
*/
|
||||
private Long unitId;
|
||||
|
||||
/**
|
||||
* 单位名称
|
||||
*/
|
||||
private String unitName;
|
||||
|
||||
/**
|
||||
* 员工照片
|
||||
*/
|
||||
private String staffPic;
|
||||
|
||||
/**
|
||||
* 员工姓名
|
||||
*/
|
||||
private String staffName;
|
||||
|
||||
/**
|
||||
* 员工身份证
|
||||
*/
|
||||
private String identityId;
|
||||
|
||||
/**
|
||||
* 联系方式
|
||||
*/
|
||||
private String contactInfo;
|
||||
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
private Integer sex;
|
||||
|
||||
/**
|
||||
* 人员分类
|
||||
*/
|
||||
private Integer staffType;
|
||||
|
||||
/**
|
||||
* 人员状态
|
||||
*/
|
||||
private Integer staffState;
|
||||
|
||||
/**
|
||||
* 元数据创建时间
|
||||
*/
|
||||
private String metaCreateTime;
|
||||
|
||||
/**
|
||||
* 元数据更新时间
|
||||
*/
|
||||
private String metaUpdateTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
private Integer createBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
private Integer updateBy;
|
||||
|
||||
/**
|
||||
* 0:不活跃,1:活跃
|
||||
*/
|
||||
private Integer isActive;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.ssf.mysqloracletest.mapper;
|
||||
|
||||
import com.ssf.mysqloracletest.domain.MetaActualUnitUserInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_actual_unit_user_info(单位从业人员信息表)】的数据库操作Mapper
|
||||
* @createDate 2023-12-02 10:31:32
|
||||
* @Entity com.ssf.mysqloracletest.domain.MetaActualUnitUserInfo
|
||||
*/
|
||||
public interface MetaActualUnitUserInfoMapper extends BaseMapper<MetaActualUnitUserInfo> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.ssf.mysqloracletest.service;
|
||||
|
||||
import com.ssf.mysqloracletest.domain.MetaActualUnitUserInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_actual_unit_user_info(单位从业人员信息表)】的数据库操作Service
|
||||
* @createDate 2023-12-02 10:31:32
|
||||
*/
|
||||
public interface MetaActualUnitUserInfoService extends IService<MetaActualUnitUserInfo> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.ssf.mysqloracletest.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.ssf.mysqloracletest.domain.MetaActualUnitUserInfo;
|
||||
import com.ssf.mysqloracletest.service.MetaActualUnitUserInfoService;
|
||||
import com.ssf.mysqloracletest.mapper.MetaActualUnitUserInfoMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author 28758
|
||||
* @description 针对表【meta_actual_unit_user_info(单位从业人员信息表)】的数据库操作Service实现
|
||||
* @createDate 2023-12-02 10:31:32
|
||||
*/
|
||||
@Service
|
||||
public class MetaActualUnitUserInfoServiceImpl extends ServiceImpl<MetaActualUnitUserInfoMapper, MetaActualUnitUserInfo>
|
||||
implements MetaActualUnitUserInfoService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -1,115 +1,145 @@
|
||||
//package com.ssf.mysqloracletest.task;
|
||||
//
|
||||
//import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
|
||||
//import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle;
|
||||
//import com.ssf.mysqloracletest.service.JcjJjxxViewMysqlService;
|
||||
//import com.ssf.mysqloracletest.service.JcjJjxxViewOracleService;
|
||||
//import com.ssf.mysqloracletest.utils.ConfigParam;
|
||||
//import com.ssf.mysqloracletest.utils.NumKit;
|
||||
//import com.ssf.mysqloracletest.utils.StringKit;
|
||||
//import org.slf4j.Logger;
|
||||
//import org.slf4j.LoggerFactory;
|
||||
//import org.springframework.beans.BeanUtils;
|
||||
//import org.springframework.scheduling.annotation.Scheduled;
|
||||
//import org.springframework.stereotype.Component;
|
||||
//
|
||||
//import javax.annotation.Resource;
|
||||
//import java.util.HashMap;
|
||||
//import java.util.List;
|
||||
//import java.util.Map;
|
||||
//import java.util.concurrent.CountDownLatch;
|
||||
//import java.util.concurrent.ExecutorService;
|
||||
//import java.util.concurrent.Executors;
|
||||
//
|
||||
///**
|
||||
// * 用户数据接入
|
||||
// */
|
||||
//@Component
|
||||
//public class JcjJjxxTask {
|
||||
//
|
||||
// private static final Logger logger = LoggerFactory.getLogger(JcjJjxxTask.class);
|
||||
//
|
||||
// @Resource
|
||||
// private JcjJjxxViewMysqlService jcjJjxxViewMysqlService;
|
||||
//
|
||||
// @Resource
|
||||
// private JcjJjxxViewOracleService jcjJjxxViewOracleService;
|
||||
//
|
||||
// final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
||||
//
|
||||
// private boolean JjxxTag = false;
|
||||
//
|
||||
// /**
|
||||
// * 连云港 对接海康平台获取人员基础数据
|
||||
// * //
|
||||
// */
|
||||
// @Scheduled(initialDelay = 100, fixedDelay = 3000)
|
||||
// public void transJjxx() {
|
||||
//
|
||||
// if (JjxxTag) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// if (!"true".equals(ConfigParam.JjxxSwitch)) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
//
|
||||
// try {
|
||||
// int countJjxx = jcjJjxxViewOracleService.countJjxx();
|
||||
// logger.info("countJjxx:" + countJjxx);
|
||||
//
|
||||
// logger.info("countJjxx:" + countJjxx);
|
||||
// if (countJjxx > 0) {
|
||||
//
|
||||
// JjxxTag = true;
|
||||
//
|
||||
// int count = countJjxx / oncesCounts;
|
||||
// CountDownLatch latch = new CountDownLatch(count);
|
||||
// ExecutorService JjxxPool = Executors.newFixedThreadPool(50);
|
||||
//
|
||||
// for (int i = 0; i <= count; i++) {
|
||||
// Map JjxxMap = new HashMap();
|
||||
// JjxxMap.put("rowStart", i * oncesCounts);
|
||||
// JjxxMap.put("rowEnd", (i + 1) * oncesCounts);
|
||||
// JjxxPool.submit(() -> {
|
||||
// try {
|
||||
// List<JcjJjxxViewOracle> Jjxxs = jcjJjxxViewOracleService.getJjxxList(JjxxMap);
|
||||
// for (JcjJjxxViewOracle Jjxx : Jjxxs) {
|
||||
// JcjJjxxViewMysql sBean = new JcjJjxxViewMysql();
|
||||
// BeanUtils.copyProperties(Jjxx, sBean);
|
||||
// //确定一个数据是否唯一
|
||||
// JcjJjxxViewMysql checkJjxx = jcjJjxxViewMysqlService.selectJcjJxxByJJBH(Jjxx.getJJBH());
|
||||
// if (checkJjxx == null) {
|
||||
// jcjJjxxViewMysqlService.insertJjxx(sBean);
|
||||
// logger.info("Jjxx-" + Jjxx.getJJBH() + ":插入成功");
|
||||
// } else {
|
||||
// jcjJjxxViewMysqlService.updateJjxxByJJBH(sBean);
|
||||
// logger.info("Jjxx-" + Jjxx.getJJBH() + ":更新成功");
|
||||
// }
|
||||
// }
|
||||
// } catch (Exception e) {
|
||||
// logger.info("Jjxxs:" + StringKit.getTrace(e));
|
||||
// }
|
||||
// latch.countDown();
|
||||
// });
|
||||
// logger.info("JjxxMap数据总量:" + countJjxx + "," + "当前处理下标:" + JjxxMap.get("rowStart") + "/" + JjxxMap.get("rowEnd"));
|
||||
// }
|
||||
//
|
||||
// try {
|
||||
// // Wait for all threads to complete
|
||||
// latch.await();
|
||||
// } catch (InterruptedException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
// // 关闭线程池
|
||||
// JjxxPool.shutdown();
|
||||
// }
|
||||
//
|
||||
// } catch (Exception e) {
|
||||
// logger.info(StringKit.getTrace(e));
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
||||
package com.ssf.mysqloracletest.task;
|
||||
|
||||
import com.ssf.mysqloracletest.domain.JcjJjxxViewMysql;
|
||||
import com.ssf.mysqloracletest.domain.JcjJjxxViewOracle;
|
||||
import com.ssf.mysqloracletest.service.JcjJjxxViewMysqlService;
|
||||
import com.ssf.mysqloracletest.service.JcjJjxxViewOracleService;
|
||||
import com.ssf.mysqloracletest.utils.ConfigParam;
|
||||
import com.ssf.mysqloracletest.utils.NumKit;
|
||||
import com.ssf.mysqloracletest.utils.StringKit;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* 用户数据接入
|
||||
*/
|
||||
@Component
|
||||
public class JcjJjxxTask {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(JcjJjxxTask.class);
|
||||
|
||||
@Resource
|
||||
private JcjJjxxViewMysqlService jcjJjxxViewMysqlService;
|
||||
|
||||
@Resource
|
||||
private JcjJjxxViewOracleService jcjJjxxViewOracleService;
|
||||
|
||||
final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
||||
|
||||
private boolean JjxxTag = false;
|
||||
|
||||
/**
|
||||
* 连云港 对接海康平台获取人员基础数据
|
||||
* //
|
||||
*/
|
||||
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
||||
public void transJjxx() {
|
||||
|
||||
if (JjxxTag) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!"true".equals(ConfigParam.JjxxSwitch)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
int countJjxx = jcjJjxxViewOracleService.countJjxx();
|
||||
logger.info("countJjxx:" + countJjxx);
|
||||
|
||||
logger.info("countJjxx:" + countJjxx);
|
||||
if (countJjxx > 0) {
|
||||
|
||||
JjxxTag = true;
|
||||
|
||||
int count = countJjxx / oncesCounts;
|
||||
CountDownLatch latch = new CountDownLatch(count);
|
||||
ExecutorService JjxxPool = Executors.newFixedThreadPool(50);
|
||||
|
||||
for (int i = 0; i <= count; i++) {
|
||||
Map JjxxMap = new HashMap();
|
||||
JjxxMap.put("rowStart", i * oncesCounts);
|
||||
JjxxMap.put("rowEnd", (i + 1) * oncesCounts);
|
||||
JjxxPool.submit(() -> {
|
||||
try {
|
||||
List<JcjJjxxViewOracle> Jjxxs = jcjJjxxViewOracleService.getJjxxList(JjxxMap);
|
||||
for (JcjJjxxViewOracle Jjxx : Jjxxs) {
|
||||
JcjJjxxViewMysql sBean = new JcjJjxxViewMysql();
|
||||
BeanUtils.copyProperties(Jjxx, sBean);
|
||||
//确定一个数据是否唯一
|
||||
JcjJjxxViewMysql checkJjxx = jcjJjxxViewMysqlService.selectJcjJxxByJJBH(Jjxx.getJJBH());
|
||||
if (checkJjxx == null) {
|
||||
jcjJjxxViewMysqlService.insertJjxx(sBean);
|
||||
logger.info("Jjxx-" + Jjxx.getJJBH() + ":插入成功");
|
||||
} else {
|
||||
jcjJjxxViewMysqlService.updateJjxxByJJBH(sBean);
|
||||
logger.info("Jjxx-" + Jjxx.getJJBH() + ":更新成功");
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("Jjxxs:" + StringKit.getTrace(e));
|
||||
}
|
||||
latch.countDown();
|
||||
});
|
||||
logger.info("JjxxMap数据总量:" + countJjxx + "," + "当前处理下标:" + JjxxMap.get("rowStart") + "/" + JjxxMap.get("rowEnd"));
|
||||
}
|
||||
|
||||
try {
|
||||
// Wait for all threads to complete
|
||||
latch.await();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// 关闭线程池
|
||||
JjxxPool.shutdown();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.info(StringKit.getTrace(e));
|
||||
}
|
||||
}
|
||||
|
||||
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
||||
public void transcjxxNow() {
|
||||
|
||||
try {
|
||||
|
||||
//1 去mysql查出当前最大时间
|
||||
JcjJjxxViewMysql jcjJjxxViewMysql = jcjJjxxViewMysqlService.selectRecordOrderByRksj();
|
||||
//2 用得到的最大时间去oracle 查询大于这个时间的记录
|
||||
List<JcjJjxxViewOracle> list = jcjJjxxViewOracleService.getRealTimeRecording(jcjJjxxViewMysql.getWS_RKSJ());
|
||||
//3 解析入库
|
||||
for (JcjJjxxViewOracle Jjxx : list) {
|
||||
JcjJjxxViewMysql sBean = new JcjJjxxViewMysql();
|
||||
BeanUtils.copyProperties(Jjxx, sBean);
|
||||
//确定一个数据是否唯一
|
||||
JcjJjxxViewMysql checkJjxx = jcjJjxxViewMysqlService.selectJcjJxxByJJBH(Jjxx.getJJBH());
|
||||
if (checkJjxx == null) {
|
||||
jcjJjxxViewMysqlService.insertJjxx(sBean);
|
||||
logger.info("Jjxx-" + Jjxx.getJJBH() + ":插入成功");
|
||||
} else {
|
||||
jcjJjxxViewMysqlService.updateJjxxByJJBH(sBean);
|
||||
logger.info("Jjxx-" + Jjxx.getJJBH() + ":更新成功");
|
||||
}
|
||||
}
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,139 @@
|
||||
package com.ssf.mysqloracletest.task;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
import com.ssf.mysqloracletest.domain.MetaActualUnitUserInfo;
|
||||
import com.ssf.mysqloracletest.domain.MetaImpUserInfo;
|
||||
import com.ssf.mysqloracletest.domain.VSySydwCyryMysql;
|
||||
import com.ssf.mysqloracletest.service.MetaActualUnitUserInfoService;
|
||||
import com.ssf.mysqloracletest.service.MetaImpUserInfoService;
|
||||
import com.ssf.mysqloracletest.service.VSySydwCyryMysqlService;
|
||||
import com.ssf.mysqloracletest.utils.ConfigParam;
|
||||
import com.ssf.mysqloracletest.utils.NumKit;
|
||||
import com.ssf.mysqloracletest.utils.StringKit;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.CountDownLatch;
|
||||
import java.util.concurrent.ExecutorService;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* 用户数据接入
|
||||
*/
|
||||
@Component
|
||||
public class MetaActualUnitUserInfoTask {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MetaActualUnitUserInfoTask.class);
|
||||
|
||||
@Resource
|
||||
private VSySydwCyryMysqlService vSySydwCyryMysqlService;
|
||||
|
||||
@Resource
|
||||
private MetaActualUnitUserInfoService metaActualUnitUserInfoService;
|
||||
|
||||
final int oncesCounts = NumKit.checkInt(ConfigParam.oncesCounts) == 0 ? 1000 : NumKit.checkInt(ConfigParam.oncesCounts);
|
||||
|
||||
private boolean cyryTag = false;
|
||||
|
||||
/**
|
||||
* 连云港 对接海康平台获取人员基础数据
|
||||
* //
|
||||
*/
|
||||
@Scheduled(initialDelay = 100, fixedDelay = 3000)
|
||||
public void transcyry() {
|
||||
|
||||
if (cyryTag) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!"true".equals(ConfigParam.metaActualUnitUserInfoSwitch)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try {
|
||||
int countcyry = vSySydwCyryMysqlService.count();
|
||||
logger.info("countcyry:" + countcyry);
|
||||
|
||||
if (countcyry > 0) {
|
||||
|
||||
cyryTag = true;
|
||||
|
||||
int count = countcyry / oncesCounts;
|
||||
CountDownLatch latch = new CountDownLatch(count);
|
||||
ExecutorService cyryPool = Executors.newFixedThreadPool(50);
|
||||
|
||||
for (int i = 0; i <= count; i++) {
|
||||
Map cyryMap = new HashMap();
|
||||
cyryMap.put("rowStart", i * oncesCounts);
|
||||
cyryMap.put("rowEnd", (i + 1) * oncesCounts);
|
||||
cyryPool.submit(() -> {
|
||||
try {
|
||||
List<VSySydwCyryMysql> list = vSySydwCyryMysqlService.lambdaQuery().list();
|
||||
for (VSySydwCyryMysql cyry : list) {
|
||||
MetaActualUnitUserInfo metaActualUnitUserInfo = new MetaActualUnitUserInfo();
|
||||
if (cyry.getDWID()!=null) {
|
||||
metaActualUnitUserInfo.setUnitId(Long.parseLong(cyry.getDWID()));
|
||||
}
|
||||
metaActualUnitUserInfo.setUnitName(cyry.getDWMC());
|
||||
metaActualUnitUserInfo.setStaffName(cyry.getXM());
|
||||
metaActualUnitUserInfo.setIdentityId(cyry.getZJHM());
|
||||
metaActualUnitUserInfo.setContactInfo(cyry.getLXDH());
|
||||
if (cyry.getXB()!=null) {
|
||||
metaActualUnitUserInfo.setSex(Integer.parseInt(cyry.getXB()));
|
||||
}
|
||||
if (cyry.getRYFL()!=null) {
|
||||
metaActualUnitUserInfo.setStaffType(Integer.parseInt(cyry.getRYFL()));
|
||||
}
|
||||
if ("Y".equals(cyry.getZT())){
|
||||
metaActualUnitUserInfo.setStaffState(1);
|
||||
}else if ("N".equals(cyry.getZT())){
|
||||
metaActualUnitUserInfo.setStaffState(2);
|
||||
}
|
||||
metaActualUnitUserInfo.setMetaCreateTime(cyry.getYSBZK_RKSJ());
|
||||
metaActualUnitUserInfo.setMetaUpdateTime(cyry.getYSBZK_GXSJ());
|
||||
//确定一个数据是否唯一
|
||||
MetaActualUnitUserInfo one = metaActualUnitUserInfoService.lambdaQuery().eq(MetaActualUnitUserInfo::getIdentityId, cyry.getZJHM())
|
||||
.eq(MetaActualUnitUserInfo::getStaffType, cyry.getRYFL()).one();
|
||||
if (one == null) {
|
||||
metaActualUnitUserInfoService.save(metaActualUnitUserInfo);
|
||||
logger.info("cyry-" + cyry.getZJHM() + ":插入成功");
|
||||
} else {
|
||||
UpdateWrapper<MetaActualUnitUserInfo> metaActualUnitUserInfoUpdateWrapper = new UpdateWrapper<>();
|
||||
metaActualUnitUserInfoUpdateWrapper.eq("identity_id", cyry.getZJHM());
|
||||
metaActualUnitUserInfoUpdateWrapper.eq("staff_type", cyry.getRYFL());
|
||||
metaActualUnitUserInfoService.update(metaActualUnitUserInfo,metaActualUnitUserInfoUpdateWrapper);
|
||||
logger.info("cyry-" + cyry.getZJHM() + ":更新成功");
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.info("cyrys:" + e.getMessage());
|
||||
}
|
||||
latch.countDown();
|
||||
});
|
||||
logger.info("cyryMap数据总量:" + countcyry + "," + "当前处理下标:" + cyryMap.get("rowStart") + "/" + cyryMap.get("rowEnd"));
|
||||
}
|
||||
|
||||
try {
|
||||
// Wait for all threads to complete
|
||||
latch.await();
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// 关闭线程池
|
||||
cyryPool.shutdown();
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
logger.info(StringKit.getTrace(e));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in new issue