From e50fa16b6dbc4e7c50d5fbdbc04d2a556ca01c4e Mon Sep 17 00:00:00 2001
From: chenlu <1320612696@qq.com>
Date: 星期一, 02 十二月 2024 11:26:36 +0800
Subject: [PATCH] 补片流程卡调整

---
 north-glass-erp/src/main/java/com/example/erp/mapper/mm/MaterialInventoryMapper.java |   44 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 44 insertions(+), 0 deletions(-)

diff --git a/north-glass-erp/src/main/java/com/example/erp/mapper/mm/MaterialInventoryMapper.java b/north-glass-erp/src/main/java/com/example/erp/mapper/mm/MaterialInventoryMapper.java
index 9196081..0f77b7a 100644
--- a/north-glass-erp/src/main/java/com/example/erp/mapper/mm/MaterialInventoryMapper.java
+++ b/north-glass-erp/src/main/java/com/example/erp/mapper/mm/MaterialInventoryMapper.java
@@ -1,5 +1,6 @@
 package com.example.erp.mapper.mm;
 
+import com.example.erp.dto.mm.FinishedOperateLogDTO;
 import com.example.erp.entity.mm.*;
 import com.example.erp.entity.pp.OptimizeUse;
 import com.example.erp.entity.sd.Delivery;
@@ -50,10 +51,14 @@
     Boolean insertMaterialStore(@Param("type") String type,
                                          @Param("json") String json);
 
+    Boolean deleteMaterialInventory(@Param("ids") List<Long> ids);
+
     Boolean updateMaterialStore(@Param("type") String type,
                                 @Param("json") String json, @Param("id") Long id);
 
     Boolean deleteMaterialOutbound(@Param("materialOutboundId") String materialOutboundId);
+
+    Boolean deleteMaterialLog(@Param("materialOutboundId") String materialOutboundId);
 
     Integer getMaximum(@Param("type") String type);
 
@@ -77,6 +82,8 @@
     List<ReturningWarehouseDetail> getIsNotReturningWarehouseDetail(@Param("returningId") String returningId);
 
     Boolean insertMaterialOutbound(@Param("materialOutbound") MaterialOutbound materialOutbound, @Param("number") String number);
+
+    Boolean updateMaterialOutbound(@Param("materialOutbound") MaterialOutbound materialOutbound, @Param("number") String number);
 
     Boolean insertReturningWarehouse(@Param("returningWarehouse") ReturningWarehouse returningWarehouse, @Param("number") String number);
 
@@ -115,6 +122,8 @@
     Boolean deleteMaterialOutboundDetail(@Param("materialOutboundId") String materialOutboundId);
 
     Boolean deleteReturningWarehouseDetail(@Param("returningId") String returningId);
+
+    Boolean deleteReturningWarehouse(@Param("returningId") String returningId);
 
     List<MaterialOutbound> getSelectMaterialOutboundDate(@Param("offset") Integer offset,
                                                            @Param("pageSize") Integer pageSize,String startDate, String endDate,
@@ -169,6 +178,10 @@
                                     @Param("totalArea") Double totalArea,
                                     @Param("materialInventory") MaterialInventory materialInventory);
 
+    Boolean updateMaterialInventoryNull(@Param("materialCode") Long materialCode,@Param("singlePieceArea") Double singlePieceArea,
+                                    @Param("totalArea") Double totalArea,
+                                    @Param("materialInventory") MaterialInventory materialInventory);
+
     Boolean insertMaterialInventory(@Param("materialCode") Long materialCode,@Param("singlePieceArea") Double singlePieceArea,
                                     @Param("totalArea") Double totalArea,
                                     @Param("materialInventory") MaterialInventory materialInventory);
@@ -187,4 +200,35 @@
 
     Boolean updateMaterialInventoryArea(@Param("materialCode") Long materialCode,@Param("singlePieceArea") Double singlePieceArea);
 
+    List<SurplusMaterials> getSelectSurplusMaterialsDate(@Param("offset") Integer offset,
+                                                             @Param("pageSize") Integer pageSize,String startDate, String endDate,
+                                                             @Param("surplusMaterials") SurplusMaterials surplusMaterials);
+
+    Map<String,Integer> getSelectSurplusMaterialsDatePageTotal(Integer offset, Integer pageSize,String startDate, String endDate,SurplusMaterials surplusMaterials);
+
+    SurplusMaterials selectSurplusMaterialsCount( @Param("surplusMaterials") SurplusMaterials surplusMaterials);
+    Boolean insertSurplusMaterials( @Param("surplusMaterials") SurplusMaterials surplusMaterials);
+
+    Boolean insertSurplusMaterialsLog(@Param("surplusMaterials") SurplusMaterials surplusMaterials,String creator, String type);
+
+    Boolean updateSurplusMaterialsOutQuantity( @Param("surplusMaterials") SurplusMaterials surplusMaterials);
+
+    Boolean updateSurplusMaterialsIntQuantity( @Param("surplusMaterials") SurplusMaterials surplusMaterials);
+
+    Map<String,Object> getPrintCreateOutbound(String materialOutboundId);
+
+    List<Map<String,Object>> getPrintCreateOutboundDetail(String materialOutboundId);
+
+    MaterialInventory getMaterialInventoryById(@Param("id") Long id);
+
+    List<MaterialLog> getMaterialLogReport(@Param("offset") Integer offset,
+                                                               @Param("pageSize") Integer pageSize,String startDate, String endDate,
+                                                               @Param("materialLog") MaterialLog materialLog,String type);
+
+    Map<String,Integer> getMaterialLogReportTotal(@Param("offset") Integer offset,
+                                                                   @Param("pageSize") Integer pageSize,String startDate, String endDate,
+                                                                   @Param("materialLog") MaterialLog materialLog,String type);
+
+    List<MaterialLog> exportMaterialLogReport(List<LocalDate> dates, String type);
+
 }

--
Gitblit v1.8.0