kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.nanometer.smartlab.dao;
 
import com.nanometer.smartlab.entity.*;
 
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
 
import java.util.List;
import java.util.Map;
 
/**
 * Created by johnny on 17/12/8.
 */
public interface OpeApplyDao {
 
    public int updateFirst(Map params) throws DataAccessException;
    public int updateFirst2(Map params) throws DataAccessException;
    public int updateOpeApplyProject(Map params) 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 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<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(Long id);
 
    public int updateOpeApplyUsed(OpeApplyReserve opeApplyReserve) throws DataAccessException;
 
    @SuppressWarnings("rawtypes")
    List<OpeApplyReserve> getOpeApplyReserveList(Map params) throws DataAccessException;
    @SuppressWarnings("rawtypes")
    int getOpeApplyReserveTotalCount(Map params) throws DataAccessException;
 
    @SuppressWarnings("rawtypes")
    List<OpeApplyReserve> getOpeApplyReserveListFor(Map params) throws DataAccessException;
    @SuppressWarnings("rawtypes")
    int getOpeApplyReserveTotalCountFor(Map params) throws DataAccessException;
 
    List<OpeApply> selectByReId(Long id);
    public int updateByReId(Map params);
 
    OpeApplyReserve getOpeApplyDetail(Long id);
 
    void updateOpeApplyInfo(Map params);
 
    void insertList(List<OpeApply> opeApplyList);
 
    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);
}