Browse Source

feat: [通用操作] 获取编号修改

master
memorylkf 2 months ago
parent
commit
bf7810961e
1 changed files with 6 additions and 7 deletions
  1. +6
    -7
      hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java

+ 6
- 7
hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/PublicController.java View File

@ -77,14 +77,13 @@ public class PublicController extends BaseController {
@GetMapping("/getSn") @GetMapping("/getSn")
public AjaxResult getSn(Integer count,String my) { public AjaxResult getSn(Integer count,String my) {
if (count == null || count.intValue() <= 1) { 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);
} }
/** /**

Loading…
Cancel
Save