|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.op.device.service.impl;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -53,6 +54,9 @@ public class EquPlanServiceImpl implements IEquPlanService {
|
|
|
|
|
private EquPlanEquMapper equPlanEquMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private EquPlanEquSpareMapper equPlanEquSpareMapper;
|
|
|
|
|
// 备件mapper
|
|
|
|
|
@Autowired
|
|
|
|
|
private SparePartsLedgerMapper sparePartsLedgerMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询计划
|
|
|
|
@ -362,8 +366,13 @@ public class EquPlanServiceImpl implements IEquPlanService {
|
|
|
|
|
|
|
|
|
|
EquPlanEquSpare spare = new EquPlanEquSpare();
|
|
|
|
|
spare.setParentCode(equipment.getCode());
|
|
|
|
|
// 备件信息
|
|
|
|
|
List<EquPlanEquSpare> spareList = equPlanEquSpareMapper.selectEquPlanEquSpareList(spare);
|
|
|
|
|
if (spareList.size() > 0) {
|
|
|
|
|
for (EquPlanEquSpare equSpare : spareList) {
|
|
|
|
|
// 通过备件编码查询备件库存信息(总量-冻结)
|
|
|
|
|
equSpare.setAmount(sparePartsLedgerMapper.selectRealAmountByMaterialCode(equSpare.getMaterialCode()));
|
|
|
|
|
}
|
|
|
|
|
equipment.setSpareList(spareList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|