|
@ -6,8 +6,8 @@ import com.storeroom.annotaion.rest.AnonymousGetMapping; |
|
|
import com.storeroom.annotaion.rest.AnonymousPostMapping; |
|
|
import com.storeroom.annotaion.rest.AnonymousPostMapping; |
|
|
import com.storeroom.annotaion.rest.AnonymousPutMapping; |
|
|
import com.storeroom.annotaion.rest.AnonymousPutMapping; |
|
|
import com.storeroom.exception.BaseException; |
|
|
import com.storeroom.exception.BaseException; |
|
|
import com.storeroom.modules.dictionary.domain.ArchivesDictionary; |
|
|
|
|
|
import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; |
|
|
import com.storeroom.modules.dictionary.service.ArchivesDictionaryService; |
|
|
|
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesDicStateDTO; |
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; |
|
|
import com.storeroom.modules.dictionary.service.dto.ArchivesDictionaryDTO; |
|
|
import com.storeroom.utils.ApiResponse; |
|
|
import com.storeroom.utils.ApiResponse; |
|
|
import com.storeroom.utils.StringUtils; |
|
|
import com.storeroom.utils.StringUtils; |
|
@ -80,4 +80,26 @@ public class ArchivesDictrionaryController { |
|
|
} |
|
|
} |
|
|
throw new BaseException("id异常"); |
|
|
throw new BaseException("id异常"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("门类字段管理") |
|
|
|
|
|
@AnonymousGetMapping("manage") |
|
|
|
|
|
public ApiResponse<Object> getFieldName(@RequestParam String categoryId, Integer isDataType,Boolean isInput) { |
|
|
|
|
|
if (!StringUtils.isEmpty(categoryId) && isDataType != null) { |
|
|
|
|
|
ArchivesDicStateDTO dto = new ArchivesDicStateDTO(); |
|
|
|
|
|
dto.setCategoryId(categoryId); |
|
|
|
|
|
dto.setIsDataType(isDataType); |
|
|
|
|
|
dto.setIsInput(isInput); |
|
|
|
|
|
return ApiResponse.success(arcdicService.getAll(dto)); |
|
|
|
|
|
} |
|
|
|
|
|
throw new BaseException("id异常"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("通过id查询门类字典") |
|
|
|
|
|
@AnonymousGetMapping("query") |
|
|
|
|
|
public ApiResponse<Object> getArcDic(String arcdicId) { |
|
|
|
|
|
if (!StringUtils.isEmpty(arcdicId)) { |
|
|
|
|
|
return ApiResponse.success(arcdicService.findById(arcdicId)); |
|
|
|
|
|
} |
|
|
|
|
|
throw new BaseException("id异常"); |
|
|
|
|
|
} |
|
|
} |
|
|
} |