文件分类标记
This commit is contained in:
parent
384d857c3c
commit
781f665eb5
|
|
@ -93,7 +93,7 @@ public class ArchiveController extends BaseController {
|
|||
if (vo.getLevel() == null) {
|
||||
return R.fail("级别有误");
|
||||
}
|
||||
Integer num = service.geMaxSort(vo.getParentId().toString());
|
||||
int num = service.geMaxSort(vo.getParentId().toString());
|
||||
if (vo.getSort() <= num) {
|
||||
return R.fail("排序序号需大于" + num);
|
||||
}
|
||||
|
|
@ -137,7 +137,7 @@ public class ArchiveController extends BaseController {
|
|||
@RequiresPermissions("archive:catalogue:edit")
|
||||
public R editArchivalCatalogue(@RequestBody @Validated ArchivalCatalogueVo vo) {
|
||||
try {
|
||||
Integer num = service.geMaxSort(vo.getParentId().toString());
|
||||
int num = service.geMaxSort(vo.getParentId().toString());
|
||||
int sort = service.getSortById(vo.getId());
|
||||
if (sort != vo.getSort() && vo.getSort() <= num) {
|
||||
return R.fail("排序序号需大于" + num);
|
||||
|
|
@ -185,7 +185,7 @@ public class ArchiveController extends BaseController {
|
|||
@SysLog(title = "查询最大sort", module = "档案管理->查询最大sort", businessType = OperaType.QUERY, details = "查询最大sort", logType = 1)
|
||||
public AjaxResult geMaxSort(String parentId) {
|
||||
try {
|
||||
Integer num = service.geMaxSort(parentId);
|
||||
int num = service.geMaxSort(parentId);
|
||||
return AjaxResult.success(num);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
|
|
|
|||
Loading…
Reference in New Issue