update 下发停车优惠券时,记录到数据库表中

This commit is contained in:
Lemon
2024-10-15 16:02:43 +08:00
parent 1776075ac2
commit 2196fbf8d8
4 changed files with 42 additions and 2 deletions

View File

@@ -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";