|  | @@ -18,6 +18,7 @@ import org.springframework.stereotype.Service;
 | 
											
												
													
														|  |  import org.springframework.transaction.annotation.Transactional;
 |  |  import org.springframework.transaction.annotation.Transactional;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import java.io.Serializable;
 |  |  import java.io.Serializable;
 | 
											
												
													
														|  | 
 |  | +import java.math.BigDecimal;
 | 
											
												
													
														|  |  import java.util.ArrayList;
 |  |  import java.util.ArrayList;
 | 
											
												
													
														|  |  import java.util.Collection;
 |  |  import java.util.Collection;
 | 
											
												
													
														|  |  import java.util.List;
 |  |  import java.util.List;
 | 
											
										
											
												
													
														|  | @@ -288,6 +289,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
 | 
											
												
													
														|  |                      syRemainingList.add(syRemaining);
 |  |                      syRemainingList.add(syRemaining);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  Fabric.setSyRemaining(syRemainingList);
 |  |                  Fabric.setSyRemaining(syRemainingList);
 | 
											
												
													
														|  | 
 |  | +            }else{
 | 
											
												
													
														|  | 
 |  | +                Fabric.setFabricremainingQuantity(BigDecimal.ZERO);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              List<Map<String, Object>> transferlist  = senYuDataSourceOne.queryForList(sqlTransfer);
 |  |              List<Map<String, Object>> transferlist  = senYuDataSourceOne.queryForList(sqlTransfer);
 | 
											
												
													
														|  |              if(transferlist.size()>0){
 |  |              if(transferlist.size()>0){
 | 
											
										
											
												
													
														|  | @@ -298,6 +301,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
 | 
											
												
													
														|  |                      syTransferList.add(transfer);
 |  |                      syTransferList.add(transfer);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  Fabric.setSyTransfers(syTransferList);
 |  |                  Fabric.setSyTransfers(syTransferList);
 | 
											
												
													
														|  | 
 |  | +            }else{
 | 
											
												
													
														|  | 
 |  | +                Fabric.setFabrictransferQuantity(BigDecimal.ZERO);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              list3.add(Fabric);
 |  |              list3.add(Fabric);
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
										
											
												
													
														|  | @@ -393,6 +398,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
 | 
											
												
													
														|  |                      syRemainingList.add(syRemaining);
 |  |                      syRemainingList.add(syRemaining);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  Ingredient.setSyRemaining(syRemainingList);
 |  |                  Ingredient.setSyRemaining(syRemainingList);
 | 
											
												
													
														|  | 
 |  | +            }else{
 | 
											
												
													
														|  | 
 |  | +                Ingredient.setIngredientsRemainingQuantity(BigDecimal.ZERO);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              List<Map<String, Object>> transferlist  = senYuDataSourceOne.queryForList(sqlTransfer);
 |  |              List<Map<String, Object>> transferlist  = senYuDataSourceOne.queryForList(sqlTransfer);
 | 
											
												
													
														|  |              if(transferlist.size()>0){
 |  |              if(transferlist.size()>0){
 | 
											
										
											
												
													
														|  | @@ -403,6 +410,8 @@ public class SyCostAllocationServiceImpl extends ServiceImpl<SyCostAllocationMap
 | 
											
												
													
														|  |                      syTransferList.add(transfer);
 |  |                      syTransferList.add(transfer);
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                  Ingredient.setSyTransfers(syTransferList);
 |  |                  Ingredient.setSyTransfers(syTransferList);
 | 
											
												
													
														|  | 
 |  | +            }else{
 | 
											
												
													
														|  | 
 |  | +                Ingredient.setIngredientsTransferQuantity(BigDecimal.ZERO);
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  |              list4.add(Ingredient);
 |  |              list4.add(Ingredient);
 | 
											
												
													
														|  |          }
 |  |          }
 |