|
@@ -69,12 +69,7 @@ public class OtherAccountMsgWarnTask extends AbstractTask implements StopTask {
|
|
|
List<Long> receiverIdList = new ArrayList<>();
|
|
|
receiverIdList.add(financeDirectors.getLong("id"));
|
|
|
receiverIdList.add(financeLeader.getLong("id"));
|
|
|
- // 获取昨天晚上九点到第二天早上九点的数据
|
|
|
Date beginDate = DateUtils.getMinutesBefore(changeMinute);
|
|
|
- // 获取公司下,发生笔数超过20笔的账户
|
|
|
- // 最大交易次数默认20
|
|
|
- int maxTimes = 20;
|
|
|
- BigDecimal maxAmount = new BigDecimal("100000000");
|
|
|
DynamicObjectCollection transDetailData = getTransDetailData(company, beginDate);
|
|
|
if(transDetailData == null || transDetailData.isEmpty()){
|
|
|
BizLog.log("没有符合条件的数据,不进行消息发送。");
|
|
@@ -141,6 +136,9 @@ public class OtherAccountMsgWarnTask extends AbstractTask implements StopTask {
|
|
|
if(beginDate != null){
|
|
|
filterList.add(new QFilter(BeiBeTransDetailConstant.KEY_BIZTIME, QFilter.large_equals, beginDate));
|
|
|
}
|
|
|
+ // 除默认付款付之外的付款
|
|
|
+ filterList.add(new QFilter("accountbank.isdefaultpay", QFilter.equals, false));
|
|
|
+
|
|
|
return QueryServiceHelper.queryDataSet(this.getClass().getName() ,BeiBeTransDetailConstant.ENTITYID,
|
|
|
"id,billno,company.name,accountbank.name,accountbank.bankaccountnumber,bank.name,debitamount,oppunit,description,bizdate,biztime",
|
|
|
filterList.toArray(new QFilter[0]),"bizdate desc");
|