mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
Fixed #48 取整错误
This commit is contained in:
parent
4c2cc4c87a
commit
275f026bad
@ -119,7 +119,7 @@ public class ApiDailplanRunController extends Handler {
|
||||
|
||||
// 并发数,获得该部门的在线客服数 X 坐席外呼并发比
|
||||
final long countagent = userRes.countByOrgiAndAgentAndDatastatusAndOrgan(UKDataContext.SYSTEM_ORGI, true, false, dp.getOrgan().getId());
|
||||
final int concurrency = (int) Math.floor(countagent * dp.getConcurrenceratio());
|
||||
final int concurrency = (int) Math.ceil(countagent * dp.getConcurrenceratio());
|
||||
logger.info("[callout executor] 并发数 {}", concurrency);
|
||||
if (concurrency >= 1) {
|
||||
dp.setExecuted(dp.getExecuted() + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user