From 47a751cb301d05276ae5d75145d57b2d090fe4e1 Mon Sep 17 00:00:00 2001
From: kongzy <kongzy>
Date: 星期一, 01 七月 2024 10:58:35 +0800
Subject: [PATCH] change

---
 src/main/java/com/nanometer/smartlab/dao/OpeApplyDao.java |   51 ++++++++++++++++++++++++++++++++++++++++-----------
 1 files changed, 40 insertions(+), 11 deletions(-)

diff --git a/src/main/java/com/nanometer/smartlab/dao/OpeApplyDao.java b/src/main/java/com/nanometer/smartlab/dao/OpeApplyDao.java
index 3503bfc..00d48e9 100644
--- a/src/main/java/com/nanometer/smartlab/dao/OpeApplyDao.java
+++ b/src/main/java/com/nanometer/smartlab/dao/OpeApplyDao.java
@@ -1,9 +1,6 @@
 package com.nanometer.smartlab.dao;
 
-import com.nanometer.smartlab.entity.OpeApply;
-import com.nanometer.smartlab.entity.OpeApplyReserve;
-import com.nanometer.smartlab.entity.OpeOrder;
-import com.nanometer.smartlab.entity.OpeWarehouseReserve;
+import com.nanometer.smartlab.entity.*;
 
 import org.apache.ibatis.annotations.Param;
 import org.springframework.dao.DataAccessException;
@@ -20,23 +17,25 @@
     public int updateFirst2(Map params) throws DataAccessException;
     public int updateOpeApplyProject(Map params) throws DataAccessException;
 
-    public OpeApply getOpeApply(String id) throws DataAccessException;
+    public OpeApply getOpeApply(Long id) throws DataAccessException;
     public List<OpeApply> getOpeApplyList(Map params) throws DataAccessException;
     public int getOpeApplyTotalCount(Map params) throws DataAccessException;
 
     public void insertOpeApply(OpeApply opeApply) throws DataAccessException;
-    public void insertOpeApplyList(List<OpeApply> opeApplyList) throws DataAccessException;
+    public int insertOpeApplyList(@Param("opeApplyList") List<OpeApply> opeApplyList) throws DataAccessException;
     public int updateOpeApply(OpeApply opeApply) throws DataAccessException;
     public int updateOpeApplyStatus(Map params) throws DataAccessException;
+
+    public int updateOpeApplyStatusById(@Param("id") Long id,@Param("status") Integer status);
     public int updateOpeApplyAdmin(Map params) throws DataAccessException;
     public int updateOpeApplyAdmin2(Map params) throws DataAccessException;
-    public int deleteOpeApply(List<String> ids) throws DataAccessException;
+    public int deleteOpeApply(List<Long> ids) throws DataAccessException;
 
     public int updaetOpeApplyPrice(Map params) throws DataAccessException;
     public int updaetOpeApplyStockFlag(Map params) throws DataAccessException;
     public int cancelApply(Map params) throws DataAccessException;
 
-    OpeApply selectOpeApplyByPrimaryKey(String id);
+    OpeApply selectOpeApplyByPrimaryKey(Long id);
 
     public int updateOpeApplyUsed(OpeApplyReserve opeApplyReserve) throws DataAccessException;
 
@@ -50,20 +49,50 @@
     @SuppressWarnings("rawtypes")
     int getOpeApplyReserveTotalCountFor(Map params) throws DataAccessException;
 
-    List<OpeApply> selectByReId(String id);
+    List<OpeApply> selectByReId(Long id);
     public int updateByReId(Map params);
 
-    OpeApplyReserve getOpeApplyDetail(String id);
+    OpeApplyReserve getOpeApplyDetail(Long id);
 
     void updateOpeApplyInfo(Map params);
 
     void insertList(List<OpeApply> opeApplyList);
 
-    OpeApplyReserve getOpeApplyReserveListByNameForRowData(@Param("id") String rowKey);
+    OpeApplyReserve getOpeApplyReserveListByNameForRowData(@Param("id") Long rowKey);
 
     List<Map> getApplyControlInfo();
 
     int getOpeApplySupplerRequireMngTotalCount(Map<String, Object> params);
 
     List<OpeApply> getOpeApplySupplerRequireMngList(Map<String, Object> params);
+
+    List<OpeApply> getOpeApplyByOrderId(Long orderId);
+
+    /**
+     * 更具申请单id获取试剂信息
+     * @param applyId
+     * @return
+     */
+    SysReagent getReagentByApplyId(Long applyId);
+
+    /**
+     * 获取数量,关联订单
+     * @param params
+     * @return
+     */
+    int getOpeApplyCountWithOrder(Map<String, Object> params);
+
+    /**
+     * 获取列表,关联订单
+     * @param params
+     * @return
+     */
+    List<OpeApply> getOpeApplyListWithOrder(Map<String, Object> params);
+
+    /**
+     * 获取到货数量
+     * @param applyId
+     * @return
+     */
+    int getArrivalNumById(Long applyId);
 }

--
Gitblit v1.9.2