|
|
|
|
@ -47,6 +47,8 @@ public class HwWebDocumentController extends BaseController
|
|
|
|
|
startPage();
|
|
|
|
|
List<HwWebDocument> list = hwWebDocumentService.selectHwWebDocumentList(hwWebDocument);
|
|
|
|
|
for (HwWebDocument doc : list) {
|
|
|
|
|
// 隐藏密钥,若设置了密钥则隐藏文件地址
|
|
|
|
|
doc.setSecretKey(null);
|
|
|
|
|
if (doc.getHasSecret()) {
|
|
|
|
|
doc.setDocumentAddress(null);
|
|
|
|
|
}
|
|
|
|
|
@ -75,8 +77,12 @@ public class HwWebDocumentController extends BaseController
|
|
|
|
|
public AjaxResult getInfo(@PathVariable("documentId") String documentId)
|
|
|
|
|
{
|
|
|
|
|
HwWebDocument doc = hwWebDocumentService.selectHwWebDocumentByDocumentId(documentId);
|
|
|
|
|
if (doc != null && doc.getHasSecret()) {
|
|
|
|
|
doc.setDocumentAddress(null);
|
|
|
|
|
if (doc != null) {
|
|
|
|
|
// 隐藏密钥,若设置了密钥则隐藏文件地址
|
|
|
|
|
doc.setSecretKey(null);
|
|
|
|
|
if (doc.getHasSecret()) {
|
|
|
|
|
doc.setDocumentAddress(null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return success(doc);
|
|
|
|
|
}
|
|
|
|
|
@ -100,6 +106,7 @@ public class HwWebDocumentController extends BaseController
|
|
|
|
|
@PutMapping
|
|
|
|
|
public AjaxResult edit(@RequestBody HwWebDocument hwWebDocument)
|
|
|
|
|
{
|
|
|
|
|
System.out.println(hwWebDocument.getSecretKey());
|
|
|
|
|
return toAjax(hwWebDocumentService.updateHwWebDocument(hwWebDocument));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|