|
|
@@ -183,6 +183,30 @@ public class NodeAttachmentController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 根据节点ID查询批次报批的附件信息
|
|
|
+ *
|
|
|
+ * @param nodeId 节点ID
|
|
|
+ * @return 附件信息
|
|
|
+ */
|
|
|
+ @GetMapping("/batchNodeAttachment/{nodeId}")
|
|
|
+ public R<NodeAttachment> getBatchDataByNodeId(@PathVariable String nodeId) {
|
|
|
+ try {
|
|
|
+ if (nodeId == null || nodeId.trim().isEmpty()) {
|
|
|
+ return R.fail("nodeId不能为空");
|
|
|
+ }
|
|
|
+ //获取附件信息及依赖关系
|
|
|
+ NodeAttachment nodeAttachment = nodeAttachmentService.getByNodeId(nodeId);
|
|
|
+ return R.ok(nodeAttachment);
|
|
|
+ } catch (Exception e) {
|
|
|
+ logger.error("查询节点附件信息异常", e);
|
|
|
+ return R.fail("查询节点附件信息异常:" + e.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 根据节点ID删除附件信息
|
|
|
*
|