|  | @@ -10421,13 +10421,15 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
 | 
	
		
			
				|  |  |          reqBody.put("remark", a.getRemark());
 | 
	
		
			
				|  |  |          reqBody.put("storageName", a.getStorageName());
 | 
	
		
			
				|  |  |          reqBody.put("storageContractCode", a.getStorageContractCode());
 | 
	
		
			
				|  |  | -        reqBody.put("storageContractStart", a.getStorageContractStart());
 | 
	
		
			
				|  |  | +//改        reqBody.put("storageContractStart", a.getStorageContractStart());
 | 
	
		
			
				|  |  | +        reqBody.put("storageContractStart", a.getfBsdate());
 | 
	
		
			
				|  |  |          reqBody.put("storageContractEnd", a.getStorageContractEnd());
 | 
	
		
			
				|  |  |  //        reqBody.put("warehouseCode", warehouseMaser.getfNo());
 | 
	
		
			
				|  |  |          reqBody.put("warehouseCode", warehouseMaser.getfId());
 | 
	
		
			
				|  |  |          reqBody.put("warehouseName", warehouseMaser.getfName());
 | 
	
		
			
				|  |  |          reqBody.put("storageRate", a.getStorageRate());
 | 
	
		
			
				|  |  | -        reqBody.put("storagePayTime", a.getStoragePayTime());
 | 
	
		
			
				|  |  | +        reqBody.put("storagePayTime", a.getfChargedate());
 | 
	
		
			
				|  |  | +//改        reqBody.put("storagePayTime", a.getStoragePayTime());
 | 
	
		
			
				|  |  |          reqBody.put("insuranceCode", a.getInsuranceCode());
 | 
	
		
			
				|  |  |          reqBody.put("insuranceAmount", a.getInsuranceAmount());
 | 
	
		
			
				|  |  |          reqBody.put("insuranceStartTime", a.getInsuranceStartTime());
 | 
	
	
		
			
				|  | @@ -10446,8 +10448,6 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
 | 
	
		
			
				|  |  |          for (SkuItem skuItem : skuItemList) {
 | 
	
		
			
				|  |  |              List<CollateralGoodsVO> collateralGoodsList = collateralMapper.selectByPid(skuItem.getId().toString());
 | 
	
		
			
				|  |  |              for (CollateralGoodsVO vo : collateralGoodsList) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |                  // 锁定货物
 | 
	
		
			
				|  |  |                  TWhgenleg tWhgenleg = new TWhgenleg();
 | 
	
		
			
				|  |  |                  tWhgenleg.setfCorpid(a.getfCorpid());
 | 
	
	
		
			
				|  | @@ -10476,13 +10476,6 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
 | 
	
		
			
				|  |  |                  TWarehouse warehouse = new TWarehouse();
 | 
	
		
			
				|  |  |                  warehouse.setfId(warehouse2.getParentId());
 | 
	
		
			
				|  |  |                  warehouse = tWarehouseMapper.getOne(warehouse);
 | 
	
		
			
				|  |  | -                DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
 | 
	
		
			
				|  |  | -                Date date = null;
 | 
	
		
			
				|  |  | -                try {
 | 
	
		
			
				|  |  | -                    date = df.parse(vo.getFOriginalbilldate());
 | 
	
		
			
				|  |  | -                } catch (ParseException e) {
 | 
	
		
			
				|  |  | -                    e.printStackTrace();
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  TGoods goods = tGoodsMapper.getById(vo.getGoodsId());
 | 
	
		
			
				|  |  |                  Map<String, String> map = new HashMap<>();
 | 
	
	
		
			
				|  | @@ -10503,13 +10496,15 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
 | 
	
		
			
				|  |  |                  sysDictData.setDictType("data_goods_category");
 | 
	
		
			
				|  |  |                  sysDictData.setDictValue(vo.getSpu());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                //是否保税
 | 
	
		
			
				|  |  | +                reqBody.put("whetherBonded", a.getWhetherBonded());
 | 
	
		
			
				|  |  |                  goodsMaps.put("spuId", vo.getSpu());
 | 
	
		
			
				|  |  |                  goodsMaps.put("skuId", vo.getSku());
 | 
	
		
			
				|  |  |                  goodsMaps.put("skuName", goods.getfName());
 | 
	
		
			
				|  |  |                  goodsMaps.put("billOfLading", vo.getFMblno());
 | 
	
		
			
				|  |  |                  goodsMaps.put("goodsWeight", Double.parseDouble(vo.getFGrossweightD()));
 | 
	
		
			
				|  |  |                  goodsMaps.put("goodsQuantity", Integer.parseInt(vo.getFQtyD()));
 | 
	
		
			
				|  |  | -                goodsMaps.put("quantityUnit", "托");
 | 
	
		
			
				|  |  | +                goodsMaps.put("quantityUnit", "托袋/托");
 | 
	
		
			
				|  |  |                  goodsMaps.put("weightUnit", "吨");
 | 
	
		
			
				|  |  |                  goodsMaps.put("warehouseCode", warehouse.getfId());
 | 
	
		
			
				|  |  |                  goodsMaps.put("warehouseName", warehouse.getfName());
 | 
	
	
		
			
				|  | @@ -10522,7 +10517,17 @@ public class TWarehouseBillsServiceImpl implements ITWarehouseBillsService {
 | 
	
		
			
				|  |  |                  goodsMaps.put("preInOutReceiptId", vo.getFOriginalbillno());
 | 
	
		
			
				|  |  |                  goodsMaps.put("spuProperties", map);
 | 
	
		
			
				|  |  |                  goodsMaps.put("productDate", vo.getFOriginalbilldate());
 | 
	
		
			
				|  |  | -                goodsMaps.put("arrivalTime", vo.getFOriginalbilldate());
 | 
	
		
			
				|  |  | +                try {
 | 
	
		
			
				|  |  | +                    if (ObjectUtils.isNull(vo.getFOriginalbilldate())) {
 | 
	
		
			
				|  |  | +                        throw new RuntimeException("入库日期不能为空");
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
 | 
	
		
			
				|  |  | +                    Date date = df.parse(vo.getFOriginalbilldate());
 | 
	
		
			
				|  |  | +                    goodsMaps.put("arrivalTime", df.format(date));
 | 
	
		
			
				|  |  | +                    //改goodsMaps.put("arrivalTime", vo.getFOriginalbilldate());
 | 
	
		
			
				|  |  | +                } catch (ParseException e) {
 | 
	
		
			
				|  |  | +                    e.printStackTrace();
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  goodsMaps.put("remark", vo.getRemark());
 | 
	
		
			
				|  |  |                  goodsMaps.put("storageLossStandard", "无");
 | 
	
		
			
				|  |  |  
 |