| | |
| | | import com.aps.core.mapper.ApsPlateStandardRequireBomOrderDetailMapper; |
| | | import com.aps.core.domain.ApsPlateStandardRequireBomOrderDetail; |
| | | import com.aps.core.service.IApsPlateStandardRequireBomOrderDetailService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomOrderDetailService业务层处理 |
| | |
| | | { |
| | | return apsPlateStandardRequireBomOrderDetailMapper.deleteApsPlateStandardRequireBomOrderDetailById(id); |
| | | } |
| | | |
| | | @Transactional |
| | | @Override |
| | | public void savePlastPlanAndBomOrderDetail(ApsPlateStandardRequire require, ApsPlatePlan platePlan, BigDecimal subtract, BigDecimal stock, BigDecimal netRequirement) { |
| | | platePlan.setUnmatchedQuantity(subtract); |
| | |
| | | import org.springframework.stereotype.Service; |
| | | import com.aps.core.mapper.ApsPlateStandardRequireBomStockDetailMapper; |
| | | import com.aps.core.service.IApsPlateStandardRequireBomStockDetailService; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * ApsPlateStandardRequireBomStockDetailService业务层处理 |
| | |
| | | /** |
| | | * 计算物料剩余库存 并保存物料剩余库存明细。 |
| | | * */ |
| | | @Transactional |
| | | @Override |
| | | public void saveStorageAndDetail(ApsMaterialStorageManagement itemStorage, ApsPlatePlan plan, String bomLineId,String itemCode, String batchNum, BigDecimal deductionAmount, BigDecimal afterStockAmount,Long requireId){ |
| | | /*更新物料剩余库存*/ |
| | |
| | | /*计算需求数量*/ |
| | | if (level == 0) { |
| | | require.setBomUseAmount(BigDecimal.ONE); |
| | | require.setCompleteDate(plan.getPlanEndDay()); |
| | | require.setDemandDate(plan.getPlanEndDay()); |
| | | } else { |
| | | require.setBomUseAmount(itemNum.multiply(plan.getProductionQuantity())); |
| | | } |