|  | @@ -655,15 +655,19 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
	
		
			
				|  |  |  								BigDecimal netWeight=item.getNetWeight();//净重
 | 
	
		
			
				|  |  |  								BigDecimal gramWeight=new BigDecimal(item.getGramWeight());//克重
 | 
	
		
			
				|  |  |  								BigDecimal width=new BigDecimal(item.getWidth());//门幅
 | 
	
		
			
				|  |  | -								BigDecimal meter=netWeight.multiply(gramWeight).multiply(width).divide(new BigDecimal("100000"));//米数
 | 
	
		
			
				|  |  | -								item.setMeter(meter);//米数
 | 
	
		
			
				|  |  | +								if(gramWeight.intValue()==0||width.intValue()==0||netWeight.intValue()==0){
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +								}else{
 | 
	
		
			
				|  |  | +									BigDecimal meter=netWeight.multiply(gramWeight).multiply(width).divide(new BigDecimal("100000"));//米数
 | 
	
		
			
				|  |  | +									item.setMeter(meter);//米数
 | 
	
		
			
				|  |  | +								}
 | 
	
		
			
				|  |  |  							}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  							if(item!=null&&item.getMasterMetering().equals("KG")){//KG
 | 
	
		
			
				|  |  |  								item.setTotalPrice(item.getNetWeight().multiply(item.getPrice()));//净重*单价
 | 
	
		
			
				|  |  |  							}else if(item!=null&&item.getMasterMetering().equals("M")){//M
 | 
	
		
			
				|  |  |  								if(item.getMeter()==null){
 | 
	
		
			
				|  |  | -									throw new JeecgBootException("净重、门幅、克重之间有值为空,无法获取米数计算总价");
 | 
	
		
			
				|  |  | +									throw new JeecgBootException("净重、门幅、克重之间有值为空,无法计算米数");
 | 
	
		
			
				|  |  |  								}
 | 
	
		
			
				|  |  |  								item.setTotalPrice(item.getMeter().multiply(item.getPrice()));//米数*单价
 | 
	
		
			
				|  |  |  							}else if(item.getActualDeclaredQuantity()!=null){//其他
 | 
	
	
		
			
				|  | @@ -884,7 +888,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
	
		
			
				|  |  |  				}else{//委外订单子表数据  顺序---2
 | 
	
		
			
				|  |  |  					//第二次怎么获取采购订单的子表id	查询销售订单子表保存行号去绑定上游的账套
 | 
	
		
			
				|  |  |  					orderDataItem=syPackingListTailoringMapper.getOmOrPoItem("OM_MODetails", "MODetailsID='"+item.getOmpoIdItem()+"'","MODetailsID");
 | 
	
		
			
				|  |  | -					System.out.println("orderDataItem\n"+orderDataItem);
 | 
	
		
			
				|  |  |  					Map<String,Object> orderDataItem2=purchaseWarehousingMapper.getOMMoDetails(item.getOmpoIdItem());//获取自由项
 | 
	
		
			
				|  |  |  					getcFree(mapItem,orderDataItem2);
 | 
	
		
			
				|  |  |  					getcFree(mapItem5,orderDataItem2);
 | 
	
	
		
			
				|  | @@ -896,7 +899,7 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
	
		
			
				|  |  |  					System.out.println("orderDataItem2\n"+orderDataItem2);
 | 
	
		
			
				|  |  |  					Map<String,Object> orderDataItem3 =syPackingListFabricMapper.getOM_MOMaterials(orderDataItem2);//委外订单子表
 | 
	
		
			
				|  |  |  					System.out.println("orderDataItem3\n"+orderDataItem3);
 | 
	
		
			
				|  |  | -					System.out.println("orderDataItem3\t"+orderDataItem3.size());
 | 
	
		
			
				|  |  | +					System.out.println("orderDataItem3.size\t"+orderDataItem3.size());
 | 
	
		
			
				|  |  |  					/*for (Map<String,Object> stringObjectMap : orderDataItem3){
 | 
	
		
			
				|  |  |  						mapItem2.put("AUTOID_ALL",stringObjectMap.get("MOMaterialsID"));//关联明细ID
 | 
	
		
			
				|  |  |  					}*/
 | 
	
	
		
			
				|  | @@ -1000,7 +1003,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
	
		
			
				|  |  |  			mapList5.add(map5);
 | 
	
		
			
				|  |  |  			map6.put("DETAILList",mapItems6);//明细集合
 | 
	
		
			
				|  |  |  			mapList6.add(map6);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  			if(mapt.get("customerCode").equals("T020001")&&!mapt.get("account").equals("901")){
 | 
	
		
			
				|  |  |  				mapt.put("account","901");//账套号
 | 
	
		
			
				|  |  |  			}else if(mapt.get("customerCode").equals("0001")&&!mapt.get("account").equals("902")){
 |