|
|
|
@ -77,14 +77,13 @@ public class PublicController extends BaseController { |
|
|
|
@GetMapping("/getSn") |
|
|
|
public AjaxResult getSn(Integer count,String my) { |
|
|
|
if (count == null || count.intValue() <= 1) { |
|
|
|
return AjaxResult.success("操作成功",snGenService.getNewSn(SnTypeEnum.wz.getValue(),my)); |
|
|
|
}else{ |
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
for (int i = 0; i < count;i++){ |
|
|
|
list.add(snGenService.getNewSn(SnTypeEnum.wz.getValue(),my)); |
|
|
|
} |
|
|
|
return AjaxResult.success(list); |
|
|
|
count = 1; |
|
|
|
} |
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
for (int i = 0; i < count;i++){ |
|
|
|
list.add(snGenService.getNewSn(SnTypeEnum.wz.getValue(),my)); |
|
|
|
} |
|
|
|
return AjaxResult.success(list); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
|