|
|
@ -326,6 +326,9 @@ public class ResourceRepairTaskServiceImpl extends ServiceImpl<ResourceRepairTas
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public ResourceRepairTask findResourceRepairTaskByHandleAndSite(String site, String handle) {
|
|
|
|
public ResourceRepairTask findResourceRepairTaskByHandleAndSite(String site, String handle) {
|
|
|
|
ResourceRepairTask repairTask = resourceRepairTaskMapper.findResourceRepairTaskByHandleAndSite(site, handle);
|
|
|
|
ResourceRepairTask repairTask = resourceRepairTaskMapper.findResourceRepairTaskByHandleAndSite(site, handle);
|
|
|
|
|
|
|
|
if (repairTask == null){
|
|
|
|
|
|
|
|
throw BusinessException.build("未找到维修单数据!");
|
|
|
|
|
|
|
|
}
|
|
|
|
// 耗用备品
|
|
|
|
// 耗用备品
|
|
|
|
ResourceInspectTaskSpare taskSpare = new ResourceInspectTaskSpare();
|
|
|
|
ResourceInspectTaskSpare taskSpare = new ResourceInspectTaskSpare();
|
|
|
|
taskSpare.setResourceInspectTaskBo(handle);
|
|
|
|
taskSpare.setResourceInspectTaskBo(handle);
|
|
|
|