|
|
@@ -660,4 +660,25 @@ public class AsyncUtils {
|
|
|
updateFinanceExamine( id);
|
|
|
tOrderMidMapper.updateFinanceId(id,financeId);
|
|
|
}
|
|
|
+
|
|
|
+ public void updateAdminUserOrderCount(List<AdminUserCount> tramsferList) {
|
|
|
+ for (AdminUserCount e : tramsferList) {
|
|
|
+ String startTime=DateUtils.formatDate(e.getDateTime(),AFTConstants.YYYYMMDD);
|
|
|
+ AdminUserCount selectAUC = adminUserCountMapper.selectByaidAndDate(e.getAid(), startTime);
|
|
|
+ if (selectAUC==null){
|
|
|
+ adminUserCountMapper.insertSelective(e);
|
|
|
+ }else {
|
|
|
+ AdminUserCount newAUC=new AdminUserCount();
|
|
|
+ newAUC.setId(selectAUC.getId());
|
|
|
+ if (e.getPrivateCount()==null)selectAUC.setPrivateCount(0);
|
|
|
+ if (e.getChannelCount()==null)selectAUC.setChannelCount(0);
|
|
|
+ if (e.getSignCount()==null)selectAUC.setSignCount(0);
|
|
|
+ if (e.getOrderCount()==null)selectAUC.setOrderCount(0);
|
|
|
+ newAUC.setPrivateCount(e.getPrivateCount());
|
|
|
+ newAUC.setChannelCount(e.getChannelCount());
|
|
|
+ newAUC.setSignCount(e.getSignCount());
|
|
|
+ adminUserCountMapper.updateByPrimaryKeySelective(newAUC);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|