dtp-引入dtp代替hippop4j

This commit is contained in:
2025-08-27 16:43:26 +08:00
parent 99922e8630
commit d8a5f54f03
56 changed files with 121 additions and 170 deletions

View File

@@ -96,7 +96,7 @@ public class MyApiService {
private RoomReciveRankingService roomReciveRankingService;
@Autowired
private RoomSendRankingService roomSendRankingService;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
@Autowired
private UsersService usersService;

View File

@@ -68,7 +68,7 @@ public class BravoPoolAdminService {
@Autowired
private BravoUserMetaService userMetaService;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
private String minStartDate = "2025-03-20";

View File

@@ -62,7 +62,7 @@ public class Lucky24RecordAdminService {
@Autowired
private Lucky24RecordMapper recordMapper;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
private String minStartDate = "2024-09-20";

View File

@@ -53,7 +53,7 @@ public class Lucky25RecordAdminService {
@Autowired
private Lucky25RecordMapper recordMapper;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
private String minStartDate = "2025-05-04";

View File

@@ -42,7 +42,7 @@ public class RechargeRiskUserAdminService {
private AccountBlockService accountBlockService;
@Autowired
private RechargeRiskUserAdminMapper rechargeRiskUserAdminMapper;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
public Page<RechargeRiskUserAdminVo> page(Long erbanNo, PageReq req) {

View File

@@ -77,7 +77,7 @@ public class DynamicDataAdminService extends BaseService {
@Autowired
private IWorldService iWorldService;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
public HSSFWorkbook buildPushRecordExcel(List<Dynamic> dynamics) {

View File

@@ -1,6 +1,7 @@
package com.accompany.admin;
import io.micrometer.core.instrument.MeterRegistry;
import org.dromara.dynamictp.spring.annotation.EnableDynamicTp;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
@@ -16,6 +17,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* admin
*
*/
@EnableDynamicTp
@SpringBootApplication
@ComponentScan({"com.accompany","com.xuanyin"})
@EnableScheduling

View File

@@ -49,7 +49,7 @@ public class AppVersionAdminController extends BaseController {
private AppVersionAdminService appVersionAdminService;
@Autowired
private TencentCosUploadService uploadService;
@Resource(name = "bizExecutor")
@Resource(name = "biz-executor")
private ThreadPoolExecutor bizExecutor;
@Autowired
private AdminUserService adminUserService;

View File

@@ -30,7 +30,7 @@ spring:
refresh: true
- data-id: sysconf.yml
refresh: true
- data-id: threadpool.yml
- data-id: dtp.yml
refresh: true
---
@@ -53,7 +53,7 @@ spring:
refresh: true
- data-id: sysconf.yml
refresh: true
- data-id: threadpool.yml
- data-id: dtp.yml
refresh: true
- data-id: database.yml
refresh: true

View File

@@ -1,5 +1,6 @@
package com.accompany.flowteam.admin;
import org.dromara.dynamictp.spring.annotation.EnableDynamicTp;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.SpringBootConfiguration;
@@ -13,6 +14,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* admin
*
*/
@EnableDynamicTp
@SpringBootApplication
@ComponentScan({"com.accompany","com.xuanyin"})
@EnableScheduling

View File

@@ -30,7 +30,7 @@ spring:
refresh: true
- data-id: sysconf.yml
refresh: true
- data-id: threadpool.yml
- data-id: dtp.yml
refresh: true
---
@@ -53,7 +53,7 @@ spring:
refresh: true
- data-id: sysconf.yml
refresh: true
- data-id: threadpool.yml
- data-id: dtp.yml
refresh: true
- data-id: database.yml
refresh: true