| | |
| | | import org.springframework.stereotype.Component; |
| | | import zy.cloud.wms.common.service.MainService; |
| | | import zy.cloud.wms.common.service.erp.entity.GetDataResult; |
| | | import zy.cloud.wms.manager.entity.Mat; |
| | | import zy.cloud.wms.manager.service.MatService; |
| | | import zy.cloud.wms.manager.utils.HttpHandler; |
| | | |
| | |
| | | } else { |
| | | log.info(response); |
| | | Result result = JSON.parseObject(response, Result.class); |
| | | List<GetDataResult> datas = JSON.parseArray(result.getData(), GetDataResult.class); |
| | | if (!Cools.isEmpty(datas)) { |
| | | for (GetDataResult data : datas) { |
| | | // 生成出库单 |
| | | Mat mat = matService.selectByMatnr(data.getUserCode()); |
| | | mainService.stockOutProcess(); |
| | | |
| | | |
| | | } |
| | | List<GetDataResult> list = JSON.parseArray(result.getData(), GetDataResult.class); |
| | | if (!Cools.isEmpty(list)) { |
| | | // 生成出库单 |
| | | mainService.stockOutProcess(list); |
| | | } |
| | | |
| | | } |
| | | } catch (IOException e) { |
| | | e.printStackTrace(); |