|
@@ -42,32 +42,38 @@ public class AcqGoodsOnSeatDataConversion implements DataConversion{
|
|
|
List<CusAcqGoodsSeat06> cusAcqGoodsSeat06List = Lists.newArrayList();
|
|
|
|
|
|
for (int i = 0; i < wmsList.size(); i++) {
|
|
|
- WmsAcqGoodsOnSeat wmsAcqGoodsOnSeat = wmsList.get(i);
|
|
|
- OmsAcqInventoryInfo omsAcqInventoryInfo = omsAcqInventoryInfoMap.get(wmsAcqGoodsOnSeat.getMerchSn());
|
|
|
+ try{
|
|
|
+ WmsAcqGoodsOnSeat wmsAcqGoodsOnSeat = wmsList.get(i);
|
|
|
+ OmsAcqInventoryInfo omsAcqInventoryInfo = omsAcqInventoryInfoMap.get(wmsAcqGoodsOnSeat.getMerchSn());
|
|
|
|
|
|
- CusAcqGoodsSeat06 cusAcqGoodsSeat06 = new CusAcqGoodsSeat06();
|
|
|
- cusAcqGoodsSeat06.setId(wmsAcqGoodsOnSeat.getId());
|
|
|
- cusAcqGoodsSeat06.setSeatNo(wmsAcqGoodsOnSeat.getSeatNo());
|
|
|
- cusAcqGoodsSeat06.setGoodsName(wmsAcqGoodsOnSeat.getGoodsName());
|
|
|
- cusAcqGoodsSeat06.setCodeTs(wmsAcqGoodsOnSeat.getCodeTs());
|
|
|
- cusAcqGoodsSeat06.setFormNoDec(wmsAcqGoodsOnSeat.getFormNoDec());
|
|
|
- cusAcqGoodsSeat06.setFormNo(wmsAcqGoodsOnSeat.getFormNo());
|
|
|
- cusAcqGoodsSeat06.setSkuNo(wmsAcqGoodsOnSeat.getSkuNo());
|
|
|
- cusAcqGoodsSeat06.setGoodsId(wmsAcqGoodsOnSeat.getGoodsId());
|
|
|
- cusAcqGoodsSeat06.setgUnit(wmsAcqGoodsOnSeat.getgUnit());
|
|
|
- cusAcqGoodsSeat06.setgQty(wmsAcqGoodsOnSeat.getgQty());
|
|
|
- cusAcqGoodsSeat06.setLegalUnit(wmsAcqGoodsOnSeat.getLegalUnit());
|
|
|
- cusAcqGoodsSeat06.setLegalQty(wmsAcqGoodsOnSeat.getLegalQty());
|
|
|
- cusAcqGoodsSeat06.setGoodsModel(wmsAcqGoodsOnSeat.getGoodsModel());
|
|
|
- cusAcqGoodsSeat06.setLocalEmsNo(Dict.localEmsNo);
|
|
|
- cusAcqGoodsSeat06.setOwnerCode(omsAcqInventoryInfo.getOwnerCode());
|
|
|
- cusAcqGoodsSeat06.setOwnerName(omsAcqInventoryInfo.getOwnerName());
|
|
|
- cusAcqGoodsSeat06.setStoreCompanyName(Dict.storeCompanyName);
|
|
|
- cusAcqGoodsSeat06.setStoreUscCode(Dict.storeUscCode);
|
|
|
- cusAcqGoodsSeat06.setStoreCustomsCode(Dict.storeCustomsCode);
|
|
|
- cusAcqGoodsSeat06.setStoreCode(Dict.storeCode);
|
|
|
- cusAcqGoodsSeat06.setCreateTime(LocalDateTime.now());
|
|
|
- cusAcqGoodsSeat06List.add(cusAcqGoodsSeat06);
|
|
|
+ CusAcqGoodsSeat06 cusAcqGoodsSeat06 = new CusAcqGoodsSeat06();
|
|
|
+ cusAcqGoodsSeat06.setId(wmsAcqGoodsOnSeat.getId());
|
|
|
+ cusAcqGoodsSeat06.setSeatNo(wmsAcqGoodsOnSeat.getSeatNo());
|
|
|
+ cusAcqGoodsSeat06.setGoodsName(wmsAcqGoodsOnSeat.getGoodsName());
|
|
|
+ cusAcqGoodsSeat06.setCodeTs(wmsAcqGoodsOnSeat.getCodeTs());
|
|
|
+ cusAcqGoodsSeat06.setFormNoDec(wmsAcqGoodsOnSeat.getFormNoDec());
|
|
|
+ cusAcqGoodsSeat06.setFormNo(wmsAcqGoodsOnSeat.getFormNo());
|
|
|
+ cusAcqGoodsSeat06.setSkuNo(wmsAcqGoodsOnSeat.getSkuNo());
|
|
|
+ cusAcqGoodsSeat06.setGoodsId(wmsAcqGoodsOnSeat.getGoodsId());
|
|
|
+ cusAcqGoodsSeat06.setgUnit(wmsAcqGoodsOnSeat.getgUnit());
|
|
|
+ cusAcqGoodsSeat06.setgQty(wmsAcqGoodsOnSeat.getgQty());
|
|
|
+ cusAcqGoodsSeat06.setLegalUnit(wmsAcqGoodsOnSeat.getLegalUnit());
|
|
|
+ cusAcqGoodsSeat06.setLegalQty(wmsAcqGoodsOnSeat.getLegalQty());
|
|
|
+ cusAcqGoodsSeat06.setGoodsModel(wmsAcqGoodsOnSeat.getGoodsModel());
|
|
|
+ cusAcqGoodsSeat06.setLocalEmsNo(Dict.localEmsNo);
|
|
|
+ cusAcqGoodsSeat06.setOwnerCode(omsAcqInventoryInfo.getOwnerCode());
|
|
|
+ cusAcqGoodsSeat06.setOwnerName(omsAcqInventoryInfo.getOwnerName());
|
|
|
+ cusAcqGoodsSeat06.setStoreCompanyName(Dict.storeCompanyName);
|
|
|
+ cusAcqGoodsSeat06.setStoreUscCode(Dict.storeUscCode);
|
|
|
+ cusAcqGoodsSeat06.setStoreCustomsCode(Dict.storeCustomsCode);
|
|
|
+ cusAcqGoodsSeat06.setStoreCode(Dict.storeCode);
|
|
|
+ cusAcqGoodsSeat06.setCreateTime(LocalDateTime.now());
|
|
|
+ cusAcqGoodsSeat06List.add(cusAcqGoodsSeat06);
|
|
|
+ }catch (Exception e){
|
|
|
+ logger.error("库位货物组装cus数据系统异常", e);
|
|
|
+ }finally {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
logger.info("转换oms,wms 组装cus数据结束===========================");
|
|
|
return cusAcqGoodsSeat06List;
|