|
@@ -58,11 +58,14 @@ public class DocumentLibraryServiceImpl implements DocumentLibraryService {
|
|
documentLibraryInfo.setCopyWriterId(UUID.randomUUID().toString());
|
|
documentLibraryInfo.setCopyWriterId(UUID.randomUUID().toString());
|
|
documentLibraryInfo.setCreateTime(formatter.format(new Date()));
|
|
documentLibraryInfo.setCreateTime(formatter.format(new Date()));
|
|
documentLibraryInfo.setStatus(0);
|
|
documentLibraryInfo.setStatus(0);
|
|
- for (String accountId : accountIds) {
|
|
|
|
- documentLibraryInfo.setAccountId(accountId);
|
|
|
|
- documentLibraryMapper.saveDocumentLibrary(documentLibraryInfo);
|
|
|
|
|
|
+ if (docu != null && docu != "" && docu.length() <= 30) {
|
|
|
|
+ for (String accountId : accountIds) {
|
|
|
|
+ documentLibraryInfo.setAccountId(accountId);
|
|
|
|
+ documentLibraryMapper.saveDocumentLibrary(documentLibraryInfo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
result.success("添加成功");
|
|
result.success("添加成功");
|
|
@@ -87,7 +90,7 @@ public class DocumentLibraryServiceImpl implements DocumentLibraryService {
|
|
Result result = new Result();
|
|
Result result = new Result();
|
|
List<JSONObject> documentLibraryList = new ArrayList<>();
|
|
List<JSONObject> documentLibraryList = new ArrayList<>();
|
|
try {
|
|
try {
|
|
- if (startDate != null && endDate != null) {
|
|
|
|
|
|
+ if (startDate != null && startDate != "" && endDate != null && endDate != "") {
|
|
startDate = startDate + " 00:00:00";
|
|
startDate = startDate + " 00:00:00";
|
|
endDate = endDate + " 23:59:59";
|
|
endDate = endDate + " 23:59:59";
|
|
}
|
|
}
|
|
@@ -177,4 +180,25 @@ public class DocumentLibraryServiceImpl implements DocumentLibraryService {
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 根据文案查询绑定账户
|
|
|
|
+ *
|
|
|
|
+ * @param
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public Result getAcoountId(String copyWriterId) {
|
|
|
|
+ Result result = new Result();
|
|
|
|
+ List<String> documentLibraryList = new ArrayList<>();
|
|
|
|
+ try {
|
|
|
|
+ documentLibraryList = documentLibraryMapper.getAcoountId(copyWriterId);
|
|
|
|
+ result.setSuccess(true);
|
|
|
|
+ result.setResult(documentLibraryList);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ result.error500("查询数据错误");
|
|
|
|
+ log.info("查询数据错误:{}", e.toString());
|
|
|
|
+ }
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
}
|
|
}
|