|
@@ -123,8 +123,12 @@ public class AssetServiceImpl extends BaseServiceImpl<AssetMapper, AssetEntity>
|
|
|
throw new ServiceException("状态错误,请重新选择");
|
|
throw new ServiceException("状态错误,请重新选择");
|
|
|
}
|
|
}
|
|
|
asset.setStatus(optional.get().getCode());
|
|
asset.setStatus(optional.get().getCode());
|
|
|
|
|
+ try {
|
|
|
|
|
+ this.save(asset);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ throw new ServiceException("序号为[" + excel1.getXh() + "]的数据错误");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- this.save(asset);
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|