mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update 下发停车优惠券时,记录到数据库表中
This commit is contained in:
@@ -104,7 +104,7 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@ActiveProfiles("pre")
|
||||
@ActiveProfiles("dev")
|
||||
@SpringBootTest(classes = JsowellApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
|
||||
@RunWith(SpringRunner.class)
|
||||
public class SpringBootTestController {
|
||||
@@ -264,12 +264,27 @@ public class SpringBootTestController {
|
||||
@Autowired
|
||||
private PileSnGenerateService pileSnGenerateService;
|
||||
|
||||
@Autowired
|
||||
private CarCouponRecordService carCouponRecordService;
|
||||
|
||||
@Test
|
||||
public void getEBikePileSnTest() {
|
||||
List<String> strings = pileSnGenerateService.generateEBikeSN(8);
|
||||
System.out.println(strings);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testInsetCarCoupon() {
|
||||
CarCouponRecord carCouponRecord = new CarCouponRecord();
|
||||
carCouponRecord.setOrderCode("123456");
|
||||
carCouponRecord.setReturnCode("10004");
|
||||
carCouponRecord.setReturnMsg("该车牌已领取过该券包中的优惠券");
|
||||
carCouponRecord.setPlateNumber("粤BD26691");
|
||||
carCouponRecord.setStationId(Long.parseLong("19"));
|
||||
|
||||
carCouponRecordService.insertCarCouponRecord(carCouponRecord);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getListByMemberIdAndOrderStatusTest() {
|
||||
String memberId = "12345678";
|
||||
|
||||
Reference in New Issue
Block a user