|
|
|
@ -6,6 +6,8 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.business.domain.*; |
|
|
|
import com.hxhq.business.dto.sj.SjListDto; |
|
|
|
import com.hxhq.business.dto.study.StudyListDto; |
|
|
|
import com.hxhq.business.enums.NormalEnum; |
|
|
|
import com.hxhq.business.enums.SnTypeEnum; |
|
|
|
import com.hxhq.business.enums.study.StudyStatusEnum; |
|
|
|
import com.hxhq.business.form.common.SignForm; |
|
|
|
import com.hxhq.business.form.sj.SjSearchListForm; |
|
|
|
@ -74,11 +76,11 @@ public class PublicController extends BaseController { |
|
|
|
@GetMapping("/getSn") |
|
|
|
public AjaxResult getSn(Integer count) { |
|
|
|
if (count == null || count.intValue() <= 1) { |
|
|
|
return AjaxResult.success("操作成功",snGenService.getNewSn()); |
|
|
|
return AjaxResult.success("操作成功",snGenService.getNewSn(SnTypeEnum.wz.getValue())); |
|
|
|
}else{ |
|
|
|
List<String> list = new ArrayList<>(); |
|
|
|
for (int i = 0; i < count;i++){ |
|
|
|
list.add(snGenService.getNewSn()); |
|
|
|
list.add(snGenService.getNewSn(SnTypeEnum.wz.getValue())); |
|
|
|
} |
|
|
|
return AjaxResult.success(list); |
|
|
|
} |
|
|
|
@ -127,6 +129,7 @@ public class PublicController extends BaseController { |
|
|
|
@GetMapping("/templateList") |
|
|
|
public TableDataInfo list(Template template) { |
|
|
|
startPage(); |
|
|
|
template.setStatus(NormalEnum.yes.getValue()); |
|
|
|
List<Template> list = templateService.queryList(template); |
|
|
|
return getDataTable(list); |
|
|
|
} |
|
|
|
|