|
|
|
@ -11,6 +11,7 @@ import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -84,7 +85,7 @@ public class ProductionBomServiceImpl implements ProductionBomService { |
|
|
|
params.add(String.valueOf(item.getItemNo())); // @itemNo |
|
|
|
params.add(item.getComponentPartNo()); // @parentPartNo - 使用组件物料编号 |
|
|
|
params.add(item.getQtyAssembly()); // @qtyAssembly - 使用装配数量 |
|
|
|
params.add(String.valueOf(item.getQtyFixedScrapt())); // @qtyScrap - 使用固定报废数量 |
|
|
|
params.add(item.getQtyFixedScrapt()); // @qtyScrap - 使用固定报废数量 |
|
|
|
params.add(String.valueOf(item.getScraptFactor())); // @scrapFactor - 使用报废率 |
|
|
|
params.add(item.getRemark() == null ? "" : item.getRemark()); // @remark - 使用备注 |
|
|
|
params.add(item.getQtyRequired()); // @qtyRequired - 使用需求数量 |
|
|
|
@ -95,7 +96,7 @@ public class ProductionBomServiceImpl implements ProductionBomService { |
|
|
|
params.add(item.getOperationNo() == null ? "" : String.valueOf(item.getOperationNo())); // @operationNo |
|
|
|
params.add(item.getRmTypeDb() == null ? "" : item.getRmTypeDb()); // @rmTypeDb |
|
|
|
params.add(item.getMethod()); // @method |
|
|
|
params.add(item.getQtySetup() == null ? "" : String.valueOf(item.getQtySetup())); // @qtySetup |
|
|
|
params.add(item.getQtySetup() == null ? BigDecimal.ZERO : item.getQtySetup()); // @qtySetup |
|
|
|
|
|
|
|
// 执行存储过程 |
|
|
|
List<Map<String, Object>> resultList = procedureDao.getProcedureData("UspInsertSOBom", params); |
|
|
|
|