|
@@ -675,7 +675,10 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
if(form.getStatus() != RepairApplicationFormStatusEnum.NOT_ALLOCATED.getValue() && form.getStatus() != RepairApplicationFormStatusEnum.RECEIVED.getValue()){
|
|
|
throw new DeniedException("非待接单和已接单状态,不能撤回");
|
|
|
}
|
|
|
- mapper.deleteByPrimaryKey(id);
|
|
|
+ RepairApplicationForm upd = new RepairApplicationForm();
|
|
|
+ upd.setId(form.getId());
|
|
|
+ upd.setStatus(RepairApplicationFormStatusEnum.CALLER_REPAIR_CANCEL.getValue());
|
|
|
+ mapper.updateByPrimaryKeySelective(upd);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -985,11 +988,12 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
|
|
|
SbInfo sbInfo = sbInfoService.getModelById(vo.getSbId());
|
|
|
if(StringUtils.isNotBlank(sbInfo.getPositionId())){
|
|
|
vo.setSbPositionName(sbPositionMapper.getById(sbInfo.getPositionId()).getName());
|
|
|
+ vo.setPositionNo(sbInfo.getPositionNo());
|
|
|
}
|
|
|
// 父位号
|
|
|
- if(StringUtils.isNotBlank(sbInfo.getParentId())){
|
|
|
+ /*if(StringUtils.isNotBlank(sbInfo.getParentId())){
|
|
|
vo.setSelfParentNo(sbInfoService.getModelById(sbInfo.getParentId()).getPositionNo());
|
|
|
- }
|
|
|
+ }*/
|
|
|
// 获取装置位置和计划时间
|
|
|
CustomFieldTemplateData queryData = new CustomFieldTemplateData();
|
|
|
queryData.setObjId(model.getId());
|