|
|
@ -127,7 +127,6 @@ public class EquUpkeepOrderServiceImpl implements IEquUpkeepOrderService {
|
|
|
|
EquOrderEquSpare spareTemp = new EquOrderEquSpare();
|
|
|
|
EquOrderEquSpare spareTemp = new EquOrderEquSpare();
|
|
|
|
BeanUtils.copyProperties(spare,spareTemp);
|
|
|
|
BeanUtils.copyProperties(spare,spareTemp);
|
|
|
|
spareTemp.setId(IdUtils.fastSimpleUUID());
|
|
|
|
spareTemp.setId(IdUtils.fastSimpleUUID());
|
|
|
|
spareTemp.setCode("S"+equOrder.getOrderCode()+String.format("%03d",++spareSerialNum));
|
|
|
|
|
|
|
|
spareTemp.setOrderCode(equOrder.getOrderCode());
|
|
|
|
spareTemp.setOrderCode(equOrder.getOrderCode());
|
|
|
|
spareTemp.setParentCode(equ.getCode());
|
|
|
|
spareTemp.setParentCode(equ.getCode());
|
|
|
|
spareTemp.setFactoryCode(factory);
|
|
|
|
spareTemp.setFactoryCode(factory);
|
|
|
@ -163,12 +162,10 @@ public class EquUpkeepOrderServiceImpl implements IEquUpkeepOrderService {
|
|
|
|
// 插入检查项信息
|
|
|
|
// 插入检查项信息
|
|
|
|
equOrderDetailMapper.insertEquOrderDetail(equOrderDetail);
|
|
|
|
equOrderDetailMapper.insertEquOrderDetail(equOrderDetail);
|
|
|
|
|
|
|
|
|
|
|
|
int standardSerialNum = 0;
|
|
|
|
|
|
|
|
for (EquPlanStandard standard : standardList) {
|
|
|
|
for (EquPlanStandard standard : standardList) {
|
|
|
|
EquOrderStandard orderStandard = new EquOrderStandard();
|
|
|
|
EquOrderStandard orderStandard = new EquOrderStandard();
|
|
|
|
BeanUtils.copyProperties(standard,orderStandard);
|
|
|
|
BeanUtils.copyProperties(standard,orderStandard);
|
|
|
|
orderStandard.setId(IdUtils.fastSimpleUUID());
|
|
|
|
orderStandard.setId(IdUtils.fastSimpleUUID());
|
|
|
|
orderStandard.setCode("S"+equOrder.getOrderCode()+String.format("%03d",++standardSerialNum));
|
|
|
|
|
|
|
|
orderStandard.setParentCode(equOrderDetail.getCode());
|
|
|
|
orderStandard.setParentCode(equOrderDetail.getCode());
|
|
|
|
orderStandard.setOrderCode(equOrder.getOrderCode());
|
|
|
|
orderStandard.setOrderCode(equOrder.getOrderCode());
|
|
|
|
orderStandard.setCreateBy(SecurityContextHolder.getUserName());
|
|
|
|
orderStandard.setCreateBy(SecurityContextHolder.getUserName());
|
|
|
|