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
package com.nanometer.smartlab.dao;
 
import com.nanometer.smartlab.entity.SysLaboratory;
import com.nanometer.smartlab.entity.dto.LaboratoryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.dao.DataAccessException;
 
import java.util.List;
import java.util.Map;
 
/**
 * Created by cmower on 17/11/18.
 */
public interface SysLaboratoryDao {
 
    public SysLaboratory getSysLaboratory(Long id) throws DataAccessException;
 
    public SysLaboratory getSysLaboratorySimpleInfo(Long id) throws DataAccessException;
 
    @SuppressWarnings("rawtypes")
    public List<SysLaboratory> getSysLaboratoryList(Map params) throws DataAccessException;
 
    public List<SysLaboratory> getSysLaboratorySimpleInfoList(Map params);
    public List<SysLaboratory> getAllSysLaboratoryList() throws DataAccessException;
    @SuppressWarnings("rawtypes")
    public int getSysLaboratoryTotalCount(Map params) throws DataAccessException;
 
    public void insertSysLaboratory(SysLaboratory sysLaboratory) throws DataAccessException;
    public int updateSysLaboratory(SysLaboratory sysLaboratory) throws DataAccessException;
    public int deleteSysLaboratorys(List<Long> ids) throws DataAccessException;
 
    public SysLaboratory getSysLaboratoryByBarCode(String barCode) throws DataAccessException;
 
    public SysLaboratory getSysLaboratoryByBarCodeForExport(String barCode) throws DataAccessException;
 
    public  void updateLabExport(SysLaboratory sysLaboratory);
 
    List<SysLaboratory> exportLabList(Map params);
 
    List<LaboratoryVo.Laboratory> getLaboratoryByProject(@Param("projectId") Long projectId);
 
    SysLaboratory getSysLaboratoryByName(String name);
 
    List<Map> getPersonInCharge(String project);
 
    /**
     * 根据课题id获取实验室列表
     * @param projectId
     * @return
     */
    List<SysLaboratory> getLaboratoryByProjectId(Long projectId);
 
}