实有人口代码完善

develop
fengchunyu 10 months ago
parent 7644ac767f
commit 65b11a3eec

@ -51,7 +51,7 @@ public class AlarmInfoTask {
try {
QueryWrapper<JcjJjxxViewMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("STATUS");
Page<JcjJjxxViewMysql> page = new Page<>(1, 1000);
Page<JcjJjxxViewMysql> page = new Page<>(1, 200);
List<JcjJjxxViewMysql> resultList = jjxxViewMysqlService.page(page, queryWrapper).getRecords();
CountDownLatch latch = new CountDownLatch(resultList.size());

@ -43,7 +43,7 @@ public class MetaActualUnitUserInfoTask {
try {
QueryWrapper<VSySydwCyryMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("status");
Page<VSySydwCyryMysql> page = new Page<>(1, 1000);
Page<VSySydwCyryMysql> page = new Page<>(1, 200);
List<VSySydwCyryMysql> resultList = vSySydwCyryMysqlService.page(page, queryWrapper).getRecords();
CountDownLatch latch = new CountDownLatch(resultList.size());

@ -61,7 +61,7 @@ public class MetaActualUserInfoTask {
try {
QueryWrapper<VSySyrkMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("status");
Page<VSySyrkMysql> page = new Page<>(1, 1000);
Page<VSySyrkMysql> page = new Page<>(1, 200);
List<VSySyrkMysql> resultList = vSySyrkMysqlService.page(page, queryWrapper).getRecords();
logger.info("VSySyrkMysql size:" + resultList.size());

@ -46,7 +46,7 @@ public class MetaHandleAlarmTask {
try {
QueryWrapper<JcjCjxxViewMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("status");
Page<JcjCjxxViewMysql> page = new Page<>(1, 1000);
Page<JcjCjxxViewMysql> page = new Page<>(1, 200);
List<JcjCjxxViewMysql> resultList = jcjCjxxViewMysqlService.page(page, queryWrapper).getRecords();
CountDownLatch latch = new CountDownLatch(resultList.size());
ExecutorService cjxxPool = Executors.newFixedThreadPool(5);

@ -46,7 +46,7 @@ public class MetaImpUserInfoTask {
try {
QueryWrapper<ZhxfZdrygkRyjbxxViewMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("status");
Page<ZhxfZdrygkRyjbxxViewMysql> page = new Page<>(1, 1000);
Page<ZhxfZdrygkRyjbxxViewMysql> page = new Page<>(1, 200);
List<ZhxfZdrygkRyjbxxViewMysql> resultList = zdryMysqlService.page(page, queryWrapper).getRecords();
for (ZhxfZdrygkRyjbxxViewMysql bean : resultList) {

@ -39,7 +39,7 @@ public class RentalHousingTask {
try {
QueryWrapper<VSySyfwMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("STATUS");
Page<VSySyfwMysql> page = new Page<>(1, 1000);
Page<VSySyfwMysql> page = new Page<>(1, 200);
List<VSySyfwMysql> resultList = syfwMysqlService.page(page, queryWrapper).getRecords();
CountDownLatch latch = new CountDownLatch(resultList.size());

@ -49,7 +49,7 @@ public class UnitInfoTask {
try {
QueryWrapper<VSySydwmMysql> queryWrapper = new QueryWrapper<>();
queryWrapper.isNull("STATUS");
Page<VSySydwmMysql> page = new Page<>(1, 1000);
Page<VSySydwmMysql> page = new Page<>(1, 200);
List<VSySydwmMysql> resultList = vSySydwMysqlService.page(page, queryWrapper).getRecords();
CountDownLatch latch = new CountDownLatch(resultList.size());

@ -23,9 +23,6 @@ import java.text.SimpleDateFormat;
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;
/**
*
@ -87,8 +84,6 @@ public class VLgryGjxxTask {
lgryMap.put("maxTime", currentFormattedDate);
lgryMap.put("minTime", oneYearLaterFormattedDate);
List<VLgryGjxxOracle> list = vLgryGjxxOracleService.getLgryListByTime(lgryMap);
CountDownLatch latch = new CountDownLatch(list.size());
try {
for (VLgryGjxxOracle lgry : list) {
if ("10".equals(lgry.getYJLX())) {
@ -163,15 +158,6 @@ public class VLgryGjxxTask {
} catch (Exception e) {
logger.info("Lgrys:" + StringKit.getTrace(e));
}
latch.countDown();
try {
// Wait for all threads to complete
latch.await();
} catch (InterruptedException e) {
e.printStackTrace();
}
} catch (
Exception e) {

@ -87,8 +87,6 @@ public class VSwryGjxxTask {
SwryMap.put("maxTime", currentFormattedDate);
SwryMap.put("minTime", oneYearLaterFormattedDate);
List<VSwryGjxxOracle> Swrys = vSySwryGjxxOracleService.getSwryListByTime(SwryMap);
CountDownLatch latch = new CountDownLatch(Swrys.size());
try {
for (VSwryGjxxOracle swry : Swrys) {
if ("02".equals(swry.getGJLX())) {
@ -155,16 +153,6 @@ public class VSwryGjxxTask {
} catch (Exception e) {
logger.info("Swrys:" + StringKit.getTrace(e));
}
latch.countDown();
try {
// Wait for all threads to complete
latch.await();
} catch (InterruptedException e) {
e.printStackTrace();
}
} catch (
Exception e) {

@ -1 +1 @@
server: port: 1204 spring: datasource: dynamic: primary: mysql #设置默认的数据源或者数据源组,默认值即为master strict: false #设置严格模式,默认false不启动. 启动后再为匹配到指定数据源时候回抛出异常,不启动会使用默认数据源. datasource: oracleSydz: url: jdbc:mysql://121.41.91.94:12036/yhzafk?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT&connectTimeout=150000 driver-class-name: com.mysql.cj.jdbc.Driver username: root password: '!QAZ1qaz' mysql: url: jdbc:mysql://121.41.91.94:12036/yhzafk?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT&connectTimeout=150000 driver-class-name: com.mysql.cj.jdbc.Driver username: root password: '!QAZ1qaz' mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: - classpath:mapper/*.xml mybatis: configuration: map-underscore-to-camel-case: true mapper-locations: mybatis/**/*Mapper.xml typeAliasesPackage: com.ssf.mysqloracletest.**.domain logging: level: root: info com.ssf.mysqloracletest: debug
server: port: 1204 connection-timeout: 60000 spring: datasource: dynamic: primary: mysql #设置默认的数据源或者数据源组,默认值即为master strict: false #设置严格模式,默认false不启动. 启动后再为匹配到指定数据源时候回抛出异常,不启动会使用默认数据源. datasource: oracleSydz: url: jdbc:mysql://121.41.91.94:12036/yhzafk?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT&connectTimeout=150000 driver-class-name: com.mysql.cj.jdbc.Driver username: root password: '!QAZ1qaz' mysql: url: jdbc:mysql://121.41.91.94:12036/yhzafk?useUnicode=true&characterEncoding=utf8&useSSL=false&allowMultiQueries=true&serverTimezone=GMT&connectTimeout=150000 driver-class-name: com.mysql.cj.jdbc.Driver username: root password: '!QAZ1qaz' hikari: max-pool-size: 100 min-idle: 5 connection-timeout: 60000 mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl mapper-locations: - classpath:mapper/*.xml mybatis: configuration: map-underscore-to-camel-case: true mapper-locations: mybatis/**/*Mapper.xml typeAliasesPackage: com.ssf.mysqloracletest.**.domain logging: level: root: info com.ssf.mysqloracletest: debug

@ -55,8 +55,7 @@
</select>
<select id="selectVSySyrkList" parameterType="java.lang.String" resultMap="BaseResultMap">
select * from v_sy_syrk where status is null
limit 1000
select * from v_sy_syrk where status is null limit 200
</select>
<insert id="insertVSySyrk" parameterType="com.ssf.mysqloracletest.domain.VSySyrkMysql" useGeneratedKeys="true"

Loading…
Cancel
Save