|  | @@ -6,6 +6,7 @@ import com.baomidou.dynamic.datasource.annotation.DS;
 | 
											
												
													
														|  |  import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 |  |  import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
											
												
													
														|  |  import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 |  |  import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 | 
											
												
													
														|  |  import com.baomidou.mybatisplus.core.metadata.IPage;
 |  |  import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
											
												
													
														|  | 
 |  | +import com.googlecode.aviator.utils.ArrayHashMap;
 | 
											
												
													
														|  |  import org.apache.shiro.SecurityUtils;
 |  |  import org.apache.shiro.SecurityUtils;
 | 
											
												
													
														|  |  import org.jeecg.common.exception.JeecgBootException;
 |  |  import org.jeecg.common.exception.JeecgBootException;
 | 
											
												
													
														|  |  import org.jeecg.common.system.util.JwtUtil;
 |  |  import org.jeecg.common.system.util.JwtUtil;
 | 
											
										
											
												
													
														|  | @@ -1570,14 +1571,22 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
											
												
													
														|  |  				mapItem6.put("CDEFINE31",item.getDeclarationName());//货物名称
 |  |  				mapItem6.put("CDEFINE31",item.getDeclarationName());//货物名称
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  				Order orderIrowno=new Order();
 |  |  				Order orderIrowno=new Order();
 | 
											
												
													
														|  | -				if (mapt.get("customerCode").equals("one")){
 |  | 
 | 
											
												
													
														|  | -					orderDataItem.put("iSOsID",item.getSyOrderDataItemId().substring(3));
 |  | 
 | 
											
												
													
														|  | -				}
 |  | 
 | 
											
												
													
														|  |  				System.out.println("新的逻辑id\t"+orderDataItem.get("iSOsID"));
 |  |  				System.out.println("新的逻辑id\t"+orderDataItem.get("iSOsID"));
 | 
											
												
													
														|  |  				//if(item.getSyOrderDataItemId()!=null){//销售发货单 ---查询销售订单子表数据  顺序---5
 |  |  				//if(item.getSyOrderDataItemId()!=null){//销售发货单 ---查询销售订单子表数据  顺序---5
 | 
											
												
													
														|  |  				if(orderDataItem!=null&&orderDataItem.containsKey("iSOsID")&&orderDataItem.get("iSOsID")!=null){
 |  |  				if(orderDataItem!=null&&orderDataItem.containsKey("iSOsID")&&orderDataItem.get("iSOsID")!=null){
 | 
											
												
													
														|  | -					Map<String,Object> orderDataItem2=syPackingListTailoringMapper.getSoMainItem(orderDataItem.get("iSOsID").toString());
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | 
 |  | +					//Map<String,Object> orderDataItem2=syPackingListTailoringMapper.getSoMainItem(orderDataItem.get("iSOsID").toString());
 | 
											
												
													
														|  | 
 |  | +					Map<String,Object> orderDataItem2=new HashMap<>();
 | 
											
												
													
														|  | 
 |  | +					if (mapt.get("orderNumber").equals("one")){
 | 
											
												
													
														|  | 
 |  | +						String id=item.getSyOrderDataItemId();
 | 
											
												
													
														|  | 
 |  | +						if ((id.indexOf('('))>-1){
 | 
											
												
													
														|  | 
 |  | +							id=id.substring(3,id.indexOf("(")-1);
 | 
											
												
													
														|  | 
 |  | +						}
 | 
											
												
													
														|  | 
 |  | +						orderDataItem2=syPackingListTailoringMapper.getSoMainItem2(id);
 | 
											
												
													
														|  | 
 |  | +						mapItem3.put("AUTOID_SO",id);//来源单据明细ID
 | 
											
												
													
														|  | 
 |  | +					}else{
 | 
											
												
													
														|  | 
 |  | +						orderDataItem2=syPackingListTailoringMapper.getSoMainItem(orderDataItem.get("iSOsID").toString());
 | 
											
												
													
														|  | 
 |  | +						mapItem3.put("AUTOID_SO",orderDataItem2.get("iSOsID"));//来源单据明细ID
 | 
											
												
													
														|  | 
 |  | +					}
 | 
											
												
													
														|  |  					System.out.println("销售订单\n"+orderDataItem2);
 |  |  					System.out.println("销售订单\n"+orderDataItem2);
 | 
											
												
													
														|  |  					orderIrowno.setIrowno(orderDataItem2.get("irowno").toString());
 |  |  					orderIrowno.setIrowno(orderDataItem2.get("irowno").toString());
 | 
											
												
													
														|  |  					orderIrowno.setOrderNumber(orderDataItem2.get("cSOCode").toString());
 |  |  					orderIrowno.setOrderNumber(orderDataItem2.get("cSOCode").toString());
 | 
											
										
											
												
													
														|  | @@ -1587,7 +1596,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
											
												
													
														|  |  					map6.put("iTaxRate",orderDataItem2.get("iTaxRate"));
 |  |  					map6.put("iTaxRate",orderDataItem2.get("iTaxRate"));
 | 
											
												
													
														|  |  					mapItem6.put("iTaxRate",orderDataItem2.get("iTaxRate"));
 |  |  					mapItem6.put("iTaxRate",orderDataItem2.get("iTaxRate"));
 | 
											
												
													
														|  |  					mapItem3.put("SOAUTOIDCOL","ISOSID");//来源单据明细ID对应字段名(如果取销售订单主键,需传固定值ISOSID)
 |  |  					mapItem3.put("SOAUTOIDCOL","ISOSID");//来源单据明细ID对应字段名(如果取销售订单主键,需传固定值ISOSID)
 | 
											
												
													
														|  | -					mapItem3.put("AUTOID_SO",orderDataItem2.get("iSOsID"));//来源单据明细ID
 |  | 
 | 
											
												
													
														|  |  					mapt.put("poid", orderDataItem2.get("id"));
 |  |  					mapt.put("poid", orderDataItem2.get("id"));
 | 
											
												
													
														|  |  					//System.out.println("销售订单子表的行号\t"+orderDataItem2.get("irowno"));
 |  |  					//System.out.println("销售订单子表的行号\t"+orderDataItem2.get("irowno"));
 | 
											
												
													
														|  |  				}else if(mapt.get("account").equals("103")) {
 |  |  				}else if(mapt.get("account").equals("103")) {
 | 
											
										
											
												
													
														|  | @@ -1731,7 +1739,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
 | 
											
												
													
														|  |  			mapt.put("itemSort",mapSort);
 |  |  			mapt.put("itemSort",mapSort);
 | 
											
												
													
														|  |  			System.out.println("mapsort\n"+mapSort);
 |  |  			System.out.println("mapsort\n"+mapSort);
 | 
											
												
													
														|  |  		}
 |  |  		}
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  		if(mapList2!=null&&mapList2.size()>0){
 |  |  		if(mapList2!=null&&mapList2.size()>0){
 | 
											
												
													
														|  |  			text(mapList2,"材料出库单");
 |  |  			text(mapList2,"材料出库单");
 | 
											
												
													
														|  |  			text(mapList7,"染厂采购入库单");
 |  |  			text(mapList7,"染厂采购入库单");
 |