| | |
| | | import cn.iocoder.yudao.module.mes.controller.admin.pd.document.vo.MesPdDocumentSaveReqVO; |
| | | import cn.iocoder.yudao.module.mes.dal.dataobject.pd.document.MesPdDocumentDO; |
| | | import cn.iocoder.yudao.module.mes.service.pd.document.MesPdDocumentService; |
| | | import cn.iocoder.yudao.module.system.api.storage.StorageAttachmentApi; |
| | | import cn.iocoder.yudao.module.system.api.user.AdminUserApi; |
| | | import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | |
| | | @Resource |
| | | private AdminUserApi adminUserApi; |
| | | @Resource |
| | | private StorageAttachmentApi storageAttachmentApi; |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建设计资料") |
| | |
| | | if (document == null) { |
| | | return success(null); |
| | | } |
| | | return success(buildDocumentRespVOList(Collections.singletonList(document)).get(0)); |
| | | MesPdDocumentRespVO respVO = buildDocumentRespVOList(Collections.singletonList(document)).get(0); |
| | | respVO.setAttachmentList(storageAttachmentApi.listAttachments("mes_pd_document", id)); |
| | | return success(respVO); |
| | | } |
| | | |
| | | @GetMapping("/page") |