|  |  |  | 
|---|
|  |  |  | import com.ld.igds.camera.data.ApiCameraResp; | 
|---|
|  |  |  | import com.ld.igds.camera.data.ApiSnapReq; | 
|---|
|  |  |  | import com.ld.igds.constant.BizType; | 
|---|
|  |  |  | import com.ld.igds.constant.DeviceType; | 
|---|
|  |  |  | import com.ld.igds.data.SnapImgDto; | 
|---|
|  |  |  | import com.ld.igds.file.CoreFileService; | 
|---|
|  |  |  | import com.ld.igds.inout.ApiInoutManager; | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.annotation.Resource; | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @param param | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //    public String noticeWeightDone(ApiInoutData param) { | 
|---|
|  |  |  | //        //获取称重主控器配置 | 
|---|
|  |  |  | //        InoutConf conf = getWeightGateway(param.getCompanyId(), param.getDeptId(), param.getSort()); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        if (null == conf) { | 
|---|
|  |  |  | //            return "称重主控未配置,支持失败"; | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        ApiInoutData apiData = new ApiInoutData(conf); | 
|---|
|  |  |  | //        apiData.setPlateNum(param.getPlateNum()); | 
|---|
|  |  |  | //        apiData.setTime(new Date()); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        ApiInoutService inoutApiService = apiInoutManager.getApiService(conf.getProtocol()); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        // return inoutApiService.noticeWeightDone(apiData); TODO | 
|---|
|  |  |  | //        return null; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 出入库抓拍 | 
|---|
|  |  |  | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return inoutCommonService.getCacheInoutConf(ContextUtil.getCompanyId(), ContextUtil.subDeptId(null), id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Desc: 获取称重网关设备 | 
|---|
|  |  |  | * @author: Andy | 
|---|
|  |  |  | * @update-time: 2022/11/26 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public List<InoutConf> getWeightGateway(String companyId, String deptId) { | 
|---|
|  |  |  | List<InoutConf> list = inoutCommonService.getCacheInoutConf(companyId, deptId); | 
|---|
|  |  |  | if (null == list || list.isEmpty()) return null; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<InoutConf> result = new ArrayList<>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (InoutConf conf : list) { | 
|---|
|  |  |  | if (InoutConstant.CONF_TYPE_70.equals(conf.getType())) { | 
|---|
|  |  |  | result.add(conf); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return result; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|