|
@@ -73,20 +73,10 @@ public class DocInfoServiceImpl implements IDocInfoService {
|
|
|
*/
|
|
|
@Override
|
|
|
public int insertDocInfo(DocInfo docInfo) {
|
|
|
- String localFilePath = remoteFileService.localFilePath(docInfo.getDocPath()).getData();
|
|
|
docInfo.setCreateTime(DateUtils.getNowDate());
|
|
|
// docInfo.setCreateYear(DateUtils.getCurrentYear());
|
|
|
- return docInfoMapper.insertDocInfo(docInfo);
|
|
|
- }
|
|
|
+ int re = docInfoMapper.insertDocInfo(docInfo);
|
|
|
|
|
|
- /**
|
|
|
- * 修改文档基本信息
|
|
|
- *
|
|
|
- * @param docInfo 文档基本信息
|
|
|
- * @return 结果
|
|
|
- */
|
|
|
- @Override
|
|
|
- public int updateDocInfo(DocInfo docInfo) {
|
|
|
String localFilePath = remoteFileService.localFilePath(docInfo.getDocPath()).getData();
|
|
|
File file = new File(localFilePath);
|
|
|
//文件大小
|
|
@@ -113,6 +103,18 @@ public class DocInfoServiceImpl implements IDocInfoService {
|
|
|
}
|
|
|
System.err.println(file.length());
|
|
|
docInfo.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ return re;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 修改文档基本信息
|
|
|
+ *
|
|
|
+ * @param docInfo 文档基本信息
|
|
|
+ * @return 结果
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public int updateDocInfo(DocInfo docInfo) {
|
|
|
+
|
|
|
return docInfoMapper.updateDocInfo(docInfo);
|
|
|
}
|
|
|
|