From 232cab080647152de06755fbac3d4170629d5b3c Mon Sep 17 00:00:00 2001
From: 叶松 <2217086471@qq.com>
Date: 星期二, 26 九月 2023 10:25:58 +0800
Subject: [PATCH] Merge branch 'master' of http://111.30.93.211:10101/r/supipe

---
 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..d7073b4 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 embedmentRecordDto
+	 * @param response
+	 */
+	@PostMapping(value = "recordExportTemplate")
+	void recordExportTemplate(@RequestBody EmbedmentRecordDto embedmentRecordDto, HttpServletResponse response){
+		this.sysEmbedmentRecordService.recordExportTemplate(embedmentRecordDto,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