|
@@ -16,6 +16,7 @@ import java.text.SimpleDateFormat;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @Author hellor
|
|
* @Author hellor
|
|
@@ -31,8 +32,8 @@ public class BasicTest {
|
|
|
public void save() throws ParseException {
|
|
public void save() throws ParseException {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS");
|
|
|
Date date = sdf.parse("2023-12-07 12:12:12.1585");
|
|
Date date = sdf.parse("2023-12-07 12:12:12.1585");
|
|
|
- DealRecords dealRecords = new DealRecords(null, new BigDecimal("123.5156"),
|
|
|
|
|
- new BigDecimal("123.5056"), new BigDecimal("1.5754"), date, "rust1", "kk");
|
|
|
|
|
|
|
+ DealRecords dealRecords = new DealRecords(null, "123.5156",
|
|
|
|
|
+ "123.5056","1.5754", date.getTime(), "rust1", "kk");
|
|
|
List<DealRecords> list= new ArrayList<>();
|
|
List<DealRecords> list= new ArrayList<>();
|
|
|
list.add(dealRecords);
|
|
list.add(dealRecords);
|
|
|
basicService.saveDealRecords(list);
|
|
basicService.saveDealRecords(list);
|
|
@@ -40,8 +41,8 @@ public class BasicTest {
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void query() {
|
|
public void query() {
|
|
|
- QueryDealRecordsParams params = new QueryDealRecordsParams("2023-12-07 00:00:00", "2023-12-07 22:22:22", null);
|
|
|
|
|
- List<DealRecords> records = basicService.getDealRecordsByParams(params);
|
|
|
|
|
|
|
+ QueryDealRecordsParams params = new QueryDealRecordsParams(1701922332L, 1701922336L, null);
|
|
|
|
|
+ Map<String,List<DealRecords>> records = basicService.getDealRecordsByParams(params);
|
|
|
System.out.println(records);
|
|
System.out.println(records);
|
|
|
}
|
|
}
|
|
|
|
|
|