コード例 #1
0
ファイル: FillProvider.java プロジェクト: thoslin/ELF
 public void saveToDB(List<Fill> fillsDeleteMarketCloseFlag) {
   if (fillsDeleteMarketCloseFlag == null || fillsDeleteMarketCloseFlag.isEmpty()) {
     return;
   }
   for (Fill fill : fillsDeleteMarketCloseFlag) {
     fill.setInternalId(UUID.randomUUID().toString());
   }
   szFillDao.batchCreate(fillsDeleteMarketCloseFlag);
 }
コード例 #2
0
 private String convertCdyy(Fill report, final String reportType) {
   final String hbcdyy = report.getHbcdyy();
   final String hbywlb = report.getHbywlb();
   if (isCancelReject(reportType, hbcdyy, hbywlb)) {
     return CANCEL_FAIL_REASON;
   }
   if (StringUtils.isEmpty(hbcdyy)) {
     return "0";
   }
   return hbcdyy;
 }
コード例 #3
0
 ExecutionReport convertToReportEvent(Fill report, String omsSequence) {
   String reportType = getReportType(report.getHbywlb(), report.getHbcdyy(), report.getHbcjsl());
   ExecutionReport executionReport = new ExecutionReport();
   executionReport.setReportType(reportType);
   executionReport.setExecutionId(omsSequence);
   executionReport.setPrice(report.getHbcjjg());
   executionReport.setQuantity(Math.abs((long) report.getHbcjsl()));
   executionReport.setSymbol(report.getHbzqdm());
   String convertCdyy = convertCdyy(report, executionReport.getReportType());
   executionReport.setErrorCode(convertCdyy);
   return executionReport;
 }