kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
src/main/java/com/nanometer/smartlab/service/InterfaceService.java
@@ -1,32 +1,37 @@
package com.nanometer.smartlab.service;
import java.io.IOException;
import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.nanometer.smartlab.entity.OpeUseFlow;
import com.nanometer.smartlab.entity.SysLaboratory;
import com.nanometer.smartlab.entity.SysUser;
import com.nanometer.smartlab.exception.ApiException;
public interface InterfaceService {
    public void registerTestCabinet(String userId, JSONObject jsonObject) throws ApiException;
    public void registerTestCabinet(Long userId, JSONObject jsonObject) throws ApiException;
    public void logoutTestCabinet(String userId, JSONObject jsonObject) throws ApiException;
    public void logoutTestCabinet(Long userId, JSONObject jsonObject) throws ApiException;
    public void updateTestCabinet(String userId, JSONObject jsonObject) throws ApiException;
    public void updateTestCabinet(Long userId, JSONObject jsonObject) throws ApiException;
    public String openCabinetDoor(String userId, JSONObject jsonObject) throws ApiException;
    public String openCabinetDoor(Long userId, JSONObject jsonObject) throws ApiException;
    public void closeCabinetDoor(JSONObject jsonObject) throws ApiException;
    public void synchAllCabinet(JSONArray jsonObject) throws ApiException;
    public void alarm(JSONObject jsonObject) throws ApiException;
    public void alarmperson(JSONObject jsonObject) throws ApiException, IOException;
    public void cabinetData(JSONArray jsonObject) throws ApiException;
    public void alarmperson(JSONObject jsonObject) throws Exception;
    public void cabinetData(JSONArray jsonObject,Long userId) throws ApiException;
    public JSONObject getContainerInfo(JSONObject jsonObject) throws ApiException;
@@ -34,8 +39,46 @@
    public JSONObject getUserInfo(JSONObject jsonObject) throws ApiException;
   public void AutheTestCabinet(String userId, JSONObject parseObject) throws ApiException;
   public void AutheTestCabinet(Long userId, JSONObject parseObject) throws ApiException;
   public List<SysUser> getUserListByContainerCode(String containerCode, String startTime,String endTime) throws ApiException;
    List<SysUser> getUserListByContainerCodeNew(String containerCode, String startTime, String endTime) throws ApiException;
    public void delalarmperson(JSONObject jsonObject) throws Exception;
    /**
     * 获取实验室列表和实验室临时存储库列表
     * @param userId
     * @return
     */
    List<SysLaboratory> getLabAndContainerByUserId(Long userId) throws ApiException;
    /**
     * 根据试剂条码查询流向
     * @param reagentCode
     * @return
     * @throws ApiException
     */
    List<OpeUseFlow> getReagentUseFlowList(String reagentCode) throws ApiException;
    /**
     *
     * @param userId
     * @return
     * @throws ApiException
     */
    List<SysLaboratory> getLaboratoryByUserId(Long userId)throws ApiException;
    /**
     * 个人获取流向
     * @param pageNum
     * @param pageSize
     * @param userId
     * @return
     * @throws ApiException
     */
    Map<String,Object> getOpeUseFlowByUserId(Integer pageNum, Integer pageSize, Long userId, Integer operatestate, String startDate, String endDate) throws ApiException, ParseException;
}