编目新增一级分类创建保存开发指南文件的文件夹
This commit is contained in:
parent
19f628ee58
commit
4eade083b9
|
@ -69,7 +69,7 @@ public class CategoryController {
|
||||||
if (ObjectUtils.isEmpty(categoryDTO.getPid())) {
|
if (ObjectUtils.isEmpty(categoryDTO.getPid())) {
|
||||||
File file = new File(devModelFilePath + File.pathSeparator + categoryDTO.getName());
|
File file = new File(devModelFilePath + File.pathSeparator + categoryDTO.getName());
|
||||||
//文件路径不存在,创建各种能力的子文件夹
|
//文件路径不存在,创建各种能力的子文件夹
|
||||||
if (! new File(devModelFilePath).exists()) {
|
if (! file.exists()) {
|
||||||
try {
|
try {
|
||||||
file.createNewFile();
|
file.createNewFile();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|
|
@ -42,7 +42,7 @@ public class DevelopmentGuideController {
|
||||||
@ApiImplicitParam(name = "type", value = "类型", paramType = "query", required = true, dataType = "String"),
|
@ApiImplicitParam(name = "type", value = "类型", paramType = "query", required = true, dataType = "String"),
|
||||||
@ApiImplicitParam(name = "resourceId", value = "能力ID", paramType = "query", required = false, dataType = "Long"),
|
@ApiImplicitParam(name = "resourceId", value = "能力ID", paramType = "query", required = false, dataType = "Long"),
|
||||||
})
|
})
|
||||||
public void getDevelopmentFile(@ApiIgnore HttpServletRequest request, @ApiIgnore HttpServletResponse response) {
|
public void getDevelopmentFile(HttpServletRequest request, HttpServletResponse response) {
|
||||||
try {
|
try {
|
||||||
developmentGuideService.getDevelopmentFile(request, response);
|
developmentGuideService.getDevelopmentFile(request, response);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -77,6 +77,9 @@ public class ResourceDTO implements Serializable {
|
||||||
private String isCollect;
|
private String isCollect;
|
||||||
@ApiModelProperty(value = "评分")
|
@ApiModelProperty(value = "评分")
|
||||||
private Long score;
|
private Long score;
|
||||||
|
@ApiModelProperty(value = "申请结果")
|
||||||
|
private String applyState;
|
||||||
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "属性信息")
|
@ApiModelProperty(value = "属性信息")
|
||||||
private List<AttrEntity> infoList;
|
private List<AttrEntity> infoList;
|
||||||
|
|
Loading…
Reference in New Issue