自动化立体仓库 - WCS系统
1
ZY
2025-03-29 9b3ef339f87a7eb82c3322c5ec4549ebeb1221ac
src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java
@@ -25,10 +25,6 @@
@Slf4j
@Service("locMastService")
public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService {
    @Value("${wms.url}")
    private String wmsUrl;
    @Autowired
    private ApiLogService apiLogService;
    @Override
    public List<Integer> queryDistinctRow(Integer crnNo) {
@@ -104,28 +100,28 @@
            param.setContainerTypeCode(locMast.getContainerTypeCode());
        }
        try {
            response = new HttpHandler.Builder()
                    .setHeaders(map)
                    .setUri(wmsUrl)
                    .setPath("wcsManager/wcsInterface/locationUpdate")
                    .setJson(JSON.toJSONString(param))
                    .build()
                    .doPost();
        } catch (Exception e) {
            log.error("堆垛机任务完成,请求wms任务完成接口失败");
        }
        JSONObject jsonObject = JSON.parseObject(response);
        apiLogService.save("Wms变更货位状态"
                , wmsUrl + "wcsManager/wcsInterface/inboundTaskApply"
                , null
                , "127.0.0.1"
                , JSON.toJSONString(param)
                , response
                , true
        );
//        try {
//            response = new HttpHandler.Builder()
//                    .setHeaders(map)
//                    .setUri(wmsUrl)
//                    .setPath("wcsManager/wcsInterface/locationUpdate")
//                    .setJson(JSON.toJSONString(param))
//                    .build()
//                    .doPost();
//        } catch (Exception e) {
//            log.error("堆垛机任务完成,请求wms任务完成接口失败");
//        }
//        JSONObject jsonObject = JSON.parseObject(response);
//
//
//        apiLogService.save("Wms变更货位状态"
//                , wmsUrl + "wcsManager/wcsInterface/inboundTaskApply"
//                , null
//                , "127.0.0.1"
//                , JSON.toJSONString(param)
//                , response
//                , true
//        );
        return null;
    }