|
@@ -59,11 +59,11 @@ public class DcDocumentServiceImpl implements IDocumentService
|
|
|
}
|
|
|
|
|
|
Integer templateFlag = Convert.toInt(isTemplate, 0);
|
|
|
- if (templateFlag == 0 && StringUtils.isEmpty(request.get("category_id").toString())) {
|
|
|
- return AjaxResult.error("保存文档时,分类不能为空");
|
|
|
- }
|
|
|
+// if (templateFlag == 0 && StringUtils.isEmpty(request.get("category_id").toString())) {
|
|
|
+// return AjaxResult.error("保存文档时,分类不能为空");
|
|
|
+// }
|
|
|
|
|
|
- Integer categoryId = Integer.valueOf(request.get("category_id").toString());
|
|
|
+ // Integer categoryId = Integer.valueOf(request.get("category_id").toString());
|
|
|
|
|
|
|
|
|
// 3. 检查标题是否重复
|
|
@@ -92,7 +92,7 @@ public class DcDocumentServiceImpl implements IDocumentService
|
|
|
// document.setData(StringUtils.isNotEmpty(data) ? data : fileUrl);
|
|
|
document.setData(StringUtils.isNotEmpty(data) ? data : "");
|
|
|
document.setUser_id(SecurityUtils.getUserId());
|
|
|
- document.setCategory_id( Long.valueOf(categoryId));
|
|
|
+ //document.setCategory_id( Long.valueOf(categoryId));
|
|
|
document.setIs_template(templateFlag);
|
|
|
document.setStatus(Convert.toInt(status, 5));
|
|
|
document.setCreateTime(DateUtils.getNowDate());
|