PDA设备名称显示BUG+保养图片上传BUG解决

orign^2
wws 1 year ago
parent 8856c74e4d
commit 739bc7237c

@ -66,6 +66,9 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
@Autowired @Autowired
private SparePartsLedgerMapper sparePartsLedgerMapper; private SparePartsLedgerMapper sparePartsLedgerMapper;
@Autowired
private EquipmentMapper equipmentMapper;
/** /**
* list- * list-
@ -115,6 +118,9 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
timeArray.add(order.getOrderEnd()); timeArray.add(order.getOrderEnd());
order.setTimeArray(timeArray); order.setTimeArray(timeArray);
// 设备名称
order.setEquipmentName(equipmentMapper.selectEquipmentByEquipmentCode(order.getEquipmentCode()).getEquipmentName());
order.setPlanName(equOrderMapper.selectPlanNameByPlanCode(order.getOrderCode())); order.setPlanName(equOrderMapper.selectPlanNameByPlanCode(order.getOrderCode()));
order.setWorkCenterName(equOrderMapper.selectCenterNameByCenterCode(order.getPlanWorkshop())); order.setWorkCenterName(equOrderMapper.selectCenterNameByCenterCode(order.getPlanWorkshop()));
@ -155,7 +161,7 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
// 保养图片 // 保养图片
BaseFileData selectTemp = new BaseFileData(); BaseFileData selectTemp = new BaseFileData();
selectTemp.setSourceId(equOrder.getId()); selectTemp.setSourceId(order.getOrderId());
List<String> upkeepPictures = equFileMapper.selectUrlList(selectTemp); List<String> upkeepPictures = equFileMapper.selectUrlList(selectTemp);
if (upkeepPictures != null) { if (upkeepPictures != null) {
order.setUpkeepPictures(upkeepPictures); order.setUpkeepPictures(upkeepPictures);

Loading…
Cancel
Save