|
|
@ -157,6 +157,18 @@ public class IcServiceRecordV2ServiceImpl extends BaseServiceImpl<IcServiceRecor |
|
|
|
updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void cancel(IcServiceRecordV2AddEditFormDTO formDTO) { |
|
|
|
//1.校验数据是否存在
|
|
|
|
IcServiceRecordV2Entity entity = baseDao.selectById(formDTO.getServiceRecordId()); |
|
|
|
if (null == entity) { |
|
|
|
log.error(String.format("取消服务记录失败,未查询到服务记录,服务记录Id->%s", formDTO.getServiceRecordId())); |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "取消服务记录失败,未查询到服务记录"); |
|
|
|
} |
|
|
|
entity.setServiceStatus("cancel"); |
|
|
|
baseDao.updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void delete(String[] ids) { |
|
|
|