|
@@ -9,6 +9,7 @@ import com.dayou.service.DocumentProductionService;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -30,6 +31,15 @@ public class DocumentProductionController {
|
|
|
public Result<Page<DocumentProduction>> documentProduction(DocumentProductionQueryDTO dto, Page page) {
|
|
|
Page<DocumentProduction> ret = documentProductionService.getPage(dto,page);
|
|
|
return Result.build(ret);
|
|
|
+ }
|
|
|
|
|
|
+ /**
|
|
|
+ * 保存文档信息
|
|
|
+ * @param documentProduction 文档信息
|
|
|
+ * @return Boolean
|
|
|
+ */
|
|
|
+ @PostMapping("/save")
|
|
|
+ public Result<Boolean> saveDocumentProduction(DocumentProduction documentProduction) {
|
|
|
+ return Result.build(documentProductionService.saveDocumentProduction(documentProduction));
|
|
|
}
|
|
|
}
|