|
|
@@ -13,6 +13,7 @@ import javax.annotation.Resource;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -30,9 +31,11 @@ public class BasicTest {
|
|
|
public void save() throws ParseException {
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSS");
|
|
|
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");
|
|
|
- basicService.saveDealRecords(dealRecords);
|
|
|
+ DealRecords dealRecords = new DealRecords(null, new BigDecimal("123.5156"),
|
|
|
+ new BigDecimal("123.5056"), new BigDecimal("1.5754"), date, "rust1", "kk");
|
|
|
+ List<DealRecords> list= new ArrayList<>();
|
|
|
+ list.add(dealRecords);
|
|
|
+ basicService.saveDealRecords(list);
|
|
|
}
|
|
|
|
|
|
@Test
|