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