mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update
This commit is contained in:
@@ -112,15 +112,17 @@ public class PileService {
|
||||
|
||||
public int batchCreatePile(BatchCreatePileDTO dto) {
|
||||
String softwareProtocol = dto.getSoftwareProtocol();
|
||||
if (StringUtils.isBlank(softwareProtocol)) {
|
||||
throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不能为空"));
|
||||
}
|
||||
// if (StringUtils.isBlank(softwareProtocol)) {
|
||||
// throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不能为空"));
|
||||
// }
|
||||
// 批量生成sn号
|
||||
List<String> snList = null;
|
||||
if (StringUtils.equals(SoftwareProtocolEnum.YOU_DIAN.getValue(), softwareProtocol)) {
|
||||
snList = snUtils.generateEBikeSN(dto.getNum());
|
||||
} else {
|
||||
} else if (StringUtils.equals(SoftwareProtocolEnum.YUN_KUAI_CHONG.getValue(), softwareProtocol)){
|
||||
snList = snUtils.generateEVPileSN(dto.getNum());
|
||||
} else {
|
||||
throw new BusinessException(ReturnCodeEnum.valueOf("软件协议不正确"));
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user