|
|
@ -11,6 +11,7 @@ import com.storeroom.modules.common.ArchivesTypeEnum; |
|
|
|
import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; |
|
|
|
import com.storeroom.modules.dictionary.service.ArchivesTypeService; |
|
|
|
import com.storeroom.modules.dictionary.service.DictionaryService; |
|
|
|
import com.storeroom.modules.dictionary.service.dto.ArcDicSmallDTO; |
|
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; |
|
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesTypeDTO; |
|
|
|
import com.storeroom.utils.ApiResponse; |
|
|
@ -80,7 +81,7 @@ public class ArchivesTypeController { |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("删除门类类型") |
|
|
|
@ApiOperation("删除门类类型菜单") |
|
|
|
@AnonymousDeleteMapping("delete-type") |
|
|
|
public ApiResponse<Object> deleteType(@RequestParam String id) { |
|
|
|
if (!StringUtils.isEmpty(id)) { |
|
|
@ -150,4 +151,21 @@ public class ArchivesTypeController { |
|
|
|
return ApiResponse.success(dictionaryService.findDictrionaryMenu()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("删除门类字典字段") |
|
|
|
@AnonymousDeleteMapping("delete-dic") |
|
|
|
public ApiResponse<Object> delete(@RequestParam String id) { |
|
|
|
if (!StringUtils.isEmpty(id)) { |
|
|
|
archivesDictionaryService.delete(id); |
|
|
|
return ApiResponse.success(ResponseStatus.SUCCESS); |
|
|
|
} |
|
|
|
throw new BaseException("id异常"); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("修改排序") |
|
|
|
@AnonymousPutMapping("sort") |
|
|
|
public ApiResponse<Object> upSort(@Validated @RequestBody Set<ArcDicSmallDTO> arcDicSmallDTO){ |
|
|
|
archivesTypeService.updateSort(arcDicSmallDTO); |
|
|
|
return ApiResponse.success(ResponseStatus.SUCCESS); |
|
|
|
} |
|
|
|
} |