mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-04 10:00:11 +08:00
update 电单车
This commit is contained in:
@@ -115,9 +115,9 @@ public class PileService {
|
||||
// 批量生成sn号
|
||||
List<String> snList = null;
|
||||
if (StringUtils.equals(SoftwareProtocolEnum.YOU_DIAN.getValue(), softwareProtocol)) {
|
||||
snList = snUtils.generateSN(dto.getNum());
|
||||
snList = snUtils.generateEBikeSN(dto.getNum());
|
||||
} else {
|
||||
snList = snUtils.generateSN(dto.getNum());
|
||||
snList = snUtils.generateEVPileSN(dto.getNum());
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -261,6 +261,15 @@ public class SpringBootTestController {
|
||||
@Autowired
|
||||
private ZDLService zdlService;
|
||||
|
||||
@Autowired
|
||||
private PileSnGenerateService pileSnGenerateService;
|
||||
|
||||
@Test
|
||||
public void getEBikePileSnTest() {
|
||||
List<String> strings = pileSnGenerateService.generateEBikeSN(8);
|
||||
System.out.println(strings);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void getListByMemberIdAndOrderStatusTest() {
|
||||
String memberId = "12345678";
|
||||
@@ -3507,7 +3516,7 @@ public class SpringBootTestController {
|
||||
|
||||
// 生成100个
|
||||
stopWatch.start("生成100个sn号");
|
||||
List<String> list2 = snUtils.generateSN(1);
|
||||
List<String> list2 = snUtils.generateEVPileSN(1);
|
||||
stopWatch.stop();
|
||||
System.out.println(list2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user