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(Long userId, JSONObject jsonObject) throws ApiException; public void logoutTestCabinet(Long userId, JSONObject jsonObject) throws ApiException; public void updateTestCabinet(Long 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 Exception; public void cabinetData(JSONArray jsonObject,Long userId) throws ApiException; public JSONObject getContainerInfo(JSONObject jsonObject) throws ApiException; public JSONObject getReagentInfo(JSONObject jsonObject) throws ApiException; public JSONObject getUserInfo(JSONObject jsonObject) throws ApiException; public void AutheTestCabinet(Long userId, JSONObject parseObject) throws ApiException; public List getUserListByContainerCode(String containerCode, String startTime,String endTime) throws ApiException; List getUserListByContainerCodeNew(String containerCode, String startTime, String endTime) throws ApiException; public void delalarmperson(JSONObject jsonObject) throws Exception; /** * 获取实验室列表和实验室临时存储库列表 * @param userId * @return */ List getLabAndContainerByUserId(Long userId) throws ApiException; /** * 根据试剂条码查询流向 * @param reagentCode * @return * @throws ApiException */ List getReagentUseFlowList(String reagentCode) throws ApiException; /** * * @param userId * @return * @throws ApiException */ List getLaboratoryByUserId(Long userId)throws ApiException; /** * 个人获取流向 * @param pageNum * @param pageSize * @param userId * @return * @throws ApiException */ Map getOpeUseFlowByUserId(Integer pageNum, Integer pageSize, Long userId, Integer operatestate, String startDate, String endDate) throws ApiException, ParseException; }