From d772015e06b58af9f0cc9e9f58867f123a857412 Mon Sep 17 00:00:00 2001
From: bingbo <bingbo1993@126.com>
Date: 星期一, 27 十一月 2023 13:23:34 +0800
Subject: [PATCH] 加减钢筋笼库存 带记录
---
hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/embedment/controller/SysInsetRecordsController.java | 110 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 108 insertions(+), 2 deletions(-)
diff --git a/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/embedment/controller/SysInsetRecordsController.java b/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/embedment/controller/SysInsetRecordsController.java
index f511147..8258f39 100644
--- a/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/embedment/controller/SysInsetRecordsController.java
+++ b/hd/pipe/materialsManage/src/main/java/com/thhy/materials/modules/biz/embedment/controller/SysInsetRecordsController.java
@@ -1,7 +1,16 @@
package com.thhy.materials.modules.biz.embedment.controller;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import com.thhy.general.common.BasicResult;
+import com.thhy.materials.modules.biz.concret.entity.SysSteelRecord;
+import com.thhy.materials.modules.biz.embedment.dto.EmbedmentRecordDto;
+import com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentRecordEntity;
+import com.thhy.materials.modules.biz.embedment.service.SysEmbedmentRecordService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
/**
* @Author QiuYuHao
@@ -12,5 +21,102 @@
@RequestMapping(value = "embedmentInsetRecord")
public class SysInsetRecordsController {
+ @Autowired
+ private SysEmbedmentRecordService sysEmbedmentRecordService;
+ /**
+ * 新增记录
+ * @param sysEmbedmentRecordEntity
+ * @return
+ */
+ @PostMapping(value = "insert")
+ public BasicResult insert (@RequestBody SysEmbedmentRecordEntity sysEmbedmentRecordEntity){
+ synchronized (this){
+ return sysEmbedmentRecordService.insert(sysEmbedmentRecordEntity);
+ }
+ }
+
+ /**
+ * 记录删除
+ * @param id
+ * @return
+ */
+ @GetMapping(value = "embedmentRecordDel")
+ public BasicResult embedmentRecordDel (@RequestParam String id){
+ return sysEmbedmentRecordService.embedmentRecordDel(id);
+ }
+
+ /**
+ * 记录修改
+ * @param sysEmbedmentRecordEntity
+ * @return
+ */
+ @PostMapping(value = "update")
+ BasicResult update(@RequestBody SysEmbedmentRecordEntity sysEmbedmentRecordEntity){
+ synchronized (this){
+ return sysEmbedmentRecordService.update(sysEmbedmentRecordEntity);
+ }
+ }
+
+ /**
+ * 入库记录查询
+ * @param embedmentRecordDto
+ * @return
+ */
+ @PostMapping(value = "embedmentRecordList")
+ BasicResult embedmentRecordList(@RequestBody EmbedmentRecordDto embedmentRecordDto){
+ return sysEmbedmentRecordService.embedmentRecordList(embedmentRecordDto);
+ }
+
+ /**
+ * 出库记录查询
+ * @param embedmentRecordDto
+ * @return
+ */
+ @PostMapping(value = "embedmentRecordOutList")
+ BasicResult embedmentRecordOutList(@RequestBody EmbedmentRecordDto embedmentRecordDto){
+ return sysEmbedmentRecordService.embedmentRecordOutList(embedmentRecordDto);
+ }
+
+ /**
+ * 出入库详情查询
+ * @param id
+ * @return
+ */
+ @GetMapping(value = "embedmentRecordInfo")
+ public BasicResult embedmentRecordInfo (@RequestParam String id){
+ return sysEmbedmentRecordService.embedmentRecordInfo(id);
+ }
+
+ /**
+ * 导出
+ * @param embedmentRecordDto
+ * @param response
+ */
+ @PostMapping(value = "export")
+ void export(@RequestBody EmbedmentRecordDto embedmentRecordDto, HttpServletResponse response){
+ this.sysEmbedmentRecordService.export(embedmentRecordDto,response);
+ }
+
+ /**
+ * 导出模板
+ * @param
+ * @param response
+ */
+ @PostMapping(value = "recordExportTemplate")
+ void recordExportTemplate(HttpServletResponse response){
+ this.sysEmbedmentRecordService.recordExportTemplate(null,response);
+ }
+
+ /**
+ * 导入
+ * @param file
+ * @param request
+ */
+ @PostMapping(value = "variateExcel")
+ BasicResult variateExcel(@RequestParam MultipartFile file, HttpServletRequest request){
+ synchronized (this){
+ return this.sysEmbedmentRecordService.variateExcel(file,request);
+ }
+ }
}
--
Gitblit v1.9.3